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:
Dan Williams 2010-12-11 12:33:15 -06:00
parent ea16af7c18
commit e3ba9162c2

View file

@ -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 */