diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-12 01:18:04 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-12 01:18:04 +0100 |
commit | 2ab74c251611b6e77a575677d466997d3031a37e (patch) | |
tree | bb3a08c7482112f6d22569e27abf9bb1a794d460 /plugins/wifi.c | |
parent | 56483301b45ba75e91e3f67775cef8a2a74d56b2 (diff) | |
download | connman-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.c | 5 |
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; } |