rtl8xxxu: Do not ignore wlan activity on 8723bu
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 29 Feb 2016 22:04:44 +0000 (17:04 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:29:04 +0000 (15:29 +0200)
The 8723bu is a WiFi/BT combo part. When initializing it for WiFi,
make sure to tell it not to ignore WiFi activity.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h

index 91f189a8505765c5bd1a78ef04814162076a6265..c9cbea7342b7b1cbbc13f722e42876aaad602ed3 100644 (file)
@@ -5704,6 +5704,11 @@ static void rtl8723bu_init_bt(struct rtl8xxxu_priv *priv)
         */
        rtl8xxxu_write32(priv, REG_S0S1_PATH_SWITCH, 0x00);
 
+       memset(&h2c, 0, sizeof(struct h2c_cmd));
+       h2c.ignore_wlan.cmd = H2C_8723B_BT_IGNORE_WLANACT;
+       h2c.ignore_wlan.data = 0;
+       rtl8723a_h2c_cmd(priv, &h2c, sizeof(h2c.ignore_wlan));
+
        /*
         * Software control, antenna at WiFi side
         */
index c4c0b287127bf205a8db51e95507b5463a6083a5..5a6b2232e20a56d8668589a21889912fe2d7d055 100644 (file)
@@ -752,6 +752,10 @@ struct h2c_cmd {
                        u8 cmd;
                        u8 data;
                } __packed bt_wlan_calibration;
+               struct {
+                       u8 cmd;
+                       u8 data;
+               } __packed ignore_wlan;
                struct {
                        u8 cmd;
                        u8 ant_inverse;