[PATCH 15/16] gsupplicant: Disconnect request might not need to go through RemoveNetwork call.

Tomasz Bursztyka tomasz.bursztyka at nokia.com
Wed Jan 26 00:09:44 PST 2011


---
 gsupplicant/supplicant.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index bed049a..8c91a83 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -2835,6 +2835,12 @@ static void interface_disconnect_result(const char *error,
 	if (error != NULL && data->callback != NULL)
 		data->callback(-EIO, data->interface, data->user_data);
 
+	/* If we are disconnecting from previous WPS successful
+	 * association. i.e.: it did not went through AddNetwork,
+	 * and interface->network_path was never set. */
+	if (data->interface->network_path == NULL)
+		return;
+
 	network_remove(data);
 }
 
-- 
1.7.2.3




More information about the connman mailing list