wifi: Only consider identifiers starting with 'wifi_'
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 31 Oct 2011 13:31:34 +0000 (15:31 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 7 Nov 2011 16:40:07 +0000 (17:40 +0100)
plugins/wifi.c

index f1b6c11..f7f5216 100644 (file)
@@ -374,6 +374,9 @@ static int get_latest_connections(int max_ssids,
 
        services = connman_storage_get_services();
        for (i = 0; services && services[i]; i++) {
+               if (strncmp(services[i], "wifi_", 5) != 0)
+                       continue;
+
                keyfile = connman_storage_load_service(services[i]);
 
                str = g_key_file_get_string(keyfile,