mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: clean up beacon/cab queue in pre-tbtt tasklet
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -107,6 +107,9 @@ void mt7603_pre_tbtt_tasklet(unsigned long arg)
|
||||
}
|
||||
mt76_queue_kick(dev, q);
|
||||
spin_unlock_bh(&q->lock);
|
||||
|
||||
mt76_queue_tx_cleanup(dev, &dev->mt76.q_tx[MT_TXQ_BEACON], false);
|
||||
mt76_queue_tx_cleanup(dev, &dev->mt76.q_tx[MT_TXQ_CAB], false);
|
||||
}
|
||||
|
||||
void mt7603_beacon_set_timer(struct mt7603_dev *dev, int idx, int intval)
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ mt7603_tx_tasklet(unsigned long data)
|
||||
struct mt7603_dev *dev = (struct mt7603_dev *) data;
|
||||
int i;
|
||||
|
||||
for (i = ARRAY_SIZE(dev->mt76.q_tx) - 1; i >= 0; i--)
|
||||
for (i = MT_TXQ_MCU; i >= 0; i--)
|
||||
mt76_queue_tx_cleanup(dev, &dev->mt76.q_tx[i], false);
|
||||
|
||||
mt7603_irq_enable(dev, MT_INT_TX_DONE_ALL);
|
||||
|
||||
Reference in New Issue
Block a user