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:
Chaitanya Tata 2024-03-19 17:38:48 +05:30 committed by Carles Cufí
parent 688fe9afe5
commit e2d267c92c

View file

@ -366,7 +366,7 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
} }
if (chan_list) { 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)) { chan_list)) {
k_free(chan_list); k_free(chan_list);
goto out; goto out;