mac80211: add missing sanity checks for action frames
authorFelix Fietkau <nbd@openwrt.org>
Thu, 7 Jan 2010 19:23:53 +0000 (20:23 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jan 2010 18:19:47 +0000 (10:19 -0800)
commit9b13cca3a8623088d95d9897d29370b4e0b9c213
treed321dd92164b914b38b8fbe567f02ed426adb650
parent0ea5505e18a1cb8eebf3384f825840897894ceda
mac80211: add missing sanity checks for action frames

commit d79074488083ec0d7ecd15352192dc1631f25643 upstream.

Various missing sanity checks caused rejected action frames to be
interpreted as channel switch announcements, which can cause a client
mode interface to switch away from its operating channel, thereby losing
connectivity. This patch ensures that only spectrum management action
frames are processed by the CSA handling function and prevents rejected
action frames from getting processed by the MLME code.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/mlme.c
net/mac80211/rx.c