Skip to content

Commit b23d1c2

Browse files
nxf58150kartben
authored andcommitted
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>
1 parent 5662512 commit b23d1c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/hostap/src/supp_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,6 +2466,10 @@ int hapd_config_network(struct hostapd_iface *iface,
24662466
goto out;
24672467
}
24682468
#endif
2469+
} else {
2470+
wpa_printf(MSG_ERROR, "Security type %d is not supported",
2471+
params->security);
2472+
goto out;
24692473
}
24702474
} else {
24712475
if (!hostapd_cli_cmd_v("set wpa 0")) {

0 commit comments

Comments
 (0)