summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2016-02-29 17:04:37 -0500
committerKalle Valo <kvalo@codeaurora.org>2016-03-10 15:29:02 +0200
commitfa0f2d481d178fa2bf44f9488a695ab56d4e78f6 (patch)
tree9afd2af2482f2a6282395356dedb4e0ce502c21e
parent0d698dec06f828480a95a0c7a91c13bc4ad374e4 (diff)
rtl8xxxu: Do LC calibration before IQK calibration
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>
-rw-r--r--drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
index cfd016c5b7ef..62537bd824a5 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
@@ -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);