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

Commit 9068308a authored by Jes Sorensen's avatar Jes Sorensen Committed by Kalle Valo
Browse files

rtl8xxxu: Correctly mask what was read from REG_CCK0_AFE_SETTING



The old code incorrectly wiped out bits 0-23 by mistake when setting
the RX path for 1T parts.

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 15f9dc99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3814,7 +3814,7 @@ static int rtl8xxxu_init_phy_bb(struct rtl8xxxu_priv *priv)
		rtl8xxxu_write32(priv, REG_FPGA1_TX_INFO, val32);

		val32 = rtl8xxxu_read32(priv, REG_CCK0_AFE_SETTING);
		val32 &= 0xff000000;
		val32 &= 0x00ffffff;
		val32 |= 0x45000000;
		rtl8xxxu_write32(priv, REG_CCK0_AFE_SETTING, val32);