Only scan for hidden SSIDs from your favorites
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Jun 2010 23:24:26 +0000 (16:24 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Jun 2010 23:24:26 +0000 (16:24 -0700)
src/wifi.c

index a663f17..e645969 100644 (file)
@@ -77,9 +77,15 @@ char **connman_wifi_load_ssid(void)
 
        for (i = 0, j = 0; groups[i]; i++) {
                gchar *hex_ssid;
+               gboolean favorite;
 
                group = groups[i];
 
+               favorite = g_key_file_get_boolean(key_file, group,
+                                                       "Favorite", NULL);
+               if (favorite == FALSE)
+                       continue;
+
                hex_ssid = g_key_file_get_string(key_file, group,
                                                        "SSID", NULL);
                if (hex_ssid == NULL)