mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 15:00:10 +01:00
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:
parent
c49fe910d6
commit
e4941696be
1 changed files with 0 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue