rtlwifi: btcoex: 21a 2ant: remove unused antenna detection variables
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Thu, 11 May 2017 19:01:19 +0000 (14:01 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 18 May 2017 14:07:32 +0000 (17:07 +0300)
PSD and LNA are for antenna detection, but we do not use them for 8821A.
Remove them and the corresponding display messages.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Pkshih <pkshih@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.h

index acdba42..41943c3 100644 (file)
@@ -3747,14 +3747,6 @@ void ex_btc8821a2ant_display_coex_info(struct btc_coexist *btcoexist)
                    ((BTC_WIFI_TRAFFIC_TX == wifi_traffic_dir) ?
                     "uplink" : "downlink")));
 
-       RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
-                "\r\n %-35s = [%s/ %d/ %d] ", "BT [status/ rssi/ retryCnt]",
-                  ((coex_sta->c2h_bt_inquiry_page) ? ("inquiry/page scan") :
-                   ((BT_8821A_2ANT_BT_STATUS_IDLE == coex_dm->bt_status)
-                    ? "idle" : ((BT_8821A_2ANT_BT_STATUS_CON_IDLE ==
-                    coex_dm->bt_status) ? "connected-idle" : "busy"))),
-                   coex_sta->bt_rssi, coex_sta->bt_retry_cnt);
-
        if (stack_info->profile_notified) {
                RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
                         "\r\n %-35s = %d / %d / %d / %d", "SCO/HID/PAN/A2DP",
@@ -3790,11 +3782,6 @@ void ex_btc8821a2ant_display_coex_info(struct btc_coexist *btcoexist)
        RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, "\r\n %-35s",
                 "============[Sw mechanism]============");
        RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
-                "\r\n %-35s = %d/ %d/ %d/ %d ",
-                "SM1[ShRf/ LpRA/ LimDig/ btLna]",
-                coex_dm->cur_rf_rx_lpf_shrink, coex_dm->cur_low_penalty_ra,
-                coex_dm->limited_dig, coex_dm->cur_bt_lna_constrain);
-       RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
                 "\r\n %-35s = %d/ %d/ %d(0x%x) ",
                 "SM2[AgcT/ AdcB/ SwDacSwing(lvl)]",
                 coex_dm->cur_agc_table_en, coex_dm->cur_adc_back_off,
index 74edfd7..a1603e2 100644 (file)
@@ -79,10 +79,6 @@ struct coex_dm_8821a_2ant {
        /* fw mechanism */
        bool            pre_dec_bt_pwr_lvl;
        bool            cur_dec_bt_pwr_lvl;
-       bool            pre_bt_lna_constrain;
-       bool            cur_bt_lna_constrain;
-       u8              pre_bt_psd_mode;
-       u8              cur_bt_psd_mode;
        u8              pre_fw_dac_swing_lvl;
        u8              cur_fw_dac_swing_lvl;
        bool            cur_ignore_wlan_act;