wpa_supplicant: skip scan if there are no known ssids

Rinat Dobrokhotov <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
Hello,
I'm working with wpa_supplicant and noticed that if there are no known ssids, there will be error on the driver level (Qualcomm's WLAN Host Device Driver implementation in my case) like this:

kernel:  (0)[6474:wpa_supplicant] wlan: [E :HDD] __wlan_hdd_cfg80211_sched_scan_start: Network input is not correct 0 Max Network supported is 16

I've looked the source code of the wpa_supplicant and I think that it is possibly to skip scan request in the "scan.c/wpa_supplicant_req_sched_scan" function in the case when params.num_ssids is 0. What do you think about it? If it is a reasonable place to skip scan request within scanning process, I'll suggest a patch.

--
Best regards,
Rinat Dobrokhotov
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.