Flush pmk cache

Dmitry Shmidt dimitrysh
Mon Feb 28 17:52:59 PST 2011


We saw that if you connect to enterprise network, then remove it and
recreate with wrong password it will be still connected properly.
Our suspicion is pmk cache. Does it make sense to flush it in this case like:
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 351804e..9b0185d 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -1041,12 +1041,13 @@ static int wpa_supplicant_ctrl_iface_remove_network(

        if (ssid == wpa_s->current_ssid) {
+               wpa_printf(MSG_DEBUG, "RSN: flushing PMKID list in the driver");
+               wpa_drv_flush_pmkid(wpa_s);

                 * Invalidate the EAP session cache if the current network is
                 * removed.

                wpa_supplicant_disassociate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);



More information about the Hostap mailing list