From 4e8766a59c070d160e773373c7b2fa852018bb35 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 3 Feb 2019 14:15:58 +0100 Subject: [PATCH] mt76: clear CCA timer stats in mt76x02_edcca_init Avoid triggering too early Signed-off-by: Felix Fietkau --- mt76x02_mac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mt76x02_mac.c b/mt76x02_mac.c index 60ddd942..8da7b8c5 100644 --- a/mt76x02_mac.c +++ b/mt76x02_mac.c @@ -920,6 +920,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);