diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-07-24 20:02:04 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 22:29:50 +0200 |
commit | 92ab85354993ac3a364c65cab45745af470ffc67 (patch) | |
tree | b36501661ee9093cb8e66919bbebbca4374c36d6 /net | |
parent | WIRELESS: Make wireless one-click selectable. (diff) | |
download | linux-92ab85354993ac3a364c65cab45745af470ffc67.tar.xz linux-92ab85354993ac3a364c65cab45745af470ffc67.zip |
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')
-rw-r--r-- | net/mac80211/util.c | 7 |
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) } EXPORT_SYMBOL(ieee80211_stop_queues); +int ieee80211_queue_stopped(struct ieee80211_hw *hw, int queue) +{ + struct ieee80211_local *local = hw_to_local(hw); + return __netif_subqueue_stopped(local->mdev, queue); +} +EXPORT_SYMBOL(ieee80211_queue_stopped); + void ieee80211_wake_queues(struct ieee80211_hw *hw) { int i; |