aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-09-07 14:46:00 (GMT)
committerJouni Malinen <j@w1.fi>2011-09-07 14:46:00 (GMT)
commitd8a790b9228ca91eadc8f26faf87287c330510a1 (patch)
tree81c4a0f8b1e90969b173e3c7d281eacc587de226 /wpa_supplicant/notify.c
parentf3857c2e6a1c28547520b577360d4b4ebea69ed8 (diff)
downloadhostap-d8a790b9228ca91eadc8f26faf87287c330510a1.zip
hostap-d8a790b9228ca91eadc8f26faf87287c330510a1.tar.gz
hostap-d8a790b9228ca91eadc8f26faf87287c330510a1.tar.bz2
Flush PMKSA cache entries and invalidate EAP state on network changes
If a network configuration block is removed or modified, flush all PMKSA cache entries that were created using that network configuration. Similarly, invalidate EAP state (fast re-auth). The special case for OKC on wpa_supplicant reconfiguration (network_ctx pointer change) is now addressed as part of the PMKSA cache flushing, so it does not need a separate mechanism for clearing the network_ctx values in the PMKSA cache.
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 0d2f542..ed466bd 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -22,6 +22,7 @@
#include "dbus/dbus_common.h"
#include "dbus/dbus_old.h"
#include "dbus/dbus_new.h"
+#include "rsn_supp/wpa.h"
#include "driver_i.h"
#include "scan.h"
#include "p2p_supplicant.h"
@@ -238,6 +239,7 @@ void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s,
void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
struct wpa_ssid *ssid)
{
+ wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid);
if (wpa_s->global->p2p_group_formation != wpa_s)
wpas_dbus_unregister_network(wpa_s, ssid->id);
}