summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeena Gunda <leena.gunda@wipro.com>2010-11-22 17:56:32 +0530
committerSamuel Ortiz <sameo@linux.intel.com>2010-11-22 16:32:13 +0100
commit8ada288bd6250fb4dd724b0208e66f9013ca3c34 (patch)
treeb224e5b38ff70b1fef464f0624298f6165998d81
parent49a3e8f605d7edd2805f98991a23b5634d69770a (diff)
downloadconnman-8ada288bd6250fb4dd724b0208e66f9013ca3c34.tar.gz
connman-8ada288bd6250fb4dd724b0208e66f9013ca3c34.tar.bz2
connman-8ada288bd6250fb4dd724b0208e66f9013ca3c34.zip
gsupplicant: Set interface data to NULL upon driver removal
Fixes BMC#10302
-rw-r--r--plugins/wifi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index e3247a14..eacace4e 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -163,6 +163,8 @@ static void wifi_remove(struct connman_device *device)
connman_device_unref(wifi->device);
connman_rtnl_remove_watch(wifi->watch);
+ g_supplicant_interface_set_data(wifi->interface, NULL);
+
g_free(wifi->identifier);
g_free(wifi);
}