From: Srinivas Dasari Date: Thu, 16 May 2019 09:31:14 +0000 (+0530) Subject: SAE: Do not send PMKID to the driver if PMKSA caching is disabled X-Git-Tag: hostap_2_9~204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14d85a5af7fe74682033dbe50891c42e9ffa8c0d;p=thirdparty%2Fhostap.git SAE: Do not send PMKID to the driver if PMKSA caching is disabled External auth status to the driver includes the PMKID derived as part of SAE authentication, but this is not valid if PMKSA caching is disabled. Drivers might not be expecting PMKID when it is not valid. Do not send the PMKID to the driver in such cases. Signed-off-by: Srinivas Dasari --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 741c4c2ec..02f56701e 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -709,7 +709,8 @@ static void sae_sme_send_external_auth_status(struct hostapd_data *hapd, os_memset(¶ms, 0, sizeof(params)); params.status = status; params.bssid = sta->addr; - if (status == WLAN_STATUS_SUCCESS && sta->sae) + if (status == WLAN_STATUS_SUCCESS && sta->sae && + !hapd->conf->disable_pmksa_caching) params.pmkid = sta->sae->pmkid; hostapd_drv_send_external_auth_status(hapd, ¶ms);