mt76: clear CCA timer stats in mt76x02_edcca_init

Avoid triggering too early

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2019-02-03 14:46:59 +01:00
parent e3c1aad159
commit 4e8766a59c
+3
View File
@@ -920,6 +920,9 @@ void mt76x02_edcca_init(struct mt76x02_dev *dev, bool enable)
} }
} }
mt76x02_edcca_tx_enable(dev, true); mt76x02_edcca_tx_enable(dev, true);
/* clear previous CCA timer value */
mt76_rr(dev, MT_ED_CCA_TIMER);
} }
EXPORT_SYMBOL_GPL(mt76x02_edcca_init); EXPORT_SYMBOL_GPL(mt76x02_edcca_init);