rtl8xxxu: 8723bu lock phy after RF init
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 29 Feb 2016 22:05:05 +0000 (17:05 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:29:09 +0000 (15:29 +0200)
Set PHY lock after running the RF init sequence on 8723bu.

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

index 960e1acd6ad775445f53fc19acfb46b2a63ebb08..f20568b14c3b23808aed8171ef4b47f3b12b4295 100644 (file)
@@ -6093,6 +6093,13 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
        case 0x8723b:
                rftable = rtl8723bu_radioa_1t_init_table;
                ret = rtl8xxxu_init_phy_rf(priv, rftable, RF_A);
+               /*
+                * PHY LCK
+                */
+               rtl8xxxu_write_rfreg(priv, RF_A, 0xb0, 0xdfbe0);
+               rtl8xxxu_write_rfreg(priv, RF_A, RF6052_REG_MODE_AG, 0x8c01);
+               msleep(200);
+               rtl8xxxu_write_rfreg(priv, RF_A, 0xb0, 0xdffe0);
                break;
        case 0x8188c:
                if (priv->hi_pa)