diff options
author | Ben Chan <benchan@chromium.org> | 2017-08-07 14:26:10 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-09-07 19:07:01 +0200 |
commit | 33427397980a7868d32bad92524a53d4431ba718 (patch) | |
tree | 85ed321b3f3c98d46a78c37aa241a0db7bddffc5 /plugins/simtech/mm-plugin-simtech.c | |
parent | eb9ec1b617b27485a4f0ede472e9088f0ca52066 (diff) |
broadband-modem-mbim: preserve unlock retries for PIN1 when appropriate
If PIN1 is disabled and we have tried to enable it with a wrong PIN, a
MBIM modem would have indicated the number of remaining attempts for
PIN1 (unless PUK1 is engaged) in the response to the failed MBIM_CID_PIN
set operation.
However, a MBIM_CID_PIN query may be issued (e.g. MMBaseSim calls
mm_iface_modem_update_lock_info()) after the MBIM_CID_PIN set operation
to query the number of remaining attempts for a PIN type. Unfortunately,
we can't specify a particular PIN type in a MBIM_CID_PIN query. The
modem may not reply with information about PIN1 if PIN1 is disabled.
When that happens, we would like to preserve our knowledge about the
number of remaining attempts for PIN1.
This patch modifies MMBroadbandModemMbim's load_unlock_retries()
operation to carry over any previously observed information on PIN1 if
the MBIM_CID_PIN query reports something other than PIN1.
Diffstat (limited to 'plugins/simtech/mm-plugin-simtech.c')
0 files changed, 0 insertions, 0 deletions