diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2015-09-04 21:04:21 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2016-10-22 20:13:17 (GMT) |
commit | c1bd4bac5ffeb149ffc271e7a4d46b6c3a133cce (patch) | |
tree | 9a6e4ab7a63d49b49f6722aef0d9d0d324c6a20a /wpa_supplicant | |
parent | c30bd28b1420a749ef3d78e11a548c14c1b640b5 (diff) | |
download | hostap-c1bd4bac5ffeb149ffc271e7a4d46b6c3a133cce.zip hostap-c1bd4bac5ffeb149ffc271e7a4d46b6c3a133cce.tar.gz hostap-c1bd4bac5ffeb149ffc271e7a4d46b6c3a133cce.tar.bz2 |
FILS: Extend wpa_auth_pmksa_get() to support PMKID matching
This is needed for FILS processing to enable PMKSA caching.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/mesh_mpm.c | 2 | ||||
-rw-r--r-- | wpa_supplicant/mesh_rsn.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c index d14c7e3..6c3fa14 100644 --- a/wpa_supplicant/mesh_mpm.c +++ b/wpa_supplicant/mesh_mpm.c @@ -1135,7 +1135,7 @@ void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s, */ if (!sta && action_field == PLINK_OPEN && (!(mconf->security & MESH_CONF_SEC_AMPE) || - wpa_auth_pmksa_get(hapd->wpa_auth, mgmt->sa))) + wpa_auth_pmksa_get(hapd->wpa_auth, mgmt->sa, NULL))) sta = mesh_mpm_add_peer(wpa_s, mgmt->sa, &elems); if (!sta) { diff --git a/wpa_supplicant/mesh_rsn.c b/wpa_supplicant/mesh_rsn.c index fe60643..b1cf138 100644 --- a/wpa_supplicant/mesh_rsn.c +++ b/wpa_supplicant/mesh_rsn.c @@ -333,7 +333,7 @@ int mesh_rsn_auth_sae_sta(struct wpa_supplicant *wpa_s, return -1; } - pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr); + pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, NULL); if (pmksa) { if (!sta->wpa_sm) sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, @@ -611,7 +611,7 @@ int mesh_rsn_process_ampe(struct wpa_supplicant *wpa_s, struct sta_info *sta, if (!sta->sae) { struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; - if (!wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr)) { + if (!wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, NULL)) { wpa_printf(MSG_INFO, "Mesh RSN: SAE is not prepared yet"); return -1; |