]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: check IEEE80211_HW_QUEUE_CONTROL in ieee80211_check_queues()
authorLuciano Coelho <coelho@ti.com>
Thu, 12 Apr 2012 13:09:49 +0000 (16:09 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Apr 2012 18:16:58 +0000 (14:16 -0400)
commit4ba7eaa8c9068b133653a1d847927f1f87b4a48f
tree84cba10f31d122cf986537c6d8cacf21399dba6c
parentbe257146562266505cb2e3925af8c23cb1d1d204
mac80211: check IEEE80211_HW_QUEUE_CONTROL in ieee80211_check_queues()

Commit a7c42d82 (mac80211: add improved HW queue control) introduced a
bug when running in AP mode without the IEEE80211_HW_QUEUE_CONTROL
flag set.  The ieee80211_check_queues() function always returns
-EINVAL, preventing AP mode from starting.  To fix this, check whether
this flag is set before checking if cab_queue is set properly.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c