aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-12-30 20:35:59 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-12 15:51:52 (GMT)
commit47b55a3ef59d9363bbd624e8b5aa714467111743 (patch)
tree9bc0d901f6f8ddde7267e3c431dec6018ab5b598 /wpa_supplicant/sme.c
parentf2e9818f73215024944b2db648a03c64ba1b8cc5 (diff)
downloadhostap-47b55a3ef59d9363bbd624e8b5aa714467111743.zip
hostap-47b55a3ef59d9363bbd624e8b5aa714467111743.tar.gz
hostap-47b55a3ef59d9363bbd624e8b5aa714467111743.tar.bz2
SAE: Use PMK in 4-way handshake
Use the PMK that is derived as part of the SAE authentication in the 4-way handshake instead of the PSK. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 870313d..043a0a7 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -488,6 +488,10 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data)
}
if (res != 1)
return;
+
+ wpa_printf(MSG_DEBUG, "SME: SAE completed - setting PMK for "
+ "4-way handshake");
+ wpa_sm_set_pmk(wpa_s->wpa, wpa_s->sme.sae.pmk, PMK_LEN);
}
#endif /* CONFIG_SAE */