]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mac80211: don't stop all queues when flushing
authorLuciano Coelho <luciano.coelho@intel.com>
Fri, 13 Jun 2014 13:30:04 +0000 (16:30 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Jun 2014 12:22:24 +0000 (14:22 +0200)
There is no need to stop all queues when we want to flush specific
queues, so stop only the queues that will be flushed.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c

index 6886601afe1c731c3cc7b5409745307b2f48e67c..6d29e40538ad7886cef285379da08a1458c69411 100644 (file)
@@ -551,12 +551,12 @@ void ieee80211_flush_queues(struct ieee80211_local *local,
                queues = BIT(local->hw.queues) - 1;
        }
 
-       ieee80211_stop_queues_by_reason(&local->hw, IEEE80211_MAX_QUEUE_MAP,
+       ieee80211_stop_queues_by_reason(&local->hw, queues,
                                        IEEE80211_QUEUE_STOP_REASON_FLUSH);
 
        drv_flush(local, sdata, queues, false);
 
-       ieee80211_wake_queues_by_reason(&local->hw, IEEE80211_MAX_QUEUE_MAP,
+       ieee80211_wake_queues_by_reason(&local->hw, queues,
                                        IEEE80211_QUEUE_STOP_REASON_FLUSH);
 }