Commit f1cb27ed authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Kalle Valo

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: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarLarry 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: default avatarKalle Valo <kvalo@codeaurora.org>
parent 8488e211
...@@ -503,10 +503,7 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf) ...@@ -503,10 +503,7 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
ret = false; ret = false;
break; break;
case BTC_GET_U1_AP_NUM: case BTC_GET_U1_AP_NUM:
/* driver do not know AP num, *u8_tmp = rtlpriv->btcoexist.btc_info.ap_num;
* so the return value here is not right
*/
*u8_tmp = 1;
break; break;
case BTC_GET_U1_ANT_TYPE: case BTC_GET_U1_ANT_TYPE:
*u8_tmp = (u8)BTC_ANT_TYPE_0; *u8_tmp = (u8)BTC_ANT_TYPE_0;
......
...@@ -1824,6 +1824,7 @@ static int rtl_pci_start(struct ieee80211_hw *hw) ...@@ -1824,6 +1824,7 @@ static int rtl_pci_start(struct ieee80211_hw *hw)
rtlpci->driver_is_goingto_unload = false; rtlpci->driver_is_goingto_unload = false;
if (rtlpriv->cfg->ops->get_btc_status && if (rtlpriv->cfg->ops->get_btc_status &&
rtlpriv->cfg->ops->get_btc_status()) { rtlpriv->cfg->ops->get_btc_status()) {
rtlpriv->btcoexist.btc_info.ap_num = 36;
rtlpriv->btcoexist.btc_ops->btc_init_variables(rtlpriv); rtlpriv->btcoexist.btc_ops->btc_init_variables(rtlpriv);
rtlpriv->btcoexist.btc_ops->btc_init_hal_vars(rtlpriv); rtlpriv->btcoexist.btc_ops->btc_init_hal_vars(rtlpriv);
} }
......
...@@ -2481,6 +2481,8 @@ struct rtl_btc_info { ...@@ -2481,6 +2481,8 @@ struct rtl_btc_info {
u8 btcoexist; u8 btcoexist;
u8 ant_num; u8 ant_num;
u8 single_ant_path; u8 single_ant_path;
u8 ap_num;
}; };
struct bt_coexist_info { struct bt_coexist_info {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment