From 0169cab3e4e8377ab5a508895ec893c4e00dbbc5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 5 Oct 2015 17:43:10 +0200 Subject: [PATCH] tx: only set txq->send_bar if aggregation is active Signed-off-by: Felix Fietkau --- tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tx.c b/tx.c index 3c76142c..170cba65 100644 --- a/tx.c +++ b/tx.c @@ -442,7 +442,7 @@ mt76_stop_tx_queues(struct mt76_dev *dev, struct ieee80211_sta *sta) struct mt76_txq *mtxq = (struct mt76_txq *) txq->drv_priv; spin_lock_bh(&mtxq->hwq->lock); - mtxq->send_bar = true; + mtxq->send_bar = mtxq->aggr; if (!list_empty(&mtxq->list)) list_del_init(&mtxq->list); spin_unlock_bh(&mtxq->hwq->lock);