diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-02-03 16:15:58 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-02-18 21:54:33 +0300 |
commit | c15b7cef2af8ea2dfac61af5f4f2b27aaed8d7e6 (patch) | |
tree | 8250e27e4427ea86bfa14d28849f35abfb7337ec /drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | |
parent | 2e4050240a6ba96b95c778b6710fbdfadac0ba2e (diff) | |
download | linux-c15b7cef2af8ea2dfac61af5f4f2b27aaed8d7e6.tar.xz |
mt76: clear CCA timer stats in mt76x02_edcca_init
Avoid triggering too early
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mac.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c index 89c7368cbd52..aecf514bb89b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c @@ -919,6 +919,9 @@ void mt76x02_edcca_init(struct mt76x02_dev *dev, bool enable) } } mt76x02_edcca_tx_enable(dev, true); + + /* clear previous CCA timer value */ + mt76_rr(dev, MT_ED_CCA_TIMER); } EXPORT_SYMBOL_GPL(mt76x02_edcca_init); |