PMKSA: Clear current cache entry on disassociation

Signed-hostap: Dan Williams <dcbw@redhat.com>
This commit is contained in:
Dan Williams 2012-11-25 21:53:55 +02:00 committed by Jouni Malinen
parent 6aaac006af
commit 0639970d89

View file

@ -2099,6 +2099,7 @@ void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid)
void wpa_sm_notify_disassoc(struct wpa_sm *sm) void wpa_sm_notify_disassoc(struct wpa_sm *sm)
{ {
rsn_preauth_deinit(sm); rsn_preauth_deinit(sm);
pmksa_cache_clear_current(sm);
if (wpa_sm_get_state(sm) == WPA_4WAY_HANDSHAKE) if (wpa_sm_get_state(sm) == WPA_4WAY_HANDSHAKE)
sm->dot11RSNA4WayHandshakeFailures++; sm->dot11RSNA4WayHandshakeFailures++;
#ifdef CONFIG_TDLS #ifdef CONFIG_TDLS