aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_helpers.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-11-08 22:33:58 (GMT)
committerJouni Malinen <j@w1.fi>2019-11-08 22:33:58 (GMT)
commit93ba13bcfdb4f7aaf4019f76457055209a8a3c89 (patch)
treeb5ad6e1c14d8442d1a91e05260483fe2f21859d7 /src/common/wpa_helpers.c
parent9c7ab4c5df6d07aa2811178f1632ccd4a6d76199 (diff)
downloadhostap-93ba13bcfdb4f7aaf4019f76457055209a8a3c89.zip
hostap-93ba13bcfdb4f7aaf4019f76457055209a8a3c89.tar.gz
hostap-93ba13bcfdb4f7aaf4019f76457055209a8a3c89.tar.bz2
Fix status code in SAE/DPP association PMKID mismatch (driver-AP-SME)
wpa_validate_wpa_ie() was already extended to cover these cases with WPA_INVALID_PMKID return value, but hostapd_notif_assoc() did not have code for mapping this into the appropriate status code (STATUS_INVALID_PMKID) and ended up using the default (WLAN_STATUS_INVALID_IE) instead. This caused AP SME-in-driver cases returning incorrect status code when the AP did not have a matching PMKSA cache entry. This could result in unexpected station behavior where the station could continue trying to use a PMKSA cache entry that the AP does not have and not being able to recover this. Fix this by adding the previously missed mapping of validation errors to status/reason codes. Fixes: 567da5bbd027 ("DPP: Add new AKM") Fixes: 458d8984de1d ("SAE: Reject request with mismatching PMKID (no PMKSA cache entry)") Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src/common/wpa_helpers.c')
0 files changed, 0 insertions, 0 deletions