hostap: fix wifi sta connection not triggerred issue

Use select_network instead of enable_network, then can trigger sta
connection mutiple times. Also update the configuration in
add_interface().

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
This commit is contained in:
Maochen Wang 2024-05-22 13:50:19 +08:00 committed by Alberto Escolar
parent 001ac3976a
commit 1726aa4345

View file

@ -515,6 +515,10 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
goto out;
}
if (!wpa_cli_cmd_v("select_network %d", resp.network_id)) {
goto out;
}
return 0;
rem_net: