select_network with freq list doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux