aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-28 11:04:29 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-04-10 14:56:10 -0400
commit32c5057b22a60b23353dda93c57e475856ca286c (patch)
tree68a80dd3fb3a93f0eacf1566c3dd60877efe6cf2 /net/mac80211/tx.c
parentmac80211: lazily stop queues in add_pending (diff)
downloadlinux-dev-32c5057b22a60b23353dda93c57e475856ca286c.tar.xz
linux-dev-32c5057b22a60b23353dda93c57e475856ca286c.zip
mac80211: use IEEE80211_NUM_ACS
When comparing hw->queues to determine if the device is QoS capable, use IEEE80211_NUM_ACS instead of just 4. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index b35d319cea8f..14a01c81f959 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1928,7 +1928,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
wme_sta = true;
/* receiver and we are QoS enabled, use a QoS type frame */
- if (wme_sta && local->hw.queues >= 4) {
+ if (wme_sta && local->hw.queues >= IEEE80211_NUM_ACS) {
fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA);
hdrlen += 2;
}