Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a719208 authored by Mark Cave-Ayland's avatar Mark Cave-Ayland Committed by John W. Linville
Browse files

rtlwifi: rtl8192cu: Bring rtl92cu_phy_bb_config() up to date



The latest vendor driver contains some changes not in the kernel version.

Signed-off-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d3af1ce1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@ bool rtl92cu_phy_bb_config(struct ieee80211_hw *hw)
	struct rtl_priv *rtlpriv = rtl_priv(hw);
	struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
	u16 regval;
	u32 regval32;
	u8 b_reg_hwparafile = 1;

	_rtl92c_phy_init_bb_rf_register_definition(hw);
@@ -135,8 +136,11 @@ bool rtl92cu_phy_bb_config(struct ieee80211_hw *hw)
	} else if (IS_HARDWARE_TYPE_8192CU(rtlhal)) {
		rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, FEN_USBA | FEN_USBD |
			       FEN_BB_GLB_RSTn | FEN_BBRSTB);
		rtl_write_byte(rtlpriv, REG_LDOHCI12_CTRL, 0x0f);
	}
	regval32 = rtl_read_dword(rtlpriv, 0x87c);
	rtl_write_dword(rtlpriv, 0x87c, regval32 & (~BIT(31)));
	if (IS_HARDWARE_TYPE_8192CU(rtlhal))
		rtl_write_byte(rtlpriv, REG_LDOHCI12_CTRL, 0x0f);
	rtl_write_byte(rtlpriv, REG_AFE_XTAL_CTRL + 1, 0x80);
	if (b_reg_hwparafile == 1)
		rtstatus = _rtl92c_phy_bb8192c_config_parafile(hw);