summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-12 01:18:04 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-12 01:18:04 +0100
commit2ab74c251611b6e77a575677d466997d3031a37e (patch)
treebb3a08c7482112f6d22569e27abf9bb1a794d460 /plugins/wifi.c
parent56483301b45ba75e91e3f67775cef8a2a74d56b2 (diff)
downloadconnman-2ab74c251611b6e77a575677d466997d3031a37e.tar.gz
connman-2ab74c251611b6e77a575677d466997d3031a37e.tar.bz2
connman-2ab74c251611b6e77a575677d466997d3031a37e.zip
Fix issue with wpa_supplicant disconnecting
Diffstat (limited to 'plugins/wifi.c')
-rw-r--r--plugins/wifi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 93312caa..660ea9f4 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -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;
}