aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@codeaurora.org>2018-02-01 11:31:28 (GMT)
committerJouni Malinen <j@w1.fi>2018-02-02 19:17:55 (GMT)
commit5ff39c1380d9dea794c5102c0b6d11d1b1e23ad0 (patch)
tree67f50c523b3f9e0290a4929194f89e02d46a9db7 /wpa_supplicant/wpa_supplicant.c
parent3382224082835170e0bc8adc30e851487fd102e6 (diff)
downloadhostap-5ff39c1380d9dea794c5102c0b6d11d1b1e23ad0.zip
hostap-5ff39c1380d9dea794c5102c0b6d11d1b1e23ad0.tar.gz
hostap-5ff39c1380d9dea794c5102c0b6d11d1b1e23ad0.tar.bz2
SAE: Support external authentication offload for driver-SME cases
Extend the SME functionality to support the external authentication. External authentication may be used by the drivers that do not define separate commands for authentication and association (~WPA_DRIVER_FLAGS_SME) but rely on wpa_supplicant's SME for the authentication. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 8544aef..4209c41 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2473,6 +2473,10 @@ static u8 * wpas_populate_assoc_ies(
}
#endif /* CONFIG_FILS */
#endif /* IEEE8021X_EAPOL */
+#ifdef CONFIG_SAE
+ if (wpa_s->key_mgmt & (WPA_KEY_MGMT_SAE | WPA_KEY_MGMT_FT_SAE))
+ algs = WPA_AUTH_ALG_SAE;
+#endif /* CONFIG_SAE */
wpa_dbg(wpa_s, MSG_DEBUG, "Automatic auth_alg selection: 0x%x", algs);
if (ssid->auth_alg) {