select_network with freq list doesn't work
Pukitis, Martins
martins.pukitis at intel.com
Fri Feb 17 08:39:01 PST 2017
Hi.
select_network with freq list doesn't work, because in wpa_supplicant_ctrl_iface_select_network a manual scan is selected and manual_scan_freqs are set:
pos = os_strstr(cmd, " freq=");
if (pos) {
int *freqs = freq_range_to_channel_list(wpa_s, pos + 6);
if (freqs) {
wpa_s->scan_req = MANUAL_SCAN_REQ;
os_free(wpa_s->manual_scan_freqs);
wpa_s->manual_scan_freqs = freqs;
}
}
then wpa_supplicant_select_network(wpa_s, ssid) is called where scan type is modified to normal:
wpa_s->scan_req = NORMAL_SCAN_REQ;
and wpa_supplicant_scan doesn't use
wpa_s->manual_scan_freqs
because it uses them only in case of MANUAL_SCAN_REQ.
In wpa_supplicant_ctrl_iface_select_network normal scan with next_scan_freqs also can't be used, because next_scan_freqs would be reset in wpa_supplicant_select_network.
Please, suggest, a solution.
Regards,
Martins
More information about the Hostap
mailing list