summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2018-12-17 20:53:34 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2018-12-17 20:53:45 +0900
commit57ecfa1561172a97f98acae237ccf69a0378b345 (patch)
tree9ab785edf52b4d9e39acfdefa15f300841146b93
parent48e25ec7f60ffcba067708732298fd85a2b3ed47 (diff)
downloadconnman-57ecfa1561172a97f98acae237ccf69a0378b345.tar.gz
connman-57ecfa1561172a97f98acae237ccf69a0378b345.tar.bz2
connman-57ecfa1561172a97f98acae237ccf69a0378b345.zip
Copy vsie_list before remove old list
Change-Id: Iec590090bbc87d3a2d573148929681abae5d8c02
-rw-r--r--gsupplicant/supplicant.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index bafe478e..62857e03 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -3360,6 +3360,13 @@ static void signal_network_removed(const char *path, DBusMessageIter *iter)
interface_network_removed(iter, interface);
}
+#if defined TIZEN_EXT
+void *copy_vsie_list(gconstpointer src, gpointer data)
+{
+ return g_strdup(src);
+}
+#endif
+
static void signal_bss_changed(const char *path, DBusMessageIter *iter)
{
@@ -3413,7 +3420,7 @@ static void signal_bss_changed(const char *path, DBusMessageIter *iter)
memcpy(new_bss, bss, sizeof(struct g_supplicant_bss));
new_bss->path = g_strdup(bss->path);
#if defined TIZEN_EXT
- new_bss->vsie_list = NULL;
+ new_bss->vsie_list = g_slist_copy_deep(bss->vsie_list, copy_vsie_list, NULL);
#endif
g_hash_table_remove(interface->network_table, network->group);