aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sim-qmi.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-08-01 09:59:43 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-08-28 14:59:06 +0000
commit89b6e811b984f2f9f6e0eea652246a58e3200c8f (patch)
treed8f861a7894334559126c3253495d850cfb1938b /src/mm-sim-qmi.c
parente6ab1182df861e1243f5b93ec334008bec84943e (diff)
helpers-qmi: fix detection of primary active SIM status
The original logic that parsed the 'UIM Get Card Status Output' did a bit of guessing to decide what was the current lock status to consider in the modem. This guessing was fine on systems with a single SIM slot, but it was very wrong as soon as multiple SIMs had to be considered. In a Multi-SIM Multi-Standby setup, with multiple SIMs reported as active, we should look for the one flagged as "GW primary" to consider it the primary SIM card of the system,the one required to start a data connection. We explicitly ignore the ones flagged as "1X primary", as we don't consider a SIM card required in CDMA/EVDO setups.
Diffstat (limited to 'src/mm-sim-qmi.c')
0 files changed, 0 insertions, 0 deletions