projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9292116
)
mt76: clear false CCA counters after changing gain settings
author
Felix Fietkau
<nbd@nbd.name>
Thu, 21 Jun 2018 09:17:57 +0000
(11:17 +0200)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 27 Jun 2018 16:14:58 +0000
(19:14 +0300)
They will be read on the next calibration step without gain change and
must not count earlier events
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
b/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
index a2c3f0e35f8630bc633467607868f7ca2e926820..51fd7ddfa8f5fcc050a33f1f331549dd9981b5e0 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
@@
-559,6
+559,9
@@
mt76x2_phy_update_channel_gain(struct mt76x2_dev *dev)
dev->cal.agc_gain_cur[1] = gain[1] - gain_delta;
dev->cal.agc_gain_adjust = 0;
mt76x2_phy_set_gain_val(dev);
+
+ /* clear false CCA counters */
+ mt76_rr(dev, MT_RX_STAT_1);
}
int mt76x2_phy_set_channel(struct mt76x2_dev *dev,