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 <vinayak.yadawad@broadcom.com>
This commit is contained in:
Vinayak Yadawad 2023-12-22 11:15:40 +05:30 committed by Jouni Malinen
parent 31d33a55f9
commit b91113e05f

View file

@ -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))