From 4e3cb9bc835e7fbe940f7fe78fcf55308ca7eddf Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 28 Mar 2012 11:04:28 +0200 Subject: [PATCH] --- yaml --- r: 300685 b: refs/heads/master c: 4644ae89033872a62b4fea6ca96b958e115efdc0 h: refs/heads/master i: 300683: 3978a1b264945e9f3705c4e4d6fcb5438f0afa1a v: v3 --- [refs] | 2 +- trunk/net/mac80211/util.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 8b0a2a11edf0..85f953c727a9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ada151252655b63409860e0795993cb369e667cc +refs/heads/master: 4644ae89033872a62b4fea6ca96b958e115efdc0 diff --git a/trunk/net/mac80211/util.c b/trunk/net/mac80211/util.c index ef725cabb099..471a831066dd 100644 --- a/trunk/net/mac80211/util.c +++ b/trunk/net/mac80211/util.c @@ -385,10 +385,6 @@ void ieee80211_add_pending_skbs_fn(struct ieee80211_local *local, int queue, i; spin_lock_irqsave(&local->queue_stop_reason_lock, flags); - for (i = 0; i < hw->queues; i++) - __ieee80211_stop_queue(hw, i, - IEEE80211_QUEUE_STOP_REASON_SKB_ADD); - while ((skb = skb_dequeue(skbs))) { struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); @@ -398,6 +394,10 @@ void ieee80211_add_pending_skbs_fn(struct ieee80211_local *local, } queue = skb_get_queue_mapping(skb); + + __ieee80211_stop_queue(hw, queue, + IEEE80211_QUEUE_STOP_REASON_SKB_ADD); + __skb_queue_tail(&local->pending[queue], skb); }