Skip to content

Commit db8cb00

Browse files
Ping-Ke ShihKalle Valo
authored andcommitted
rtlwifi: rtl8723be: btcoexist: Add single_ant_path
Some devices with RTL8732BE wifi/Bluetooth adapters are shipped with only a single antenna. On a subset of these, the EEPROM is incorectly coded to indicate the wrong connection. The resulting problems have been fixed for wifi. This change handles them for BT. Signed-off-by: Ping-Ke Shih <[email protected]> Signed-off-by: Larry Finger <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent d46fa3e commit db8cb00

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ static u8 halbtc_get_wifi_central_chnl(struct btc_coexist *btcoexist)
146146
return chnl;
147147
}
148148

149+
u8 rtl_get_hwpg_single_ant_path(struct rtl_priv *rtlpriv)
150+
{
151+
return rtlpriv->btcoexist.btc_info.single_ant_path;
152+
}
153+
149154
static void halbtc_leave_lps(struct btc_coexist *btcoexist)
150155
{
151156
struct rtl_priv *rtlpriv;

drivers/net/wireless/realtek/rtlwifi/btcoexist/rtl_btc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ struct rtl_btc_ops *rtl_btc_get_ops_pointer(void);
4949
u8 rtl_get_hwpg_ant_num(struct rtl_priv *rtlpriv);
5050
u8 rtl_get_hwpg_bt_exist(struct rtl_priv *rtlpriv);
5151
u8 rtl_get_hwpg_bt_type(struct rtl_priv *rtlpriv);
52+
u8 rtl_get_hwpg_single_ant_path(struct rtl_priv *rtlpriv);
5253
enum rt_media_status mgnt_link_status_query(struct ieee80211_hw *hw);
5354

5455
#endif

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,6 +2657,7 @@ void rtl8723be_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
26572657
rtlpriv->btcoexist.btc_info.btcoexist = 0;
26582658
rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8723B;
26592659
rtlpriv->btcoexist.btc_info.ant_num = ANT_X2;
2660+
rtlpriv->btcoexist.btc_info.single_ant_path = 0;
26602661
}
26612662

26622663
/* override ant_num / ant_path */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,6 +2454,7 @@ struct rtl_btc_info {
24542454
u8 bt_type;
24552455
u8 btcoexist;
24562456
u8 ant_num;
2457+
u8 single_ant_path;
24572458
};
24582459

24592460
struct bt_coexist_info {

0 commit comments

Comments
 (0)