hostap: AP is not allowed if unsupported security type is configured

Return error if any of unsupported type is configured and softAP
will not be started.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
This commit is contained in:
Hui Bai 2025-03-11 06:40:54 +01:00 committed by Benjamin Cabé
commit b23d1c2dbd

View file

@ -2466,6 +2466,10 @@ int hapd_config_network(struct hostapd_iface *iface,
goto out; goto out;
} }
#endif #endif
} else {
wpa_printf(MSG_ERROR, "Security type %d is not supported",
params->security);
goto out;
} }
} else { } else {
if (!hostapd_cli_cmd_v("set wpa 0")) { if (!hostapd_cli_cmd_v("set wpa 0")) {