Skip to content

Commit 0ff78ad

Browse files
Ping-Ke ShihKalle Valo
authored andcommitted
rtlwifi: rtl8723be: fix ant_sel code
When ant_sel is set, we need to fill single_ant_path to select correct antenna path. Signed-off-by: Ping-Ke Shih <[email protected]> Signed-off-by: Larry Finger <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent e0215c1 commit 0ff78ad

File tree

1 file changed

+5
-1
lines changed
  • drivers/net/wireless/realtek/rtlwifi/rtl8723be

1 file changed

+5
-1
lines changed

drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2696,9 +2696,13 @@ void rtl8723be_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
26962696
}
26972697

26982698
/* override ant_num / ant_path */
2699-
if (mod_params->ant_sel)
2699+
if (mod_params->ant_sel) {
27002700
rtlpriv->btcoexist.btc_info.ant_num =
27012701
(mod_params->ant_sel == 1 ? ANT_X2 : ANT_X1);
2702+
2703+
rtlpriv->btcoexist.btc_info.single_ant_path =
2704+
(mod_params->ant_sel == 1 ? 0 : 1);
2705+
}
27022706
}
27032707

27042708
void rtl8723be_bt_reg_init(struct ieee80211_hw *hw)

0 commit comments

Comments
 (0)