Skip to content

Commit fcd835b

Browse files
Ping-Ke Shihgregkh
authored andcommitted
rtlwifi: btcoex: Add power_on_setting routine
commit a44709b upstream. 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 <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 10579ed commit fcd835b

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
@@ -601,6 +601,7 @@ extern struct btc_coexist gl_bt_coexist;
601601

602602
bool exhalbtc_initlize_variables(void);
603603
bool exhalbtc_bind_bt_coex_withadapter(void *adapter);
604+
void exhalbtc_power_on_setting(struct btc_coexist *btcoexist);
604605
void exhalbtc_init_hw_config(struct btc_coexist *btcoexist, bool wifi_only);
605606
void exhalbtc_init_coex_dm(struct btc_coexist *btcoexist);
606607
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,
@@ -110,6 +111,11 @@ void rtl_btc_init_hal_vars(struct rtl_priv *rtlpriv)
110111
*/
111112
}
112113

114+
void rtl_btc_power_on_setting(struct rtl_priv *rtlpriv)
115+
{
116+
exhalbtc_power_on_setting(&gl_bt_coexist);
117+
}
118+
113119
void rtl_btc_init_hw_config(struct rtl_priv *rtlpriv)
114120
{
115121
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
@@ -2545,6 +2545,7 @@ struct bt_coexist_info {
25452545
struct rtl_btc_ops {
25462546
void (*btc_init_variables) (struct rtl_priv *rtlpriv);
25472547
void (*btc_init_hal_vars) (struct rtl_priv *rtlpriv);
2548+
void (*btc_power_on_setting)(struct rtl_priv *rtlpriv);
25482549
void (*btc_init_hw_config) (struct rtl_priv *rtlpriv);
25492550
void (*btc_ips_notify) (struct rtl_priv *rtlpriv, u8 type);
25502551
void (*btc_lps_notify)(struct rtl_priv *rtlpriv, u8 type);

0 commit comments

Comments
 (0)