Skip to contentSkip to conversation

mt76x0: pci: fix ACS support

PATCH Applied Lorenzo Bianconi 2 participants 2 messages Dec 10, 2018 – Dec 28, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 1/1 mt76x0: pci: fix ACS support

In reply to a message not in the archive

Fix Automatic Channel Selection (ACS) support in mt76x0e driver configuring properly MT_CH_TIME_CFG register

Fixes 6250318694ca ("mt76x0: pci: add get_survey support")
---
 drivers/net/wireless/mediatek/mt76/mt76x0/pci.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/net/wireless/mediatek/mt76/mt76x0/pci.c +8 -0
index d895b6f3dc44..1906cc62690f 100644
@@ -141,6 +141,14 @@ static int mt76x0e_register_device(struct mt76x02_dev *dev)
 	mt76_clear(dev, 0x110, BIT(9));
 	mt76_set(dev, MT_MAX_LEN_CFG, BIT(13));
 
+	mt76_wr(dev, MT_CH_TIME_CFG,
+		MT_CH_TIME_CFG_TIMER_EN |
+		MT_CH_TIME_CFG_TX_AS_BUSY |
+		MT_CH_TIME_CFG_RX_AS_BUSY |
+		MT_CH_TIME_CFG_NAV_AS_BUSY |
+		MT_CH_TIME_CFG_EIFS_AS_BUSY |
+		FIELD_PREP(MT_CH_TIME_CFG_CH_TIMER_CLR, 1));
+
 	err = mt76x0_register_device(dev);
 	if (err < 0)
 		return err;
Signature · 1 line
2.19.2
maintainer Applied
#2 lore raw
Quoted 5 lines · Lorenzo Bianconi

Fix Automatic Channel Selection (ACS) support in mt76x0e driver configuring properly MT_CH_TIME_CFG register

Fixes 6250318694ca ("mt76x0: pci: add get_survey support")

Applied, thanks.

- Felix