aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-04-08 16:55:52 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-09 10:10:08 (GMT)
commit06b1a1043427778b82374fc63e540a264e12d82d (patch)
tree44af4adf5895e858c494ce732d41195e97679718 /wpa_supplicant/sme.c
parent8e402d1657fa6c8246f5a2c588c656b7905aa5a2 (diff)
downloadhostap-06b1a1043427778b82374fc63e540a264e12d82d.zip
hostap-06b1a1043427778b82374fc63e540a264e12d82d.tar.gz
hostap-06b1a1043427778b82374fc63e540a264e12d82d.tar.bz2
SAE: Fix default PMK configuration for PMKSA caching case
The RSN supplicant state machine PMK was set based on WPA PSK even for the cases where SAE would be used. If the AP allows PMKSA caching to be used with SAE, but does not indicate the selected PMKID explicitly in EAPOL-Key msg 1/4, this could result in trying to use the PSK instead of SAE PMK. Fix this by not setting the WPA-PSK as default PMK for SAE network profiles and instead, configuring the PMK explicitly from the found PMKSA cache entry. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index b4b1c64..460e4e6 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -551,6 +551,7 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s,
NULL) == 0) {
wpa_dbg(wpa_s, MSG_DEBUG,
"PMKSA cache entry found - try to use PMKSA caching instead of new SAE authentication");
+ wpa_sm_set_pmk_from_pmksa(wpa_s->wpa);
params.auth_alg = WPA_AUTH_ALG_OPEN;
wpa_s->sme.sae_pmksa_caching = 1;
}