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:
parent
001ac3976a
commit
1726aa4345
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue