]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Do not mark SAE enabled network disabled if PSK is not set
authorJouni Malinen <j@w1.fi>
Sat, 1 Mar 2025 10:07:45 +0000 (12:07 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 1 Mar 2025 10:07:45 +0000 (12:07 +0200)
SAE does not PSK, i.e., it is sufficient for the passphrase to be set in
cases where the psk parameter instead of the SAE specific sae_password
is used.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_supplicant.c

index 128530eb52445e1a5925ff033c70c3a8afe46192..e63048d187b8af9fe76e66a53086870e88dd2682 100644 (file)
@@ -9052,7 +9052,7 @@ int wpas_network_disabled(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
        if (wpa_key_mgmt_wpa_psk(ssid->key_mgmt) && !ssid->psk_set &&
            (!ssid->passphrase || ssid->ssid_len != 0) && !ssid->ext_psk &&
            !(wpa_key_mgmt_sae(ssid->key_mgmt) &&
-             (ssid->sae_password || ssid->pmk_valid)) &&
+             (ssid->passphrase || ssid->sae_password || ssid->pmk_valid)) &&
            !ssid->mem_only_psk)
                return 1;