]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mt76: mt7603: reset STA_CCA counter setting the channel
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 21 Nov 2019 08:42:13 +0000 (10:42 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:00 +0000 (10:06 +0100)
Reset MT_MIB_STAT_CCA after channel switch since it is used to track busy
time starting from 'commit e71b3a52eb5d ("mt76: mt7603: switch to a
different counter for survey busy time")'

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/main.c

index 6da7caaaade137cf78b56d654ba8059760dc315d..eed56165b27582878ae243ba6f30c1008e608595 100644 (file)
@@ -187,7 +187,7 @@ mt7603_set_channel(struct mt7603_dev *dev, struct cfg80211_chan_def *def)
        mt76_clear(dev, MT_MIB_CTL, MT_MIB_CTL_READ_CLR_DIS);
        mt76_set(dev, MT_MIB_CTL,
                 MT_MIB_CTL_CCA_NAV_TX | MT_MIB_CTL_PSCCA_TIME);
-       mt76_rr(dev, MT_MIB_STAT_PSCCA);
+       mt76_rr(dev, MT_MIB_STAT_CCA);
        mt7603_cca_stats_reset(dev);
 
        dev->mphy.survey_time = ktime_get_boottime();