]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix drop-unencrypted for management frames
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 19 Jan 2009 14:52:00 +0000 (16:52 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:00:51 +0000 (16:00 -0500)
commit2d3284c87e3107408e0ed539deecb252ed3a860c
treea4b7fb8a0ce07ab01e1efd408d21eea280827e96
parent4d4d378ad54e418eb3b48164c862769ae562d7b3
mac80211: Fix drop-unencrypted for management frames

ADDBA request Action frame was sent out before 4-way handshake was
completed and the initial 802.11w code ended up dropping the frame
even if MFP was not enabled. While the sending of Action frames this
early is not really a good idea (will break with MFP enabled), we
should not break this for the MFP disabled case.

This patch fixes ieee80211_tx_h_select_key() not to drop management
frames if MFP is disabled. If MFP is enabled, Action frames will be
dropped before keys are set per IEEE 802.11w/D7.0. Other robust
management frames (i.e., Deauthentication and Disassociation frames)
are allowed unprotected prior to key configuration.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c