summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Pedersen <thomas@cozybit.com>2013-04-10 15:41:40 -0700
committerJohannes Berg <johannes.berg@intel.com>2013-04-11 12:08:06 +0200
commit2419ea14bb0dfabe740f1e005c0782db9bc56441 (patch)
treecacae75af2520b42874f49a6f5ff0fb25f9a6d80
parent0ca54f6c5fd4ce58aa044d1fc7f00d7f6cf2801c (diff)
downloadop-kernel-dev-2419ea14bb0dfabe740f1e005c0782db9bc56441.zip
op-kernel-dev-2419ea14bb0dfabe740f1e005c0782db9bc56441.tar.gz
mac80211: fix ieee80211_queue_stopped()
Johannes Berg notes mac80211 drivers which use ieee80211_queue_stopped() really only want to know if they previously requested a queue stop. Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/mac80211/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 447e665..1d6217a 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -485,7 +485,8 @@ int ieee80211_queue_stopped(struct ieee80211_hw *hw, int queue)
return true;
spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
- ret = !!local->queue_stop_reasons[queue];
+ ret = test_bit(IEEE80211_QUEUE_STOP_REASON_DRIVER,
+ &local->queue_stop_reasons[queue]);
spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
return ret;
}
OpenPOWER on IntegriCloud