mt76: fix swapped values for RXO-18 in gain control
The lowest bit should be set to 0 only for strong links, not for weak ones. Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
9afef0fdda
commit
6cdb9614a8
|
@ -531,7 +531,7 @@ mt76x2_phy_update_channel_gain(struct mt76x2_dev *dev)
|
||||||
mt76_wr(dev, MT_BBP(RXO, 14), 0x00560423);
|
mt76_wr(dev, MT_BBP(RXO, 14), 0x00560423);
|
||||||
|
|
||||||
if (low_gain == 2) {
|
if (low_gain == 2) {
|
||||||
mt76_wr(dev, MT_BBP(RXO, 18), 0xf000a991);
|
mt76_wr(dev, MT_BBP(RXO, 18), 0xf000a990);
|
||||||
mt76_wr(dev, MT_BBP(AGC, 35), 0x08080808);
|
mt76_wr(dev, MT_BBP(AGC, 35), 0x08080808);
|
||||||
mt76_wr(dev, MT_BBP(AGC, 37), 0x08080808);
|
mt76_wr(dev, MT_BBP(AGC, 37), 0x08080808);
|
||||||
if (mt76x2_has_ext_lna(dev))
|
if (mt76x2_has_ext_lna(dev))
|
||||||
|
@ -539,7 +539,7 @@ mt76x2_phy_update_channel_gain(struct mt76x2_dev *dev)
|
||||||
else
|
else
|
||||||
gain_delta = 14;
|
gain_delta = 14;
|
||||||
} else {
|
} else {
|
||||||
mt76_wr(dev, MT_BBP(RXO, 18), 0xf000a990);
|
mt76_wr(dev, MT_BBP(RXO, 18), 0xf000a991);
|
||||||
if (dev->mt76.chandef.width == NL80211_CHAN_WIDTH_80)
|
if (dev->mt76.chandef.width == NL80211_CHAN_WIDTH_80)
|
||||||
mt76_wr(dev, MT_BBP(AGC, 35), 0x10101014);
|
mt76_wr(dev, MT_BBP(AGC, 35), 0x10101014);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue