mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: fix beacon queue cleanup
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-1
@@ -89,7 +89,7 @@ void mt7603_pre_tbtt_tasklet(unsigned long arg)
|
||||
} while (nframes != skb_queue_len(&data.q));
|
||||
|
||||
if (!nframes)
|
||||
return;
|
||||
goto out;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(data.tail); i++) {
|
||||
if (!data.tail[i])
|
||||
@@ -109,6 +109,7 @@ void mt7603_pre_tbtt_tasklet(unsigned long arg)
|
||||
mt76_queue_kick(dev, q);
|
||||
spin_unlock_bh(&q->lock);
|
||||
|
||||
out:
|
||||
mt76_queue_tx_cleanup(dev, MT_TXQ_BEACON, false);
|
||||
mt76_queue_tx_cleanup(dev, MT_TXQ_CAB, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user