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:
parent
56625124e8
commit
b23d1c2dbd
1 changed files with 4 additions and 0 deletions
|
@ -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")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue