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>
This commit is contained in:
Johannes Berg
2012-03-28 11:04:29 +02:00
committed by John W. Linville
parent 4644ae8903
commit 32c5057b22
5 changed files with 9 additions and 8 deletions

View File

@@ -676,7 +676,7 @@ static u16 ieee80211_monitor_select_queue(struct net_device *dev,
struct ieee80211_hdr *hdr;
struct ieee80211_radiotap_header *rtap = (void *)skb->data;
if (local->hw.queues < 4)
if (local->hw.queues < IEEE80211_NUM_ACS)
return 0;
if (skb->len < 4 ||