rtlwifi: btcoex: Add variable ant_div_cfg to support antenna diversity
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 19 Jan 2018 06:45:44 +0000 (14:45 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jan 2018 15:39:52 +0000 (17:39 +0200)
The variable will be used by btcoex of 8822be, so we prepare this variable
in advance.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h

index b51189a..8dc6461 100644 (file)
@@ -1310,6 +1310,7 @@ bool exhalbtc_bind_bt_coex_withadapter(void *adapter)
                         "[BTCoex], Package Type = Non-TFBGA\n");
 
        btcoexist->board_info.rfe_type = rtl_get_hwpg_rfe_type(rtlpriv);
+       btcoexist->board_info.ant_div_cfg = 0;
 
        return true;
 }
index cd3925d..e0818f6 100644 (file)
@@ -153,6 +153,7 @@ struct btc_board_info {
        bool tfbga_package;
 
        u8 rfe_type;
+       u8 ant_div_cfg;
 };
 
 enum btc_dbg_opcode {