From b0dc95f81650a4b496ad00596cf74e8b4d6e0761 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 5 Feb 2015 11:08:02 +0100 Subject: [PATCH] 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. (cherry picked from commit f3b16fffbd842937b23bbac2e35c52f826bda275) --- src/devices/wwan/nm-device-modem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/devices/wwan/nm-device-modem.c b/src/devices/wwan/nm-device-modem.c index f681e59ca1..0ca1056edf 100644 --- a/src/devices/wwan/nm-device-modem.c +++ b/src/devices/wwan/nm-device-modem.c @@ -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)) {