gsupplicant: Set interface data to NULL upon driver removal
authorLeena Gunda <leena.gunda@wipro.com>
Mon, 22 Nov 2010 12:26:32 +0000 (17:56 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 22 Nov 2010 15:32:13 +0000 (16:32 +0100)
Fixes BMC#10302

plugins/wifi.c

index e3247a1..eacace4 100644 (file)
@@ -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);
 }