diff options
author | Dan Williams <dcbw@redhat.com> | 2015-07-20 12:17:12 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2015-07-20 12:24:22 -0500 |
commit | 9b051b14ed33b5eca2e7d1b384d6a9f60d08e482 (patch) | |
tree | 6cd1b3aa967f26773e9087d27360f5c266e4d852 /include | |
parent | 99da30059f136600e4bf5ac2faec8b42def17d65 (diff) |
iface-modem: don't check the cache when asking for required unlocks
When passing known_lock=UNKNOWN to mm_iface_modem_update_lock_info()
we actually do want to ask the modem itself for locks instead of
checking the cache. For example, when an unknown error is returned
after performing PIN/PUK operations, the cache value may well be
NONE if that was the prior lock state, and that bypasses the modem
which might now be locked. Thus the state gets messed up.
Reproducer is to send 'ChangePin' with the wrong "old" PIN 3 times,
then send a wrong PUK. No error was returned from mmcli and
the modem's lock state was shown as 'none'.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions