From 5c4c21493533f7ae220bb4373608e39d8df70047 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 30 Sep 2010 18:20:58 +0200 Subject: [PATCH] supplicant: Do not reset passphrase when asociation fails Resetting the passphrase is redundant as the service will present a "connect-failed" error string through D-Bus whenever association fails. --- plugins/supplicant.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 115d2c8..708de31 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -2312,13 +2312,6 @@ static void state_change(struct supplicant_task *task, DBusMessage *msg) /* carrier off */ connman_network_set_connected(task->network, FALSE); - /* - * Reset the passphrase if we're being disconnected before - * association/handshake completes. - */ - if (prevstate != WPA_COMPLETED && state == WPA_DISCONNECTED) - connman_network_set_passphrase(task->network, NULL); - if (task->disconnecting == TRUE) { connman_network_unref(task->network); task->disconnecting = FALSE; -- 2.7.4