diff options
author | Ping-Ke Shih <pkshih@realtek.com> | 2018-01-17 14:15:30 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-01-17 17:09:26 +0200 |
commit | 188b6b092e3afbc9009da2a78b9ea121ebab26e8 (patch) | |
tree | f9d210911066ec6fa8751ae1239db3fc17c76728 /drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c | |
parent | b2283dad6bfd9e4dfbe5f7b039ae820d530b6915 (diff) | |
download | talos-op-linux-188b6b092e3afbc9009da2a78b9ea121ebab26e8.tar.gz talos-op-linux-188b6b092e3afbc9009da2a78b9ea121ebab26e8.zip |
rtlwifi: btcoex: add rfe_type parameter to btcoex
btcoex configure antenna by rfe_type that is RF type programmed in efuse.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c')
-rw-r--r-- | drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c index 50717cf848fb..af8f3778dc91 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c @@ -208,6 +208,14 @@ u8 rtl_get_hwpg_package_type(struct rtl_priv *rtlpriv) } static +u8 rtl_get_hwpg_rfe_type(struct rtl_priv *rtlpriv) +{ + struct rtl_hal *rtlhal = rtl_hal(rtlpriv); + + return rtlhal->rfe_type; +} + +static bool halbtc_is_hw_mailbox_exist(struct btc_coexist *btcoexist) { if (IS_HARDWARE_TYPE_8812(btcoexist->adapter)) @@ -1308,6 +1316,8 @@ bool exhalbtc_bind_bt_coex_withadapter(void *adapter) RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "[BTCoex], Package Type = Non-TFBGA\n"); + btcoexist->board_info.rfe_type = rtl_get_hwpg_rfe_type(rtlpriv); + return true; } |