23 Commits
Author SHA1 Message Date
Michal Mazur 5656d01099 bearer-mbim: use mobile equipment error only if set
Always prefer the operation error when the nw_error is not set (has
value MBIM_NW_ERROR_NONE). If the activation state is ACTIVATED or
ACTIVATING then the behavior doesn't change.
2023-03-30 19:58:09 +00:00
Michal Mazur 7750e927f6 broadband-modem-mbim: Sync state of sim_hot_swap_configured variable 2023-01-18 10:15:43 +00:00
Michal Mazur 68e92d9308 broadband-modem-mbim: Fix bug in cleanup_unsolicited_events_3gpp() 2023-01-18 10:15:43 +00:00
Michal Mazur 5ead5875d7 broadband-modem-mbim: include puk locks in facilities
The MBIM command PIN LIST returns only status of pin locks and omits
puk-locked facilities. This caused the pop-up window for unlocking
PUK is not shown after reboot.
Currenty active PUK lock has to be obtained using additional call
for PIN command but only single facility is supported this way.
2022-02-17 20:27:17 +00:00
Michal Mazur a719cb26f4 modem-helpers-mbim: add pin type to 3gpp facility converter 2022-02-17 20:27:17 +00:00
Michal Mazur 9843546a49 iface-modem: make update_unlock_retries method static 2022-01-30 13:48:48 +00:00
Michal Mazur 5d4957935b sim-mbim,broadband-modem-mbim: store number of remaining attempts
On MBIM modems the type of PIN cannot be specified in MBIM_CID_PIN query
command and the modem responds only remaining attempts for the currently
active lock.
If PIN1 is unlocked and user tries to disable (or enable) it, MM won't
get an update of remaining attempts in response to PIN Query. This value
is returned only after the Set command and MM need to store it in
all (pin/puk)_set_(enter/enable/change)_ready functions.

Previous solution was to call the mm_iface_modem_update_unlock_retries
directly from these functions but it caused the notification to be send
too early and invalid number was displayed to user sometimes.
Instead of this MM will store numbers of remaining attempts and send
them in a single notification from modem_load_unlock_retries.
2022-01-30 13:48:48 +00:00
Michal Mazur ee87a68532 Revert "mm-sim-mbim: Remove update of remaining attempts"
This reverts commit 46c5cd8b72.
2022-01-30 13:48:48 +00:00
Michal Mazur c487ca1b36 libmm-glib: add documentation for disable_facility_lock 2021-10-22 16:23:40 +02:00
Michal Mazur 5c6b4851c5 modem-qmi,sim-qmi: read personalization retries from Card Status 2021-09-21 14:28:01 +02:00
Michal Mazur 5828af115c modem-mbim: enter LOCKED state when SIM is incompatible
According to MBIM specification, the subscriber state is INITIALIZED
when SIM card is incompatible with enabled modem personalization lock.
This patch introduce additional check for enabled PIN lock in such case
and fixes depersonalization of one lock if several are enabled.
2021-09-21 14:28:01 +02:00
Michal Mazur 46c5cd8b72 mm-sim-mbim: Remove update of remaining attempts
Calling the mm_iface_modem_update_unlock_retries function directly from
pin_set_enter_ready caused a notification to be send too early with
invalid number of attempts to unlock on MBIM modems.
The mm_iface_modem_update_unlock_retries is already called for all
modems from send_pin_ready (mm-base-sim.c).
2021-07-06 08:49:10 +00:00
Michal Mazur 9695f23faf iface-modem-3gpp: skip initialization in LOCKED state 2021-05-22 23:56:22 +00:00
Michal Mazur 83e7600a67 broadband-modem: allow 3GPP initialization before fallback
To enable call to disable-facility-lock in LOCKED state,
3gpp interface needs to be initialized before going to fallback step.
2021-05-22 23:56:22 +00:00
Michal Mazur d76c5c9bcd modem-qmi: detect personalization locks in LOCKED state 2021-05-22 23:56:22 +00:00
Michal Mazur c6b5045105 base-sim: ignore personalization locks after SIM unlock 2021-05-22 23:56:22 +00:00
Michal Mazur 7f425d9b15 broadband-modem: support disabling facility lock on MBIM and QMI modems 2021-04-30 18:40:29 +00:00
Michal Mazur e8edcedc9e modem-helpers: introduce functions to convert MMModem3gppFacility 2021-04-30 18:40:29 +00:00
Michal Mazur dfc04cbc2e iface-modem-3gpp: define new API to disable facility locks 2021-04-30 18:40:29 +00:00
Michal Mazur 25ffe4211a api,libmm-glib,cli: add command to disable facility lock 2021-04-30 18:40:29 +00:00
Michal Mazur b1dde0aec3 libmm-glib: add helper to get 3gpp facility from string 2021-04-30 18:40:29 +00:00
Michal Mazur 2a2ae2819c broadband-modem-qmi: use UIM Get Configuration to probe all facility locks 2021-04-30 18:40:29 +00:00
Michal Mazur ab60f88403 modem-helpers-qmi: introduce parser for Get Configuration message 2021-04-30 18:40:29 +00:00