[PATCH] FT: remove ft_ies when supplicant marked as disassoc
Hong Wu
Hong.Wu
Mon Jun 27 15:01:28 PDT 2011
Previous ft_ies should be removed before supplicant starts a new FT
initial association.
Signed-off-by: Hong Wu <hong.wu at dspg.com>
---
wpa_supplicant/events.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 8768b17..66afca0
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -127,6 +127,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
+ if (wpa_s->sme.ft_ies) {
+ os_free(wpa_s->sme.ft_ies);
+ wpa_s->sme.ft_ies = NULL;
+ wpa_s->sme.ft_ies_len = 0;
+ wpa_s->sme.ft_used = 0;
+#endif /* CONFIG_IEEE80211R */
if (bssid_changed)
wpas_notify_bssid_changed(wpa_s);
--
1.7.0.4
______________________________________________________________________
DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System.
_____________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20110628/8517cceb/attachment.htm
More information about the Hostap
mailing list