--- initial
+++ final
@@ -1,99 +1,99 @@
 static void _rtl_init_mac80211(struct ieee80211_hw *hw) {
   struct rtl_priv *rtlpriv = rtl_priv(hw);
   struct rtl_hal *rtlhal = rtl_hal(rtlpriv);
   struct rtl_mac *rtlmac = rtl_mac(rtl_priv(hw));
   struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
   struct ieee80211_supported_band *sband;
   if (rtlhal->macphymode == SINGLEMAC_SINGLEPHY && rtlhal->bandset == BAND_ON_BOTH) {
     /* 1: 2.4 G bands */
     /* <1> use  mac->bands as mem for hw->wiphy->bands */
     sband = &(rtlmac->bands[NL80211_BAND_2GHZ]);
     /* <2> set hw->wiphy->bands[NL80211_BAND_2GHZ]
      * to default value(1T1R) */
     memcpy(&(rtlmac->bands[NL80211_BAND_2GHZ]), &rtl_band_2ghz, sizeof(struct ieee80211_supported_band));
     /* <3> init ht cap base on ant_num */
     _rtl_init_hw_ht_capab(hw, &sband->ht_cap);
     /* <4> set mac->sband to wiphy->sband */
     hw->wiphy->bands[NL80211_BAND_2GHZ] = sband;
     /* 2: 5 G bands */
     /* <1> use  mac->bands as mem for hw->wiphy->bands */
     sband = &(rtlmac->bands[NL80211_BAND_5GHZ]);
     /* <2> set hw->wiphy->bands[NL80211_BAND_5GHZ]
      * to default value(1T1R) */
     memcpy(&(rtlmac->bands[NL80211_BAND_5GHZ]), &rtl_band_5ghz, sizeof(struct ieee80211_supported_band));
     /* <3> init ht cap base on ant_num */
     _rtl_init_hw_ht_capab(hw, &sband->ht_cap);
     _rtl_init_hw_vht_capab(hw, &sband->vht_cap);
     /* <4> set mac->sband to wiphy->sband */
     hw->wiphy->bands[NL80211_BAND_5GHZ] = sband;
   } else {
     if (rtlhal->current_bandtype == BAND_ON_2_4G) {
       /* <1> use  mac->bands as mem for hw->wiphy->bands */
       sband = &(rtlmac->bands[NL80211_BAND_2GHZ]);
       /* <2> set hw->wiphy->bands[NL80211_BAND_2GHZ]
        * to default value(1T1R) */
       memcpy(&(rtlmac->bands[NL80211_BAND_2GHZ]), &rtl_band_2ghz, sizeof(struct ieee80211_supported_band));
       /* <3> init ht cap base on ant_num */
       _rtl_init_hw_ht_capab(hw, &sband->ht_cap);
       /* <4> set mac->sband to wiphy->sband */
       hw->wiphy->bands[NL80211_BAND_2GHZ] = sband;
     } else if (rtlhal->current_bandtype == BAND_ON_5G) {
       /* <1> use  mac->bands as mem for hw->wiphy->bands */
       sband = &(rtlmac->bands[NL80211_BAND_5GHZ]);
       /* <2> set hw->wiphy->bands[NL80211_BAND_5GHZ]
        * to default value(1T1R) */
       memcpy(&(rtlmac->bands[NL80211_BAND_5GHZ]), &rtl_band_5ghz, sizeof(struct ieee80211_supported_band));
       /* <3> init ht cap base on ant_num */
       _rtl_init_hw_ht_capab(hw, &sband->ht_cap);
       _rtl_init_hw_vht_capab(hw, &sband->vht_cap);
       /* <4> set mac->sband to wiphy->sband */
       hw->wiphy->bands[NL80211_BAND_5GHZ] = sband;
     } else {
-      RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Err BAND %d\n", rtlhal->current_bandtype);
+      pr_err("Err BAND %d\n", rtlhal->current_bandtype);
     }
   }
   /* <5> set hw caps */
   ieee80211_hw_set(hw, SIGNAL_DBM);
   ieee80211_hw_set(hw, RX_INCLUDES_FCS);
   ieee80211_hw_set(hw, AMPDU_AGGREGATION);
   ieee80211_hw_set(hw, CONNECTION_MONITOR);
   ieee80211_hw_set(hw, MFP_CAPABLE);
   ieee80211_hw_set(hw, REPORTS_TX_ACK_STATUS);
   /* swlps or hwlps has been set in diff chip in init_sw_vars */
   if (rtlpriv->psc.swctrl_lps) {
     ieee80211_hw_set(hw, SUPPORTS_PS);
     ieee80211_hw_set(hw, PS_NULLFUNC_STACK);
   }
   hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_ADHOC) | BIT(NL80211_IFTYPE_MESH_POINT) | BIT(NL80211_IFTYPE_P2P_CLIENT) | BIT(NL80211_IFTYPE_P2P_GO);
   hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
   hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
   hw->wiphy->rts_threshold = 2347;
   hw->queues = AC_MAX;
   hw->extra_tx_headroom = RTL_TX_HEADER_SIZE;
   /* TODO: Correct this value for our hw */
   /* TODO: define these hard code value */
   hw->max_listen_interval = 10;
   hw->max_rate_tries = 4;
   /* hw->max_rates = 1; */
   hw->sta_data_size = sizeof(struct rtl_sta_info);
 /* wowlan is not supported by kernel if CONFIG_PM is not defined */
 #ifdef CONFIG_PM
   if (rtlpriv->psc.wo_wlan_mode) {
     if (rtlpriv->psc.wo_wlan_mode & WAKE_ON_MAGIC_PACKET) rtlpriv->wowlan.flags = WIPHY_WOWLAN_MAGIC_PKT;
     if (rtlpriv->psc.wo_wlan_mode & WAKE_ON_PATTERN_MATCH) {
       rtlpriv->wowlan.n_patterns = MAX_SUPPORT_WOL_PATTERN_NUM;
       rtlpriv->wowlan.pattern_min_len = MIN_WOL_PATTERN_SIZE;
       rtlpriv->wowlan.pattern_max_len = MAX_WOL_PATTERN_SIZE;
     }
     hw->wiphy->wowlan = &rtlpriv->wowlan;
   }
 #endif
   /* <6> mac address */
   if (is_valid_ether_addr(rtlefuse->dev_addr)) {
     SET_IEEE80211_PERM_ADDR(hw, rtlefuse->dev_addr);
   } else {
     u8 rtlmac1[] = {0x00, 0xe0, 0x4c, 0x81, 0x92, 0x00};
     get_random_bytes((rtlmac1 + (ETH_ALEN - 1)), 1);
     SET_IEEE80211_PERM_ADDR(hw, rtlmac1);
   }
 }<sep>@@
expression e1;
expression list e2;
@@
-                       RT_TRACE(e1, COMP_INIT, DBG_EMERG, e2)
+                       pr_err(e2)