FT: Clear SME ft_used/ft_ies when disconnecting
authorHong Wu <Hong.Wu@dspg.com>
Tue, 5 Jul 2011 18:17:31 +0000 (21:17 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 5 Jul 2011 18:17:31 +0000 (21:17 +0300)
Previous ft_ies needs to be removed before supplicant starts a new FT
initial association and this requires the ft_used state to be cleared
here.

Signed-off-by: Hong Wu <hong.wu@dspg.com>
wpa_supplicant/events.c

index 279c2fd..9905cc0 100644 (file)
@@ -131,6 +131,13 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
        os_memset(wpa_s->pending_bssid, 0, ETH_ALEN);
        wpa_s->current_bss = NULL;
        wpa_s->assoc_freq = 0;
+#ifdef CONFIG_IEEE80211R
+#ifdef CONFIG_SME
+       if (wpa_s->sme.ft_ies)
+               sme_update_ft_ies(wpa_s, NULL, NULL, 0);
+#endif /* CONFIG_SME */
+#endif /* CONFIG_IEEE80211R */
+
        if (bssid_changed)
                wpas_notify_bssid_changed(wpa_s);