]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clear driver PMKSA cache entry on PMKSA cache expiration
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 7 Sep 2011 13:31:09 +0000 (16:31 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 7 Sep 2011 13:31:09 +0000 (16:31 +0300)
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.

src/rsn_supp/pmksa_cache.c

index cac8c83e6eeb4569794d9d2b3294686242484b5c..12f1f1ef301907155350da138592c5d2b61b98f7 100644 (file)
@@ -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);
        }