summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-04-28 09:00:07 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2012-04-28 18:05:27 (GMT)
commit66126366c458c197ae5c44778b024bed93217d40 (patch)
treee36a489fb2aed2bffc578f9e06c2f59e2109d5df /gsupplicant
parent2c0b31ac7d185ed6464f25df27cb93835ea812e5 (diff)
downloadconnman-66126366c458c197ae5c44778b024bed93217d40.zip
connman-66126366c458c197ae5c44778b024bed93217d40.tar.gz
connman-66126366c458c197ae5c44778b024bed93217d40.tar.bz2
gsupplicant: Added more debugging messages when adding or replacing a network
Diffstat (limited to 'gsupplicant')
-rw-r--r--gsupplicant/supplicant.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 8d87dae..87a5b1c 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -1103,12 +1103,16 @@ static void add_or_replace_bss_to_network(struct g_supplicant_bss *bss)
char *group;
group = create_group(bss);
+ SUPPLICANT_DBG("New group created: %s", group);
+
if (group == NULL)
return;
network = g_hash_table_lookup(interface->network_table, group);
if (network != NULL) {
g_free(group);
+ SUPPLICANT_DBG("Network %s already exist", network->name);
+
goto done;
}
@@ -1138,6 +1142,8 @@ static void add_or_replace_bss_to_network(struct g_supplicant_bss *bss)
network->wps_capabilities |= bss->wps_capabilities;
}
+ SUPPLICANT_DBG("New network %s created", network->name);
+
network->bss_table = g_hash_table_new_full(g_str_hash, g_str_equal,
NULL, remove_bss);