summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-06-21 11:17:54 +0200
committerKalle Valo <kvalo@codeaurora.org>2018-06-27 18:14:48 +0200
commit9afef0fddaa1879ae4e14fc3079e38f1fbdd7427 (patch)
treee6457c9df9b83c254b578cf7df8b62a21f909992 /drivers/net/wireless
parentmt76: fix beacon timer drift (diff)
downloadlinux-9afef0fddaa1879ae4e14fc3079e38f1fbdd7427.tar.xz
linux-9afef0fddaa1879ae4e14fc3079e38f1fbdd7427.zip
mt76: fix threshold for gain adjustment
The gain should be reduced only for very strong connections, not for mid range. Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76x2_phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c b/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
index c1c38ca3330a..4ed6641c3a32 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
@@ -530,7 +530,7 @@ mt76x2_phy_update_channel_gain(struct mt76x2_dev *dev)
else
mt76_wr(dev, MT_BBP(RXO, 14), 0x00560423);
- if (low_gain) {
+ if (low_gain == 2) {
mt76_wr(dev, MT_BBP(RXO, 18), 0xf000a991);
mt76_wr(dev, MT_BBP(AGC, 35), 0x08080808);
mt76_wr(dev, MT_BBP(AGC, 37), 0x08080808);