From 2ab74c251611b6e77a575677d466997d3031a37e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 12 Dec 2008 01:18:04 +0100 Subject: [PATCH] Fix issue with wpa_supplicant disconnecting --- plugins/wifi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/wifi.c b/plugins/wifi.c index 93312ca..660ea9f 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; } -- 1.7.9.5