From 767a1101de2ede819d809d216b7be9c311825171 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 10 Jun 2010 16:24:26 -0700 Subject: [PATCH] Only scan for hidden SSIDs from your favorites --- src/wifi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wifi.c b/src/wifi.c index a663f17..e645969 100644 --- a/src/wifi.c +++ b/src/wifi.c @@ -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) -- 2.7.4