]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not try to add wildcard SSID into active sched_scan
authorJouni Malinen <j@w1.fi>
Sat, 19 Nov 2011 15:01:53 +0000 (17:01 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 19 Nov 2011 15:01:53 +0000 (17:01 +0200)
Even though scan_ssid should not really be set for wildcard SSID,
better verify that here explicitly insead of assuming that the
SSID is set.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/scan.c

index d6d45ee9b864b2083bbd2550f09cecccdfe9b033..b902692c6de76cc71fd34eaaa7c60ba8730a01ad 100644 (file)
@@ -765,8 +765,9 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s)
                        params.num_filter_ssids++;
                }
 
-               if (ssid->scan_ssid) {
-                       wpa_dbg(wpa_s, MSG_DEBUG, "add to active scan ssid: %s",
+               if (ssid->scan_ssid && ssid->ssid && ssid->ssid_len) {
+                       wpa_dbg(wpa_s, MSG_DEBUG,
+                               "add to active scan ssid: %s",
                                wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
                        params.ssids[params.num_ssids].ssid =
                                ssid->ssid;