Skip to content

Commit f1cb27e

Browse files
Ping-Ke ShihKalle Valo
authored andcommitted
rtlwifi: Add ap_num field for btcoexist
If there are many AP (dirty environment), we use another strategy set to resolve coex issue. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Yan-Hsuan Chuang <yhchuang@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>
1 parent 8488e21 commit f1cb27e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,7 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
503503
ret = false;
504504
break;
505505
case BTC_GET_U1_AP_NUM:
506-
/* driver do not know AP num,
507-
* so the return value here is not right
508-
*/
509-
*u8_tmp = 1;
506+
*u8_tmp = rtlpriv->btcoexist.btc_info.ap_num;
510507
break;
511508
case BTC_GET_U1_ANT_TYPE:
512509
*u8_tmp = (u8)BTC_ANT_TYPE_0;

drivers/net/wireless/realtek/rtlwifi/pci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,6 +1824,7 @@ static int rtl_pci_start(struct ieee80211_hw *hw)
18241824
rtlpci->driver_is_goingto_unload = false;
18251825
if (rtlpriv->cfg->ops->get_btc_status &&
18261826
rtlpriv->cfg->ops->get_btc_status()) {
1827+
rtlpriv->btcoexist.btc_info.ap_num = 36;
18271828
rtlpriv->btcoexist.btc_ops->btc_init_variables(rtlpriv);
18281829
rtlpriv->btcoexist.btc_ops->btc_init_hal_vars(rtlpriv);
18291830
}

drivers/net/wireless/realtek/rtlwifi/wifi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,6 +2481,8 @@ struct rtl_btc_info {
24812481
u8 btcoexist;
24822482
u8 ant_num;
24832483
u8 single_ant_path;
2484+
2485+
u8 ap_num;
24842486
};
24852487

24862488
struct bt_coexist_info {

0 commit comments

Comments
 (0)