Denis Kenzior
fd8d7b8992
simutil: Simplify builder_write_header
2010-05-25 16:52:51 -05:00
Denis Kenzior
91c4644458
simutil: Be more type-correct
2010-05-25 16:52:51 -05:00
Denis Kenzior
afedfcb486
simutil: Get rid of ugly-named functions
...
Replace them by macros
2010-05-25 16:52:51 -05:00
Andrzej Zaborowski
1c3060026e
simutil: Add utilities for encoding BTLV and CTLV
2010-05-25 16:52:50 -05:00
Yang Gu
353d955dea
simutil: Add comprehension tlv copy
...
Can be used to save the state of the current iterator and 'peek' ahead.
2010-05-13 11:02:52 -05:00
Andrzej Zaborowski
6e28fd9396
Fix CTLV three-byte tag parsing.
2010-04-22 17:44:20 -05:00
Yang Gu
a13db81229
Make the function to parse mcc and mnc public
2010-03-25 11:36:11 -05:00
Denis Kenzior
19a20e4ccd
Add COMPREHENSION TLV iterator utilities
2010-02-23 12:03:04 -06:00
Denis Kenzior
d98be70fa9
Add Simple TLV iterator utilities
2010-02-23 12:03:03 -06:00
Denis Kenzior
0db0108120
Fix: EFspdi parsing
...
EFspdi is a nested BER-TLV structure. The outside BER-TLV has the tag
A3, and the inside contains the PLMN list TLV with tag 0x80.
2010-02-23 12:03:03 -06:00
Denis Kenzior
5a86a7408a
Rewrite ber_tlv_find_tag to use ber_tlv iterator
2010-02-23 12:03:03 -06:00
Denis Kenzior
077cfe284e
Move from header to implementation
2010-02-23 12:03:03 -06:00
Denis Kenzior
0d163e6295
Add BER-TLV iterator utilities
2010-02-23 12:03:00 -06:00
Marcel Holtmann
144080e749
Update copyright information
2010-01-01 17:00:10 -08:00
Marcel Holtmann
647ebdfd13
Fix pointer size problem with GUINT_TO_POINTER and unsigned short
2009-10-04 13:02:56 +02:00
Denis Kenzior
6ef9a4b2dd
Fix: Make const correct
2009-10-02 19:25:44 -05:00
Denis Kenzior
f7c97ca10a
Fix: Add additional error checking
2009-10-02 18:25:56 -05:00
Denis Kenzior
c8150fc120
Use small caps for 2G/3G functions
2009-10-02 18:25:56 -05:00
Denis Kenzior
8bf64ef07d
Add utility to parse 3G get response data
...
Based on ETSI 102.221
2009-10-02 18:25:56 -05:00
Denis Kenzior
c9a2eedc08
Add utility to parse 2G GET_RESPONSE data
...
This format is described in 51.011 and the older 11.11. It is not
supported by newer 3G UICC based devices & sim card combinations
2009-10-02 18:25:56 -05:00
Denis Kenzior
c8e515fef8
Add utility to lookup files in EF db
2009-10-02 18:25:56 -05:00
Denis Kenzior
6d9ec89259
Add basic elementary file database
2009-10-02 18:25:55 -05:00
Marcel Holtmann
0e9f9d8bc8
Fix segmentation fault from SIM reading on Calypso modem
2009-09-25 14:07:33 -07:00
Denis Kenzior
9f27be58bc
Move some stuff around
2009-09-22 00:07:06 -05:00
Andrzej Zaborowski
ee02b14836
Do PIN authentication
...
This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.
2009-09-22 00:07:06 -05:00
Denis Kenzior
efdf84b62c
Simplify nested ifs
2009-08-31 15:12:37 -05:00
Denis Kenzior
a96fde1362
Simplify overly complicated code
2009-08-31 15:12:37 -05:00
Andrzej Zaborowski
f21930f04e
Decode and encode alpha-identifier fields
...
Add identifier argument to sim_adn_parse and sim_adn_build.
Also fix the number length passed to extract_bcd_number in sim_adn_parse.
2009-08-31 15:12:37 -05:00
Denis Kenzior
7abeb8e4a0
Use types.h instead of driver.h here
2009-08-20 12:48:28 -05:00
Denis Kenzior
f4037d77f7
Fix sim ADN type of number handling
...
The type of number stored here is not quite the same as SMS number,
and should be parsed differently
2009-08-07 15:49:30 -05:00
Denis Kenzior
572a89cce2
Fix style
2009-08-06 17:33:44 -05:00
Denis Kenzior
6989732e3a
Fix style
2009-08-06 17:33:00 -05:00
Denis Kenzior
24ded594ef
No spaces between variable and ++/--
2009-08-06 17:26:36 -05:00
Andrzej Zaborowski
e8552dde07
Add utility for building ADN records
...
Used to populate MSISDN, MBDN, etc records on the SIM
2009-08-05 13:25:31 -05:00
Andrzej Zaborowski
ebf6fca07a
Clean up in sim.c.
...
Remove unused variables and fields.
Move EFadn format parsing to a common function because various files use
this same format.
2009-07-31 09:55:46 -05:00
Andrzej Zaborowski
da0bdb1cbf
Clean-up in sim.c.
2009-07-17 23:48:29 -05:00
Andrzej Zaborowski
983d16ca37
Make PNN / OPL work.
2009-07-17 23:48:28 -05:00
Denis Kenzior
e8c153e0b3
Remove unneeded function
2009-07-14 15:50:35 -05:00
Denis Kenzior
4606b0aba4
Fix warnings
2009-07-14 15:50:09 -05:00
Denis Kenzior
bda598b93a
Refactor EONS to have lac / non-lac versions
...
PNN/OPL database has fields which provide global operator naming,
or specific to a cell range. The cell range can only be obtained
if the operator is the current one.
2009-07-14 15:45:06 -05:00
Denis Kenzior
a8eedf1326
Fix missing header
2009-07-14 15:45:06 -05:00
Denis Kenzior
3774e4eb73
Return the entire EONS info, not just the longname
2009-07-14 15:45:06 -05:00
Denis Kenzior
0fa6897213
Refactor OPL code
2009-07-14 15:45:05 -05:00
Denis Kenzior
0fd5080630
Fix parsing of mcc_mnc code
...
The digits above 0-9 were not handled correctly
2009-07-14 15:45:05 -05:00
Denis Kenzior
5ea1326b00
Move SPDI to network.c
2009-07-14 15:45:05 -05:00
Denis Kenzior
9a565d88b1
Refactor sim_pnn_operator_parse
2009-07-14 15:45:05 -05:00
Denis Kenzior
38eebca61f
Move PNN operator parsing to simutil
2009-07-14 15:45:05 -05:00
Denis Kenzior
80f43ff849
Move function to simutil.c
2009-07-14 15:45:05 -05:00
Denis Kenzior
b945c111b7
Move utility to its own file
2009-07-14 15:45:03 -05:00