mac80211: refuse TX queue configuration on non-QoS HW
authorJohannes Berg <johannes.berg@intel.com>
Wed, 28 Mar 2012 09:04:25 +0000 (11:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 18:54:10 +0000 (14:54 -0400)
commit54bcbc695e2ca88e1c8f05a93d38a04ac6b1aa0e
tree9de43e51ce2195f5a81fa75770417c584ef50254
parenta3304b0a17495183a2270d4a25978795226597a4
mac80211: refuse TX queue configuration on non-QoS HW

Drivers that don't support QoS also don't support
setting up their ACs, catch that early. While at
it, remove the input check since cfg80211 does it
now.

Also fix up the restart code to not try to set up
the queues in this case.

Finally also change the tx_conf array to have
IEEE80211_NUM_ACS entries instead of # of queues
since that's what it really needs.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/util.c