]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mt76: do not wake tx queues during flush
authorFelix Fietkau <nbd@nbd.name>
Fri, 9 Nov 2018 12:43:58 +0000 (13:43 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:29:33 +0000 (12:29 +0100)
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>
drivers/net/wireless/mediatek/mt76/dma.c

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