mac80211: fix WARN_ON in the new work code
authorFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jan 2010 19:44:35 +0000 (20:44 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Jan 2010 21:36:28 +0000 (16:36 -0500)
commit1396b231b0369c4146988c2f42fb416ae19e2572
tree3afd6b356b33d712eb88a01472cdf2a873f1d4ca
parenteb807fb23878bc319e029ed8ce3d835d239723a5
mac80211: fix WARN_ON in the new work code

ieee80211_work_rx_mgmt currently enqueues various management frames,
including deauth and disassoc frames, however the function
ieee80211_work_rx_queued_mgmt does not handle these, as they should
only occur if the AP is buggy. It does emit a WARN_ON when this happens
though, and several users have reported such instances.
Fix the WARN_ON by not queueing such frames in the first place.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/work.c