diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-09-30 18:20:58 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-09-30 18:20:58 +0200 |
commit | 5c4c21493533f7ae220bb4373608e39d8df70047 (patch) | |
tree | 88b9857860b02206394e904b99cbf1ae0d128d29 | |
parent | be00d6d2714b762a43bdcac89e920222d00499de (diff) | |
download | connman-5c4c21493533f7ae220bb4373608e39d8df70047.tar.gz connman-5c4c21493533f7ae220bb4373608e39d8df70047.tar.bz2 connman-5c4c21493533f7ae220bb4373608e39d8df70047.zip |
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.
-rw-r--r-- | plugins/supplicant.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 115d2c8e..708de31e 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; |