aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-03-12 09:53:21 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-12 17:24:11 (GMT)
commit0a6147991ebd3d0b52ab3e503838cc8eca32e3b3 (patch)
tree84c680690225789889d10ccfdff48dec2fbf5954 /wpa_supplicant/events.c
parent09368515d1308b64ebb34826eedf3b3e55994c92 (diff)
downloadhostap-0a6147991ebd3d0b52ab3e503838cc8eca32e3b3.zip
hostap-0a6147991ebd3d0b52ab3e503838cc8eca32e3b3.tar.gz
hostap-0a6147991ebd3d0b52ab3e503838cc8eca32e3b3.tar.bz2
OWE: Process Diffie-Hellman Parameter element in STA mode
This adds STA side addition of OWE Diffie-Hellman Parameter element into (Re)Association Request frame and processing it in (Re)Association Response frame. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 053fe15..82a8b11 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -2225,6 +2225,16 @@ static int wpa_supplicant_event_associnfo(struct wpa_supplicant *wpa_s,
#endif /* CONFIG_SME */
#endif /* CONFIG_FILS */
+#ifdef CONFIG_OWE
+ if (wpa_s->key_mgmt == WPA_KEY_MGMT_OWE &&
+ owe_process_assoc_resp(wpa_s->wpa,
+ data->assoc_info.resp_ies,
+ data->assoc_info.resp_ies_len) < 0) {
+ wpa_supplicant_deauthenticate(wpa_s, WLAN_REASON_UNSPECIFIED);
+ return -1;
+ }
+#endif /* CONFIG_OWE */
+
#ifdef CONFIG_IEEE80211R
#ifdef CONFIG_SME
if (wpa_s->sme.auth_alg == WPA_AUTH_ALG_FT) {