aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAhmad Masri <amasri@codeaurora.org>2018-04-16 10:30:42 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-19 21:35:41 (GMT)
commit86c998d37a7d8bd230fadc9c689698868754e08f (patch)
treeace258fd7902e3e1a25752b70ed2630be877890b /wpa_supplicant
parent3dc3afe298f0b57540ccc78c11e5aeac95184875 (diff)
downloadhostap-86c998d37a7d8bd230fadc9c689698868754e08f.zip
hostap-86c998d37a7d8bd230fadc9c689698868754e08f.tar.gz
hostap-86c998d37a7d8bd230fadc9c689698868754e08f.tar.bz2
FT: Add FT auth algorithm to connect params when roaming
Add WPA FT auth to connect params in case of a re-connection to ESS supporting FT when FT was used in the first connect. Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpa_supplicant.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index c8f4802..dcd787b 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2725,16 +2725,26 @@ static u8 * wpas_populate_assoc_ies(
const u8 *mdie = wpa_bss_get_ie(bss, WLAN_EID_MOBILITY_DOMAIN);
if (mdie && mdie[1] >= MOBILITY_DOMAIN_ID_LEN) {
+ size_t len = 0;
const u8 *md = mdie + 2;
const u8 *wpa_md = wpa_sm_get_ft_md(wpa_s->wpa);
if (os_memcmp(md, wpa_md,
MOBILITY_DOMAIN_ID_LEN) == 0) {
/* Add mobility domain IE */
- wpa_ie_len += wpa_ft_add_mdie(
+ len = wpa_ft_add_mdie(
wpa_s->wpa, wpa_ie + wpa_ie_len,
max_wpa_ie_len - wpa_ie_len, mdie);
+ wpa_ie_len += len;
}
+#ifdef CONFIG_SME
+ if (len > 0 && wpa_s->sme.ft_used &&
+ wpa_sm_has_ptk(wpa_s->wpa)) {
+ wpa_dbg(wpa_s, MSG_DEBUG,
+ "SME: Trying to use FT over-the-air");
+ algs |= WPA_AUTH_ALG_FT;
+ }
+#endif /* CONFIG_SME */
}
}
#endif /* CONFIG_IEEE80211R */