mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 04:00:32 +01:00
supplicant: fix state handling after READY has been reached
We only want to prevent regression to > READY after READY has been reached, since the interface state will track the supplicant connection state which legitimately jumps around.
This commit is contained in:
parent
ea16af7c18
commit
e3ba9162c2
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ set_state (NMSupplicantInterface *self, guint32 new_state)
|
|||
|
||||
/* Cannot regress to READY, STARTING, or INIT from higher states */
|
||||
if (priv->state >= NM_SUPPLICANT_INTERFACE_STATE_READY)
|
||||
g_return_if_fail (new_state > priv->state);
|
||||
g_return_if_fail (new_state > NM_SUPPLICANT_INTERFACE_STATE_READY);
|
||||
|
||||
if (new_state == NM_SUPPLICANT_INTERFACE_STATE_DOWN) {
|
||||
/* Cancel all pending calls when going down */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue