]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
rtlwifi: Add in_4way field for btcoexist
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 21 Jun 2017 17:15:38 +0000 (12:15 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 28 Jun 2017 17:51:01 +0000 (20:51 +0300)
If wifi is in 4way, btcoex give wifi higher priority to use antenna.

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>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
drivers/net/wireless/realtek/rtlwifi/wifi.h

index 9dbb35f190d1d94ded6eec7fa9e47b8c768692c3..e6024b013ca5efc3de26dfee74741dff27fa3ac9 100644 (file)
@@ -428,8 +428,7 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
                        *bool_tmp = false;
                break;
        case BTC_GET_BL_WIFI_4_WAY_PROGRESS:
-               /* TODO */
-               *bool_tmp = false;
+               *bool_tmp = rtlpriv->btcoexist.btc_info.in_4way;
                break;
        case BTC_GET_BL_WIFI_UNDER_5G:
                if (rtlhal->current_bandtype == BAND_ON_5G)
index 98183dc707aabd37cd18d6beb6963c7db751f434..fb1ebb01133f8ffba8dd785cfe27b1052a0e56f3 100644 (file)
@@ -2484,6 +2484,7 @@ struct rtl_btc_info {
        u8 single_ant_path;
 
        u8 ap_num;
+       bool in_4way;
 };
 
 struct bt_coexist_info {