Commit 5ac61789 authored by Jes Sorensen's avatar Jes Sorensen Committed by Kalle Valo
Browse files

rtl8xxxu: 8723bu lock phy after RF init



Set PHY lock after running the RF init sequence on 8723bu.

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 1ea8e846
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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)