Skip to content

Commit a44709b

Browse files
Ping-Ke ShihKalle Valo
authored andcommitted
rtlwifi: btcoex: Add power_on_setting routine
After mac power-on sequence, wifi will start to work so notify btcoex the event to configure registers especially related to antenna. This will not only help to assign antenna but also to yield better user experience. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent 37e89a0 commit a44709b

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ extern struct btc_coexist gl_bt_coexist;
608608

609609
bool exhalbtc_initlize_variables(void);
610610
bool exhalbtc_bind_bt_coex_withadapter(void *adapter);
611+
void exhalbtc_power_on_setting(struct btc_coexist *btcoexist);
611612
void exhalbtc_init_hw_config(struct btc_coexist *btcoexist, bool wifi_only);
612613
void exhalbtc_init_coex_dm(struct btc_coexist *btcoexist);
613614
void exhalbtc_ips_notify(struct btc_coexist *btcoexist, u8 type);

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
static struct rtl_btc_ops rtl_btc_operation = {
3333
.btc_init_variables = rtl_btc_init_variables,
3434
.btc_init_hal_vars = rtl_btc_init_hal_vars,
35+
.btc_power_on_setting = rtl_btc_power_on_setting,
3536
.btc_init_hw_config = rtl_btc_init_hw_config,
3637
.btc_ips_notify = rtl_btc_ips_notify,
3738
.btc_lps_notify = rtl_btc_lps_notify,
@@ -116,6 +117,11 @@ void rtl_btc_init_hal_vars(struct rtl_priv *rtlpriv)
116117
*/
117118
}
118119

120+
void rtl_btc_power_on_setting(struct rtl_priv *rtlpriv)
121+
{
122+
exhalbtc_power_on_setting(&gl_bt_coexist);
123+
}
124+
119125
void rtl_btc_init_hw_config(struct rtl_priv *rtlpriv)
120126
{
121127
u8 bt_exist;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
void rtl_btc_init_variables(struct rtl_priv *rtlpriv);
3131
void rtl_btc_init_hal_vars(struct rtl_priv *rtlpriv);
32+
void rtl_btc_power_on_setting(struct rtl_priv *rtlpriv);
3233
void rtl_btc_init_hw_config(struct rtl_priv *rtlpriv);
3334
void rtl_btc_ips_notify(struct rtl_priv *rtlpriv, u8 type);
3435
void rtl_btc_lps_notify(struct rtl_priv *rtlpriv, u8 type);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2557,6 +2557,7 @@ struct bt_coexist_info {
25572557
struct rtl_btc_ops {
25582558
void (*btc_init_variables) (struct rtl_priv *rtlpriv);
25592559
void (*btc_init_hal_vars) (struct rtl_priv *rtlpriv);
2560+
void (*btc_power_on_setting)(struct rtl_priv *rtlpriv);
25602561
void (*btc_init_hw_config) (struct rtl_priv *rtlpriv);
25612562
void (*btc_ips_notify) (struct rtl_priv *rtlpriv, u8 type);
25622563
void (*btc_lps_notify)(struct rtl_priv *rtlpriv, u8 type);

0 commit comments

Comments
 (0)