Fix up some RPI Wi-Fi stuff.
@@ -2755,7 +2755,9 @@ test_wifi_list_cb(
}
// Force a Wi-Fi scan...
- system("/sbin/iw dev wlan0 scan trigger");
+ system("/sbin/iw dev wlan0 scan");
+
+ sleep(1);
// Then read back the list of Wi-Fi networks...
if ((fp = popen("/sbin/iwlist wlan0 scanning", "r")) == NULL)
@@ -2777,6 +2779,7 @@ test_wifi_list_cb(
if ((end = strchr(start, '\"')) != NULL)
{
*end = '\0';
+ if (*start)
num_ssids = cupsAddDest(start, NULL, num_ssids, ssids);
}
}
