]> git.ipfire.org Git - thirdparty/hostap.git/commit
SAE: Fix default PMK configuration for PMKSA caching case
authorJouni Malinen <j@w1.fi>
Sun, 8 Apr 2018 16:55:52 +0000 (19:55 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 9 Apr 2018 10:10:08 +0000 (13:10 +0300)
commit06b1a1043427778b82374fc63e540a264e12d82d
tree44af4adf5895e858c494ce732d41195e97679718
parent8e402d1657fa6c8246f5a2c588c656b7905aa5a2
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>
wpa_supplicant/sme.c
wpa_supplicant/wpa_supplicant.c