tx: free txq skbs without holding the hw queue lock

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2015-10-12 14:26:11 +02:00
parent 35c24b4db0
commit f0573e15b4
+1 -2
View File
@@ -478,9 +478,8 @@ void mt76_txq_remove(struct mt76_dev *dev, struct ieee80211_txq *txq)
spin_lock_bh(&hwq->lock);
if (!list_empty(&mtxq->list))
list_del(&mtxq->list);
spin_unlock_bh(&hwq->lock);
while ((skb = skb_dequeue(&mtxq->retry_q)) != NULL)
ieee80211_free_txskb(dev->hw, skb);
spin_unlock_bh(&hwq->lock);
}