rtlwifi: rtl8723be: fix ant_sel code
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 7 Feb 2017 03:30:07 +0000 (21:30 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 Feb 2017 07:25:08 +0000 (09:25 +0200)
When ant_sel is set, we need to fill single_ant_path to select correct
antenna path.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c

index ecccada89ea58fe66c626bb7d238357ffe8de5ba..e6e5e5bedf6396a9024c5a5beacd51bd82775ec5 100644 (file)
@@ -2696,9 +2696,13 @@ void rtl8723be_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
        }
 
        /* override ant_num / ant_path */
-       if (mod_params->ant_sel)
+       if (mod_params->ant_sel) {
                rtlpriv->btcoexist.btc_info.ant_num =
                        (mod_params->ant_sel == 1 ? ANT_X2 : ANT_X1);
+
+               rtlpriv->btcoexist.btc_info.single_ant_path =
+                       (mod_params->ant_sel == 1 ? 0 : 1);
+       }
 }
 
 void rtl8723be_bt_reg_init(struct ieee80211_hw *hw)