mt76: do not wake tx queues during flush

While the queue is being cleaned up, the stack must not attempt to add
any extra packets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2018-11-09 13:43:58 +01:00
parent 79d1c94c9c
commit 13c6d5f837
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ mt76_dma_tx_cleanup(struct mt76_dev *dev, enum mt76_txq_id qid, bool flush)
if (entry.txwi) { if (entry.txwi) {
mt76_put_txwi(dev, entry.txwi); mt76_put_txwi(dev, entry.txwi);
wake = true; wake = !flush;
} }
if (!flush && q->tail == last) if (!flush && q->tail == last)