Aleksander Morgado
1372933345
iface-modem,sim: improve lock info update logic
...
The logic to handle the lock information (current lock and unlock retry count)
wasn't handling all possible cases properly, e.g.:
* When PIN is incorrectly entered too many times, a SIM-PUK error may happen.
In this case we need to directly assume SIM-PUK is the current lock (some
modems, like Option HSO ones, would incorrectly reply SIM-PIN if CPIN? asked
just after the SIM-PUK error).
* After every operation acting in SIM locks, we need to update the current
unlock retry count.
This change tries to cover those cases, by:
* The logic to check current lock is extended to also load the unlock retry
count when needed.
* Whenever a SIM-PUK error happens in the SIM operations, we directly assume
that SIM-PUK is required, without re-asking CPIN?.
* The overall logic of lock checking is now handled by a state machine, which
is much easier to understand.
2013-01-08 18:40:47 +01:00
..
2012-10-25 16:19:28 +02:00
2010-04-09 19:38:22 -07:00
2010-04-29 12:17:56 -07:00
2012-12-23 16:55:27 +01:00
2012-08-29 17:26:46 +02:00
2012-10-09 16:30:09 +02:00
2012-10-04 19:08:03 +02:00
2012-08-24 12:32:28 +02:00
2012-08-24 12:32:28 +02:00
2012-10-10 15:57:35 +02:00
2012-03-16 14:53:15 +01:00
2012-03-16 14:53:15 +01:00
2012-03-16 14:53:15 +01:00
2012-03-16 14:53:15 +01:00
2012-03-16 14:53:15 +01:00
2012-10-22 12:33:19 +02:00
2012-08-24 12:32:29 +02:00
2012-12-27 08:48:11 +01:00
2012-09-05 20:02:31 +02:00
2012-10-04 10:17:12 +02:00
2012-03-16 14:53:19 +01:00
2012-10-23 18:20:24 +02:00
2012-10-04 10:17:12 +02:00
2012-12-12 12:55:33 +01:00
2012-10-04 10:17:12 +02:00
2012-12-28 08:00:04 +01:00
2012-10-04 10:17:12 +02:00
2012-11-02 14:30:32 +01:00
2012-08-29 17:26:42 +02:00
2013-01-07 22:25:46 +01:00
2012-10-04 10:17:13 +02:00
2012-10-04 10:17:12 +02:00
2012-09-12 23:03:58 -05:00
2012-03-16 14:53:18 +01:00
2012-03-16 14:53:18 +01:00
2012-12-27 13:51:28 +01:00
2012-12-27 13:51:28 +01:00
2012-03-15 14:14:31 +01:00
2012-10-04 10:17:13 +02:00
2012-03-29 09:17:53 +02:00
2012-03-29 09:17:53 +02:00
2012-10-11 11:41:15 +02:00
2012-10-04 10:17:12 +02:00
2013-01-03 22:28:34 +01:00
2012-10-04 10:17:12 +02:00
2013-01-03 22:28:34 +01:00
2012-10-04 10:17:12 +02:00
2012-10-11 11:41:15 +02:00
2012-10-04 19:08:03 +02:00
2012-12-24 18:57:39 +01:00
2012-11-02 08:23:11 +01:00
2012-11-02 14:19:15 +01:00
2012-09-14 07:05:26 +02:00
2013-01-08 18:40:47 +01:00
2012-03-15 14:14:39 +01:00
2012-10-11 11:41:15 +02:00
2012-03-16 14:53:24 +01:00
2013-01-08 18:40:47 +01:00
2013-01-08 18:40:47 +01:00
2012-10-30 16:06:27 +01:00
2012-03-16 14:53:23 +01:00
2012-08-29 17:26:46 +02:00
2012-03-15 14:14:21 +01:00
2012-03-16 14:53:18 +01:00
2012-11-02 09:52:31 +01:00
2012-10-15 12:41:33 +02:00
2012-12-05 11:43:58 -06:00
2012-10-22 19:06:49 +02:00
2012-12-27 12:44:50 +01:00
2012-08-06 20:06:45 +02:00
2012-12-27 13:51:28 +01:00
2012-10-30 15:35:58 +01:00
2012-11-27 09:56:25 -06:00
2012-11-27 09:56:25 -06:00
2012-11-27 09:56:25 -06:00
2012-09-05 20:02:31 +02:00
2012-03-15 14:15:05 +01:00
2012-09-05 20:02:31 +02:00
2012-08-06 20:06:46 +02:00
2012-08-06 20:06:46 +02:00
2012-03-16 14:53:22 +01:00
2012-03-16 14:53:22 +01:00
2012-09-18 19:10:05 +02:00
2012-09-08 10:41:01 +02:00
2012-08-24 12:32:29 +02:00
2012-03-16 14:53:22 +01:00
2012-12-12 12:56:47 +01:00
2012-12-12 12:56:47 +01:00
2012-10-11 09:23:49 +02:00
2012-08-29 17:26:41 +02:00
2013-01-08 18:40:47 +01:00
2012-03-16 14:53:18 +01:00
2012-10-04 10:17:12 +02:00
2012-09-14 07:05:26 +02:00
2012-12-12 12:21:17 +01:00
2012-09-14 07:05:26 +02:00
2012-10-11 09:23:49 +02:00
2012-10-04 10:17:12 +02:00
2012-10-04 10:17:12 +02:00
2012-10-04 10:17:12 +02:00