diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-08-27 11:36:49 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-27 17:27:08 (GMT) |
commit | 2337db8db845ece2d4ab7673a343e285f1bfda85 (patch) | |
tree | ec1a3c806b8638c08caf8acef1b9d411e1e612fd /net/mac80211/util.c | |
parent | a621fa4d6a7fdf9d34938d2e129a72624833eeeb (diff) | |
download | linux-fsl-qoriq-2337db8db845ece2d4ab7673a343e285f1bfda85.tar.xz |
mac80211: use subqueue helpers
There are subqueue helpers so that we don't
need to get the TX queue and then wake/stop
it, use those helpers.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/util.c')
-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 cd2b485..ef686d3 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -284,7 +284,7 @@ static void __ieee80211_wake_queue(struct ieee80211_hw *hw, int queue, if (skb_queue_empty(&local->pending[queue])) { rcu_read_lock(); list_for_each_entry_rcu(sdata, &local->interfaces, list) - netif_tx_wake_queue(netdev_get_tx_queue(sdata->dev, queue)); + netif_wake_subqueue(sdata->dev, queue); rcu_read_unlock(); } else tasklet_schedule(&local->tx_pending_tasklet); @@ -323,7 +323,7 @@ static void __ieee80211_stop_queue(struct ieee80211_hw *hw, int queue, rcu_read_lock(); list_for_each_entry_rcu(sdata, &local->interfaces, list) - netif_tx_stop_queue(netdev_get_tx_queue(sdata->dev, queue)); + netif_stop_subqueue(sdata->dev, queue); rcu_read_unlock(); } |