rtl8xxxu: Do LC calibration before IQK calibration
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 29 Feb 2016 22:04:37 +0000 (17:04 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:29:02 +0000 (15:29 +0200)
This matches the flow of the vendor driver for newer hardware, and
doesn't seem to cause issues for the older parts.

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 cfd016c5b7efe55ad66741b04070bdf46a77a194..62537bd824a5fab7be24e253bf0985dd4211e9d7 100644 (file)
@@ -5803,6 +5803,8 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
 
        rtl8xxxu_write16(priv, REG_FAST_EDCA_CTRL, 0);
 
+       rtl8723a_phy_lc_calibrate(priv);
+
        priv->fops->phy_iq_calibrate(priv);
 
        /*
@@ -5810,8 +5812,6 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
         */
        rtl8xxxu_write_rfreg(priv, RF_A, RF6052_REG_T_METER, 0x60);
 
-       rtl8723a_phy_lc_calibrate(priv);
-
        /* Init BT hw config. */
        rtl8xxxu_init_bt(priv);