From 11afa5b184a606804edfc66bad98146e792a8746 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 23 Dec 2010 12:57:16 +0100 Subject: [PATCH] gsupplicant: Remove network even if disconnect failed If a connection is in progress but is cancelled before wpa supplicant reached the ASSOCIATING phase, removing the network is the only way to prevent it from continuing the association. --- gsupplicant/supplicant.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index 8d2c15f..42f4920 100644 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -2472,10 +2472,8 @@ static void interface_disconnect_result(const char *error, SUPPLICANT_DBG(""); - if (error != NULL && data->callback != NULL) { + if (error != NULL && data->callback != NULL) data->callback(-EIO, data->interface, data->user_data); - return; - } network_remove(data); } -- 2.7.4