hostap: Fix band selection
If user selects a band, then we should restrict scanning channels to that band, but using freq_list will only filter the results. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no> Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
parent
688fe9afe5
commit
e2d267c92c
|
@ -366,7 +366,7 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
|
|||
}
|
||||
|
||||
if (chan_list) {
|
||||
if (!wpa_cli_cmd_v("set_network %d freq_list%s", resp.network_id,
|
||||
if (!wpa_cli_cmd_v("set_network %d scan_freq%s", resp.network_id,
|
||||
chan_list)) {
|
||||
k_free(chan_list);
|
||||
goto out;
|
||||
|
|
Loading…
Reference in a new issue