From: Vinayak Yadawad Date: Fri, 22 Dec 2023 05:45:40 +0000 (+0530) Subject: Support all PSK AKMs in case of AP mode PSK offload X-Git-Tag: hostap_2_11~561 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b91113e05f7f6b94ded721b0f2c62ff19c10d12a;p=thirdparty%2Fhostap.git Support all PSK AKMs in case of AP mode PSK offload Previously only the SHA-1 -based AKM was supported. Extend that to cover all PSK AKMs so that the PSK configuration to the driver happens for all the possible cases during AP start. Signed-off-by: Vinayak Yadawad --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 21146778a..a3bb2d525 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5123,7 +5123,7 @@ static int wpa_driver_nl80211_set_ap(void *priv, suites)) goto fail; - if ((params->key_mgmt_suites & WPA_KEY_MGMT_PSK) && + if (wpa_key_mgmt_wpa_psk_no_sae(params->key_mgmt_suites) && (drv->capa.flags2 & WPA_DRIVER_FLAGS2_4WAY_HANDSHAKE_AP_PSK) && params->psk_len && nla_put(msg, NL80211_ATTR_PMK, params->psk_len, params->psk))