aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-07-24 14:02:04 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 16:29:50 -0400
commit92ab85354993ac3a364c65cab45745af470ffc67 (patch)
treeb36501661ee9093cb8e66919bbebbca4374c36d6 /net/mac80211/util.c
parent5442060c08a49bd0b416f033e0ae43ccedef5278 (diff)
mac80211: add ieee80211_queue_stopped)
This patch adds ieee80211_queue_stopped that let drivers to query queue status Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 0d463c80c404..24400618190c 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -386,6 +386,13 @@ void ieee80211_stop_queues(struct ieee80211_hw *hw)
386} 386}
387EXPORT_SYMBOL(ieee80211_stop_queues); 387EXPORT_SYMBOL(ieee80211_stop_queues);
388 388
389int ieee80211_queue_stopped(struct ieee80211_hw *hw, int queue)
390{
391 struct ieee80211_local *local = hw_to_local(hw);
392 return __netif_subqueue_stopped(local->mdev, queue);
393}
394EXPORT_SYMBOL(ieee80211_queue_stopped);
395
389void ieee80211_wake_queues(struct ieee80211_hw *hw) 396void ieee80211_wake_queues(struct ieee80211_hw *hw)
390{ 397{
391 int i; 398 int i;