From 15391c1c947f8ceef6b59791df4f24405e60cef9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 27 Aug 2020 15:16:25 +0200 Subject: [PATCH] mt76: fix tx hang on non-AQL frame limit Signed-off-by: Felix Fietkau --- tx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tx.c b/tx.c index 66bf5659..db11ca64 100644 --- a/tx.c +++ b/tx.c @@ -495,9 +495,12 @@ mt76_txq_send_burst(struct mt76_phy *phy, struct mt76_queue *q, do { if (test_bit(MT76_STATE_PM, &phy->state) || - test_bit(MT76_RESET, &phy->state) || stop) + test_bit(MT76_RESET, &phy->state)) return -EBUSY; + if (stop) + break; + if (q->queued + MT_TXQ_FREE_THR >= q->ndesc) break;