summaryrefslogtreecommitdiff
path: root/src/wifi.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-06-10 16:24:26 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-06-10 16:24:26 -0700
commit767a1101de2ede819d809d216b7be9c311825171 (patch)
treecef45e452fa7fc33e923c3c224275c97023a0f43 /src/wifi.c
parent1d08e0e69265bf7f4cb634d3eef82d742b17956c (diff)
downloadconnman-767a1101de2ede819d809d216b7be9c311825171.tar.gz
connman-767a1101de2ede819d809d216b7be9c311825171.tar.bz2
connman-767a1101de2ede819d809d216b7be9c311825171.zip
Only scan for hidden SSIDs from your favorites
Diffstat (limited to 'src/wifi.c')
-rw-r--r--src/wifi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wifi.c b/src/wifi.c
index a663f175..e645969b 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)