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)
commite69e95dbecfb73f76765cdd16dadc6219a9068e3
tree9af5a6e3c3fbf70f9451b23e5c2f471b44672067
parent17e4ec147f4939ca8c81b41b4261ec7974531381
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