mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x2: init: fix rx filter default value during init
mt76x2_mac_start writes dev->rxfilter to the hardware. It also happens during init, before dev->rxfilter is filled with the initval register value, leading to issues like promisc mode being enabled unconditionally. Fix this by reading the default value into dev->rxfilter earlier Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
c64633e857
commit
ac815fa2a5
+2
-1
@@ -583,6 +583,8 @@ int mt76x2_init_hardware(struct mt76x2_dev *dev)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
dev->rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG);
|
||||
|
||||
ret = mt76x2_dma_init(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
@@ -597,7 +599,6 @@ int mt76x2_init_hardware(struct mt76x2_dev *dev)
|
||||
return ret;
|
||||
|
||||
mt76x2_mac_stop(dev, false);
|
||||
dev->rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user