aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAhmad Masri <amasri@codeaurora.org>2018-04-30 10:42:04 (GMT)
committerJouni Malinen <j@w1.fi>2018-05-04 17:56:52 (GMT)
commit60a5737e8f6aa18bdf313ff69a675c211e29c196 (patch)
treee29430659e4ee2203aae1fd0479c6a8bcd8c5e76 /wpa_supplicant
parent98b806b03d978a575e4efc5f12119839c7a9f3fd (diff)
downloadhostap-60a5737e8f6aa18bdf313ff69a675c211e29c196.zip
hostap-60a5737e8f6aa18bdf313ff69a675c211e29c196.tar.gz
hostap-60a5737e8f6aa18bdf313ff69a675c211e29c196.tar.bz2
FT: Clear SME FT data on disassoc
SME ft_used flag is sometimes not cleared on disassoc. For example, after initial FT connection, ft_used is set while ft_ies stays NULL. Later on, upon disassoc, sme_update_ft_ies() is not invoked and ft_used is not cleared. Fix this by invoking sme_update_ft_ies() also in case ft_used is set. This is needed to fix an issue with drivers that use nl80211 Connect API with FT and expect to the NL80211_AUTHTYPE_OPEN specified in the Connect command for the initial mobility domain association. Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/sme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 97f2d0b..1348e1c 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -1729,7 +1729,7 @@ void sme_clear_on_disassoc(struct wpa_supplicant *wpa_s)
sae_clear_data(&wpa_s->sme.sae);
#endif /* CONFIG_SAE */
#ifdef CONFIG_IEEE80211R
- if (wpa_s->sme.ft_ies)
+ if (wpa_s->sme.ft_ies || wpa_s->sme.ft_used)
sme_update_ft_ies(wpa_s, NULL, NULL, 0);
#endif /* CONFIG_IEEE80211R */
}