wwan/modem: do not mark connection as failed when connection drops

If the modem is connected, and registrations drops, and then is restored, the
connection isn't re-activated.

The fix was simply to change modem_state_cb to not return after setting the
state to failed, which allows nm_device_queue_recheck_available to be called,
which queues a state transition to UNAVAILABLE.
This commit is contained in:
Tony Espy 2021-03-05 15:09:30 +05:30 committed by Thomas Haller
parent c49fe910d6
commit e4941696be
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -357,7 +357,6 @@ modem_state_cb(NMModem *modem, int new_state_i, int old_state_i, gpointer user_d
nm_device_state_changed(device,
NM_DEVICE_STATE_FAILED,
NM_DEVICE_STATE_REASON_MODEM_NO_CARRIER);
return;
}
if (new_state > NM_MODEM_STATE_LOCKED && old_state == NM_MODEM_STATE_LOCKED) {