]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused last_scan_full
authorJouni Malinen <j@w1.fi>
Thu, 26 Dec 2013 14:38:05 +0000 (16:38 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 26 Dec 2013 16:27:48 +0000 (18:27 +0200)
This parameter was not really used for anything else apart from a debug
message in the same function that set it. In addition, cfg80211 returns
the set of scanned frequencies even for the full scan, so the code that
was setting this conditionally on frequency list not being there was not
really ever entered either.

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

wpa_supplicant/bss.c
wpa_supplicant/wpa_supplicant_i.h

index df1bf11c93de46e2585c06dd48a4a5e5bcfb4178..033384ce1074e20e9de837a825073a5dbb39348d 100644 (file)
@@ -732,26 +732,10 @@ void wpa_bss_update_end(struct wpa_supplicant *wpa_s, struct scan_info *info,
 {
        struct wpa_bss *bss, *n;
 
-       wpa_s->last_scan_full = 0;
        os_get_reltime(&wpa_s->last_scan);
        if (!new_scan)
                return; /* do not expire entries without new scan */
 
-       if (info && !info->aborted && !info->freqs) {
-               size_t i;
-               if (info->num_ssids == 0) {
-                       wpa_s->last_scan_full = 1;
-               } else {
-                       for (i = 0; i < info->num_ssids; i++) {
-                               if (info->ssids[i].ssid == NULL ||
-                                   info->ssids[i].ssid_len == 0) {
-                                       wpa_s->last_scan_full = 1;
-                                       break;
-                               }
-                       }
-               }
-       }
-
        dl_list_for_each_safe(bss, n, &wpa_s->bss, struct wpa_bss, list) {
                if (wpa_bss_in_use(wpa_s, bss))
                        continue;
@@ -765,10 +749,8 @@ void wpa_bss_update_end(struct wpa_supplicant *wpa_s, struct scan_info *info,
                }
        }
 
-       wpa_printf(MSG_DEBUG, "BSS: last_scan_res_used=%u/%u "
-                  "last_scan_full=%d",
-                  wpa_s->last_scan_res_used, wpa_s->last_scan_res_size,
-                  wpa_s->last_scan_full);
+       wpa_printf(MSG_DEBUG, "BSS: last_scan_res_used=%u/%u",
+                  wpa_s->last_scan_res_used, wpa_s->last_scan_res_size);
 }
 
 
index 68f508a983457517d18fac3c6d82532c9f742a51..5194e34240ab5429d0030a74fab0b5cd266c6e5d 100644 (file)
@@ -408,7 +408,6 @@ struct wpa_supplicant {
        struct wpa_bss **last_scan_res;
        unsigned int last_scan_res_used;
        unsigned int last_scan_res_size;
-       int last_scan_full;
        struct os_reltime last_scan;
 
        struct wpa_driver_ops *driver;