diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2014-06-13 09:30:04 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-06-23 08:22:24 -0400 |
commit | 59f48fe22fe817df1ced42dee28b31de88b478b6 (patch) | |
tree | 57fc25c96c7cfb8d05e860b97e4715133a35ce1c /net | |
parent | 8d7b70fb7bf8963634052f455db86074d48bab2c (diff) |
mac80211: don't stop all queues when flushing
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 6886601afe1c..6d29e40538ad 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -551,12 +551,12 @@ void ieee80211_flush_queues(struct ieee80211_local *local, | |||
551 | queues = BIT(local->hw.queues) - 1; | 551 | queues = BIT(local->hw.queues) - 1; |
552 | } | 552 | } |
553 | 553 | ||
554 | ieee80211_stop_queues_by_reason(&local->hw, IEEE80211_MAX_QUEUE_MAP, | 554 | ieee80211_stop_queues_by_reason(&local->hw, queues, |
555 | IEEE80211_QUEUE_STOP_REASON_FLUSH); | 555 | IEEE80211_QUEUE_STOP_REASON_FLUSH); |
556 | 556 | ||
557 | drv_flush(local, sdata, queues, false); | 557 | drv_flush(local, sdata, queues, false); |
558 | 558 | ||
559 | ieee80211_wake_queues_by_reason(&local->hw, IEEE80211_MAX_QUEUE_MAP, | 559 | ieee80211_wake_queues_by_reason(&local->hw, queues, |
560 | IEEE80211_QUEUE_STOP_REASON_FLUSH); | 560 | IEEE80211_QUEUE_STOP_REASON_FLUSH); |
561 | } | 561 | } |
562 | 562 | ||