From: Jouni Malinen Date: Wed, 7 Sep 2011 13:31:09 +0000 (+0300) Subject: Clear driver PMKSA cache entry on PMKSA cache expiration X-Git-Tag: hostap-1-bp~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=734baae0af9a82390e33e680c62b13051e34a692;p=thirdparty%2Fhostap.git Clear driver PMKSA cache entry on PMKSA cache expiration If the driver maintains its own copy of the PMKSA cache, we need to clear an entry from the driver whenever wpa_supplicant is dropping an old PMKSA cache entry. --- diff --git a/src/rsn_supp/pmksa_cache.c b/src/rsn_supp/pmksa_cache.c index cac8c83e6..12f1f1ef3 100644 --- a/src/rsn_supp/pmksa_cache.c +++ b/src/rsn_supp/pmksa_cache.c @@ -66,6 +66,7 @@ static void pmksa_cache_expire(void *eloop_ctx, void *timeout_ctx) pmksa->pmksa = entry->next; wpa_printf(MSG_DEBUG, "RSN: expired PMKSA cache entry for " MACSTR, MAC2STR(entry->aa)); + wpa_sm_remove_pmkid(pmksa->sm, entry->aa, entry->pmkid); pmksa_cache_free_entry(pmksa, entry, 0); }