Guillaume Zajac
d0232dee06
atmodem: Poll SIM state after having entered PIN
...
We encountered the problem of CME ERROR 14: SIM busy on ZTE modems.
ZTE modems don't use SIM notification to check SIM state.
We poll SIM ready state before confirming PIN is entered.
2012-04-18 04:22:19 -05:00
Denis Kenzior
31e1b2e6ce
sim: Don't use sprintf unnecessarily
...
Using sprintf for a single quote is quite wasteful
2012-03-23 08:28:37 -05:00
Denis Kenzior
95e7982938
sim: Fix up various coding style violations
2012-03-23 08:27:44 -05:00
Nicolas Bertrand
ad29b6d18f
sim: Use quoted string with AT+CRSM data parameter
...
Fix issue with some modems preventing to update elementary files
(speedup, ZTE, huawei, MBM)
2012-03-23 08:12:24 -05:00
Renat Zaripov
409b0f01b6
sim: Add SIMCOM specific PIN retry handling
...
Use AT+SPIC for obtaining retries remaining for SIM PIN / PUK
AT+SPIC Retries Remaining to Input SIM PIN/PUK
+SPIC: <pin1>,<pin2>,<puk1>,<puk2>
Parameters
<pin1> Times remained to input chv1
<pin2> Times remained to input chv2
<puk1> Times remained to input puk1
<puk2> Times remained to input puk2
2012-02-22 04:14:16 -06:00
Guillaume Zajac
38056fdd50
atmodem: Create new sim driver without EF entries
...
This driver will be used by CDMA modems to support PIN
management and IMSI retreival.
EF entries for CDMA modems cannot be implemented without
manufacturers specifications.
2012-01-11 06:46:24 -06:00
Marcel Holtmann
2e0f1f79c1
atmodem: Add support for Option HSO specific PIN retry counters
2011-12-29 12:08:38 -08:00
Marcel Holtmann
4e77afffb3
drivers: Update copyright information
2011-10-10 13:39:48 -07:00
Marcel Holtmann
703d0a1237
speedup: Add support for retrieving PIN retry counters
2011-08-04 17:00:05 +02:00
Marcel Holtmann
4c8ae3f9ec
atmodem: Add Speedup vendor quirk to SIM file reading
2011-08-04 15:54:26 +02:00
Marcel Holtmann
5b7d2329dc
atmodem: Enable support for PIN retry counters of ZTE modems
2011-08-03 23:54:39 +02:00
Miia Leinonen
2cb3027dd6
atmodem: Add MBM vendor quirk for SIM record update
2011-03-02 22:53:35 -06:00
Jeevaka Badrappan
fa96b806bd
atmodem: Add pin retry count support for mbm
2011-02-01 16:36:43 +01:00
Rémi Denis-Courmont
56dfe5066b
atmodem: implement standard PIN retries
2011-02-01 13:51:21 +01:00
Jeevaka Badrappan
e4ef929aee
atmodem: fix memory leak
2011-01-29 12:43:17 -06:00
Jeevaka Badrappan
4258fb5915
atmodem: remove NULL check
2011-01-29 18:39:37 +01:00
Marcel Holtmann
938e635ae6
atmodem: Add Sierra vendor quirk for SIM file reading
2011-01-27 15:49:32 +01:00
Lucas De Marchi
b7fca84c93
atmodem: rename parameter according to header
2011-01-26 18:23:38 +01:00
Denis Kenzior
58f223da5f
sim: Add a missing break statement just in case
2011-01-19 14:57:12 -06:00
Jeevaka Badrappan
508b93eecb
atmodem: add ifx support for pin retry count
2011-01-19 14:57:12 -06:00
Jeevaka Badrappan
d9ae1405f3
atmodem: coding style fix
2011-01-18 15:55:41 +01:00
Jeevaka Badrappan
b97676acc3
atmodem: M15 coding style fix
2011-01-12 08:06:58 -08:00
Marcel Holtmann
4bab8d3ad3
atmodem: Use switch statement for vendor quirks
2011-01-10 15:35:39 -08:00
Denis Kenzior
94c104b25f
sim: Fix missing return in the atmodem driver
...
In some circumstances it was possible to call the callback with both
failure and success
2011-01-10 16:21:16 -06:00
Denis Kenzior
55d47dcac1
sim: Prefer not using _ prefix for style reasons
2011-01-10 16:14:50 -06:00
Lucas De Marchi
5dfd568a2a
atmodem: implement query for remaining pin retries
...
Implement query method for the remaining pin retries on huawei modem.
2011-01-10 16:08:55 -06:00
Lucas De Marchi
45f2576bb6
atmodem: check for VENDOR_HUAWEI on sim atom
2011-01-10 15:38:29 -06:00
Lucas De Marchi
b82a7f8511
drivers: explicitly compare pointers to NULL
...
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/ )
// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@
- !E
+ E == NULL
// </smpl>
2010-11-29 11:37:09 -06:00
Marit Henriksen
a25d57531c
atmodem: Remove at_pin_send_puk_cb, and use at_pin_send_cb instead.
...
When adding the use of pin event *EPEV also to at_pin_send_puk_cb,
it becomes identical to at_pin_send_cb, and can be removed.
2010-11-04 10:40:17 +01:00
Marcel Holtmann
a917f094cb
atmodem: Add SIM ready quirk for IFX when entering PUK
...
For the Infineon modem, also the PUK entering needs to be extended with
a quirk to wait for the SIM ready notification.
2010-10-18 15:10:05 +02:00
Marcel Holtmann
43a6ece561
atmodem: Remove workaround for SIM ready notifier removal
2010-10-15 16:07:51 +03:00
Denis Kenzior
aa50067ccd
sim: Use enums for EF valid / invalidated status
2010-10-15 07:25:50 -05:00
Petteri Tikander
84efadcf5a
atmodem: returns file-status of SIM EF-file
2010-10-15 02:19:02 -05:00
Marcel Holtmann
3ad4e5ab21
atmodem: Update IFX specific SIM ready checking
...
It seems that the XSIM notification doesn't really send SIM ready
status. It sends ready to attach instead:
> AT+CPIN="0000"\r
< \r\nOK\r\n
< \r\n+XLOCK: "PN",5,0,"PU",5,0,"PP",5,0,"PC",5,0,"PS",5,0\r\n
< \r\n+XSIM: 7\r\n
So either SIM ready or ready to attach is received more to the
post_sim state.
2010-09-29 23:23:29 +09:00
Marcel Holtmann
25bb671d4e
atmodem: Add special handling for Infineon SIM ready state
2010-09-25 11:32:40 +09:00
Marcel Holtmann
a8d3e7433a
atmodem: Remove useless NULL checks before g_free
2010-08-16 22:02:01 +02:00
Denis Kenzior
ac524be99f
atmodem: Use g_at_chat_clone
2010-08-12 16:40:40 -05:00
Andrzej Zaborowski
79372d26f5
atmodem: Make sim operations return sim error codes.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
b450efafec
atmodem: Don't unregister *EPEV in *EPEV handler.
...
Handlers are called when looping over the unsolicited responses hash,
registering or unregistering modifies that hash and confuses glib.
2010-06-29 13:59:13 -05:00
Denis Kenzior
681aaef1ab
atmodem: Use a switch/case in sim.c
2010-06-18 14:24:18 -05:00
Andrzej Zaborowski
a2dc7dfee0
atmodem: Add PIN entry quirk for mbm.
...
Wait for *EPEV unsolicited response after PIN entered, otherwise the
next AT+CPIN? query still returns the old value for a fraction of a
second and ofono gets stuck until the next PIN entry attempt.
2010-06-18 14:14:39 -05:00
Marcel Holtmann
f566935f7a
Fix memory leak introduced by HSO quirk
2010-06-13 11:46:29 +02:00
Marcel Holtmann
66c50b6a72
Add nasty quirk to allow HSO devices to read network code length
...
The AT+CRSM=192 commands are failing on HSO devices and thus it might
be needed to return its details from a predefined database. Start with
testing this for reading the network code length.
2010-06-13 08:10:13 +02:00
Marcel Holtmann
88d083c4fd
Coding style fix for the PIN type table
2010-06-09 18:23:05 -07:00
Andrzej Zaborowski
5e11442ef7
atmodem: Pass allowed response prefixes to gatchat
...
Not doing this creates a race condition where any notification
comming in in the middle of a sequence of commands may be counted
as a response to one of the commands and get lost.
2010-05-12 12:18:33 -05:00
Andrzej Zaborowski
aad4d0de78
Add Sim Toolkit atom
...
- Add ofono_stk atom in stk.c
- Move envelope command from sim driver to stk driver
2010-04-15 16:49:40 -05:00
Denis Kenzior
6d28f82dc1
Add Wavecom's quirky CPIN handling
2010-02-08 16:13:43 -06:00
Denis Kenzior
c98b951fe6
Refactor: Remove atutil dump_response
...
No longer needed now that we have nice AT command tracing using
OFONO_AT_DEBUG=1
2010-02-08 12:28:23 -06:00
Denis Kenzior
7f9a9b0cdc
Fix: Don't use ofono_debug directly in plugins
2010-02-08 12:09:01 -06:00
Marcel Holtmann
144080e749
Update copyright information
2010-01-01 17:00:10 -08:00