Resetting the passphrase is redundant as the service will present a
"connect-failed" error string through D-Bus whenever association fails.
/* 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;