mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt76x0u: reset counter starting the device
Remove mt76x02_mac_reset_counters from mt76x0_init_hardware since it will be run starting the device Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0355b7ae2b
commit
c39488772d
+1
-2
@@ -160,6 +160,7 @@ static void mt76x0_init_mac_registers(struct mt76x02_dev *dev)
|
||||
|
||||
int mt76x0_mac_start(struct mt76x02_dev *dev)
|
||||
{
|
||||
mt76x02_mac_reset_counters(dev);
|
||||
mt76_wr(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_ENABLE_TX);
|
||||
|
||||
if (!mt76x02_wait_for_wpdma(&dev->mt76, 200000))
|
||||
@@ -242,8 +243,6 @@ int mt76x0_init_hardware(struct mt76x02_dev *dev)
|
||||
for (i = 0; i < 256; i++)
|
||||
mt76x02_mac_wcid_setup(dev, i, 0, NULL);
|
||||
|
||||
mt76x02_mac_reset_counters(dev);
|
||||
|
||||
ret = mt76x0_eeprom_init(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user