]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Send deauth/disassoc prior to dropping STA entry
authorJouni Malinen <j@w1.fi>
Tue, 30 Mar 2010 06:29:31 +0000 (23:29 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 31 Mar 2010 18:46:42 +0000 (14:46 -0400)
commit2d921e7c91b1313c55a29ba6000f27b7146b840a
tree9af5a6e3c3fbf70f9451b23e5c2f471b44672067
parent83d9a2dc01b1d1c971206259f535ad89f03ab989
mac80211: Send deauth/disassoc prior to dropping STA entry

When management frame protection (IEEE 802.11w) is used, the
deauthentication and disassociation frames must be protected whenever
the encryption keys are configured. We were removing the STA entry and
with it, the keys, just before actually sending out these frames which
meant that the frames went out unprotected. The AP will drop them in
such a case. Fix this by reordering the operations a bit so that
sta_info_destroy_addr() gets called only after
ieee80211_send_deauth_disassoc().

Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c