]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Support all PSK AKMs in case of AP mode PSK offload
authorVinayak Yadawad <vinayak.yadawad@broadcom.com>
Fri, 22 Dec 2023 05:45:40 +0000 (11:15 +0530)
committerJouni Malinen <j@w1.fi>
Sat, 23 Dec 2023 09:24:26 +0000 (11:24 +0200)
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>
src/drivers/driver_nl80211.c

index 21146778af824b85aafcd296a43d175333ce3a2b..a3bb2d5251cb88bbbbd529a6d17bc4d247bc8334 100644 (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))