mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 13:20:16 +01:00
wwan: recheck available connections when modem becomes unlocked (bgo #740966)
NMDevice rechecks available connections when the device moves to the DISCONNECTED state, but connections are not available if the modem is PIN locked at that time. Available connections were never re-checked when the modem was then unlocked while in the DISCONNECTED state.
This commit is contained in:
parent
81affd4ff1
commit
f3b16fffbd
1 changed files with 3 additions and 0 deletions
|
|
@ -295,6 +295,9 @@ modem_state_cb (NMModem *modem,
|
|||
* device's enabled/disabled state.
|
||||
*/
|
||||
nm_modem_set_mm_enabled (priv->modem, priv->rf_enabled);
|
||||
|
||||
/* Now allow connections without a PIN to be available */
|
||||
nm_device_recheck_available_connections (device);
|
||||
}
|
||||
|
||||
if ((dev_state >= NM_DEVICE_STATE_DISCONNECTED) && !nm_device_is_available (device)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue