Fix AP config check to recognize all PSK AKMs
The check for PSK/passphrase not being present was considering only the WPA-PSK AKM, but the same check should be applied for all other AKMs that can use a PSK. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c5d9f9064b
commit
5b5c954c04
1 changed files with 2 additions and 1 deletions
|
@ -1249,7 +1249,8 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (full_config && bss->wpa && (bss->wpa_key_mgmt & WPA_KEY_MGMT_PSK) &&
|
||||
if (full_config && bss->wpa &&
|
||||
wpa_key_mgmt_wpa_psk_no_sae(bss->wpa_key_mgmt) &&
|
||||
bss->ssid.wpa_psk == NULL && bss->ssid.wpa_passphrase == NULL &&
|
||||
bss->ssid.wpa_psk_file == NULL &&
|
||||
(bss->wpa_psk_radius != PSK_RADIUS_REQUIRED ||
|
||||
|
|
Loading…
Reference in a new issue