GNOME Bugzilla – Bug 687855
Ask for PIN when enabling "Mobile Broadband"
Last modified: 2012-12-12 12:48:24 UTC
Currently the switch to enable "Mobile Broadband" just triggers enabling of wwan in NetworkManager. When wwan gets enabled in NM it will request to enable each modem found in ModemManager, but this enabling may fail if the modem is locked. So, before even enabling wwan in NM, gnome-shell should probably check the lock status of each modem and request PIN for them if they are locked. For some reason, if I'm not mistaken, the current behaviour is that PIN is requested for a modem whenever it is found locked, even if we didn't ask to enable "Mobile Broadband", which I don't think it's ok. PINs should get asked to the user only when "Mobile Broadband" gets enabled (either by just clicking on the global switch or as part of the connection request to a given settings profile).
Current behavior is that PIN is asked when NM says so. I honestly have no idea of what this means in practice, because I don't have a modem to test, but I'd rather have NM do the right thing and only ask for PIN when need.
You're truly right; I think I'm mixing the behaviour of n-m-a and the shell indicator applet. For some reason I think the network-manager-applet does some extra logic regarding PIN unlocking that the shell indicator doesn't. I'll try to check this tomorrow.
Just checked the sources of network-manager-applet and realized that it was the one trying to unlock the modem as soon as it was detected; I filed bug 687897 for that. Now, I guess I'll need to see how NetworkManager is supposed to request PIN secrets during Mobile Broadband enabling, as in that case we're not launching a connection profile.
*** This bug has been marked as a duplicate of bug 685331 ***