Fix issue with wpa_supplicant disconnecting
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 12 Dec 2008 00:18:04 +0000 (01:18 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 12 Dec 2008 00:18:04 +0000 (01:18 +0100)
plugins/wifi.c

index 93312ca..660ea9f 100644 (file)
@@ -148,6 +148,9 @@ static void state_change(struct connman_element *parent,
 
        DBG("state %d", state);
 
+       if (data == NULL)
+               return;
+
        if (data->identifier == NULL)
                return;
 
@@ -334,6 +337,8 @@ static int wifi_disable(struct connman_element *element)
 
        connman_element_unregister_children(element);
 
+       __supplicant_stop(element);
+
        return 0;
 }