wifi/iwd: don't change state in secrets callback

Also make sure the secrets request callback only send a reply to IWD and
the Connect method return callback executes the device state change to
"disconnected".

(cherry picked from commit 061913c588)
This commit is contained in:
Andrew Zaborowski 2018-09-16 17:23:49 +02:00 committed by Thomas Haller
parent b31d2ea02a
commit 41b3c45699

View file

@ -1248,12 +1248,7 @@ secrets_error:
g_dbus_method_invocation_return_error_literal (invocation, NM_DEVICE_ERROR,
NM_DEVICE_ERROR_INVALID_CONNECTION,
"NM secrets request failed");
nm_device_state_changed (device,
NM_DEVICE_STATE_FAILED,
NM_DEVICE_STATE_REASON_NO_SECRETS);
cleanup_association_attempt (self, TRUE);
/* Now wait for the Connect callback to update device state */
}
static void