projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba484d0
)
Reset WiFi passphrase if association or WPA handshake fails
author
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 29 Sep 2010 17:47:41 +0000
(19:47 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 29 Sep 2010 17:47:41 +0000
(19:47 +0200)
plugins/supplicant.c
patch
|
blob
|
history
diff --git
a/plugins/supplicant.c
b/plugins/supplicant.c
index
d0357f3
..
867a928
100644
(file)
--- a/
plugins/supplicant.c
+++ b/
plugins/supplicant.c
@@
-2318,6
+2318,13
@@
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;