Skip to content

MBIM: Fix notification of remaining attempts to unlock PIN

Michał Mazur requested to merge mkm/ModemManager:main into main

Fix for invalid number of retries in notification (MR!562) introduced a new bug: number of retries is not shown while turning on/off the SIM lock toggle.

Both issues are caused by limitation of MBIM PIN command as it is not possible to specify the type of PIN lock in Query for lock status. The modem returns remaining attempts only for currently active lock with highest priority.

Proposed solution is to store numbers of remaining attempts received in every response to PIN Set commands and send them in a single notification from modem_load_unlock_retries (like on other modems).

Edited by Michał Mazur

Merge request reports

Loading