Don't rely on the interface being up to background scan.
authorRoy Marples <roy@marples.name>
Thu, 5 Mar 2015 19:57:08 +0000 (19:57 +0000)
committerRoy Marples <roy@marples.name>
Thu, 5 Mar 2015 19:57:08 +0000 (19:57 +0000)
Thanks to Simon Long.

src/dhcpcd-gtk/main.c

index 68cdd3078aeb87115bb441e64c92ecbada3a8260..3ae2192e317bd376b9ff4cfc7c39445ba0b08d89 100644 (file)
@@ -683,7 +683,7 @@ bgscan(gpointer data)
 
        con = (DHCPCD_CONNECTION *)data;
        TAILQ_FOREACH(w, &wi_scans, next) {
-               if (w->interface->wireless && w->interface->up) {
+               if (w->interface->wireless) {
                        wpa = dhcpcd_wpa_find(con, w->interface->ifname);
                        if (wpa)
                                dhcpcd_wpa_scan(wpa);