From: Patrik Flykt Date: Mon, 31 Oct 2011 13:31:34 +0000 (+0200) Subject: wifi: Only consider identifiers starting with 'wifi_' X-Git-Tag: 2.0_alpha~960 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=895c96e1e9d71b0a59812e76ca5d1c305fb38be5;p=framework%2Fconnectivity%2Fconnman.git wifi: Only consider identifiers starting with 'wifi_' --- diff --git a/plugins/wifi.c b/plugins/wifi.c index f1b6c11..f7f5216 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -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,