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:
Dan Williams 2015-02-05 11:08:02 +01:00
parent 81affd4ff1
commit f3b16fffbd

View file

@ -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)) {