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

Tomasz Bursztyka tomasz.bursztyka at nokia.com
Tue Jan 11 05:54:08 PST 2011


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

diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 162cbc7..13eff19 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -2809,6 +2809,9 @@ static int network_remove(struct interface_data *data)
 
 	SUPPLICANT_DBG("");
 
+	if (interface->network_path == NULL)
+		return;
+
 	return supplicant_dbus_method_call(interface->path,
 			SUPPLICANT_INTERFACE ".Interface", "RemoveNetwork",
 			network_remove_params, network_remove_result, data);
-- 
1.7.2.3




More information about the connman mailing list