summaryrefslogtreecommitdiffstats
path: root/src/sim.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-26sim: read EFimgKristen Carlson Accardi1-0/+50
2010-08-25sim: Check PIN even if no EFli / EFpl not readDenis Kenzior1-4/+2
2010-08-23sim: Retrieve EFphase according to the specDenis Kenzior1-45/+37
2010-08-23sim: Reorder SIM initializationDenis Kenzior1-98/+95
2010-08-23sim: Reset mnc_length when removing SIMDenis Kenzior1-0/+2
In case the next SIM doesn't have it or something else weird happens.
2010-08-23sim: Update the SIM initialization commentDenis Kenzior1-3/+11
2010-08-23sim: Minor style fixDenis Kenzior1-2/+2
2010-08-23sim: Read EFust and EFestYang Gu1-2/+73
2010-08-05sim: Use less space for locked_pinsDenis Kenzior1-10/+6
Use only as required, since we only track PINs in this one, not PUKs
2010-08-05sim: Fix LockedPins in case SIM wants a PUK firstDenis Kenzior1-0/+26
In the case that oFono is started with the SIM asking for a PUK, we don't report LockedPins properly.
2010-06-22Check sanity the MNC length value from the SIM cardMarcel Holtmann1-0/+4
In case the SIM entry is wrong or we force reading of it, nasty things like this can happen: ofonod[12456]: Control:> AT+CRSM=176,28589,0,0,4\r ofonod[12456]: Control:< +CRSM: 144,0,"00FFFF"\r\n\r\nOK\r\n *** buffer overflow detected ***: ./src/ofonod terminated ======= Backtrace: ========= /lib64/libc.so.6(__fortify_fail+0x37)[0x3e42efb417] /lib64/libc.so.6[0x3e42ef9310] /lib64/libc.so.6(__strncpy_chk+0x17b)[0x3e42ef85cb]
2010-05-27sim: move ServiceDiallingNumbers to ServiceNumbersDenis Kenzior1-2/+2
In line with the API documentation
2010-05-19sim: Read EFiccid after EFphaseDenis Kenzior1-4/+4
2010-05-19sim: No need for this defineDenis Kenzior1-2/+2
2010-05-19Read EF_ICCID property of SIMDaniel Wagner1-0/+37
Tested with phonesim.
2010-04-15Style: Proper indentationDenis Kenzior1-6/+7
2010-04-15Add Sim Toolkit atomAndrzej Zaborowski1-37/+0
- Add ofono_stk atom in stk.c - Move envelope command from sim driver to stk driver
2010-04-15Fix: Minor style issuesDenis Kenzior1-2/+2
2010-04-15Fix: Uncomplicate the logic for SIM initializationDenis Kenzior1-30/+29
If we get a sim inserted notify before we are registered, we need to initialize the SIM once ofono_sim_register is called. The logic for doing so is rather twisted, simplify it.
2010-04-15Add SIM "Present" property.Andrzej Zaborowski1-40/+77
2010-04-15Drivers can notify core of SIM insertion / removalAndrzej Zaborowski1-23/+55
Add ofono_sim_inserted_notify function to notify the core of SIM insertion / removal. Make every plugin generate a sim inserted event on start. For devices with removable card, the event should be emitted after the plugin detects such event. For devices that need to wait for SIM card initialization, they can emit this event later.
2010-04-15Extend sim-ready watch with card insert/ejectAndrzej Zaborowski1-24/+25
2010-03-31Use stkutil named constants in sim.cAndrzej Zaborowski1-4/+4
2010-03-25Refactor: Remove MobileNetworkCodeLength propertyDenis Kenzior1-6/+36
Replaced by MNC/MCC properties which is more intuitive for use by external applications.
2010-03-22Move sim manager interface definition to dbus.hDenis Kenzior1-26/+21
2010-03-19Fix: Check password length based on its typePekka Pessi1-6/+6
The different password types have different length requirements, so update is_valid_pin to validate according to the password type being validated (PIN / PUK / NET)
2010-03-16Fix: Fixup error paths in sim_op_check_cachedDenis Kenzior1-1/+7
2010-02-27Use stk_envelope_type constant name in sim.cAndrzej Zaborowski1-1/+2
2010-02-08Fix: Don't use ofono_debug directly in the coreDenis Kenzior1-2/+2
Use DBG macro which is integrated with the new debug framework.
2010-01-12Refactor: Rename & Restructure cphs_supportDenis Kenzior1-6/+6
- Rename to cphs_service_table to be more inline with the specification. - Since the spec allows arbitrary length service tables, use an unsigned char * return instead of a short. - Use bit_field function instead of defining an enum
2010-01-12Rename: Rename CPHS Phase enumsDenis Kenzior1-4/+3
Be more consistent with the 3GPP Phase names
2010-01-12Retrieve CPHS phase (if any) from SIM.Andrzej Zaborowski1-1/+46
2010-01-06Set phase to unknown until we probe itDenis Kenzior1-0/+1
2010-01-06Refactor: Preserve Phase obtained from the SIMDenis Kenzior1-4/+2
2010-01-06Index SIM cache by phase also.Andrzej Zaborowski1-8/+46
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-17Style: Fix a few more occurences of if/elseDenis Kenzior1-2/+4
See Linux coding style document for details
2009-12-17Style: Fixup style issuesDenis Kenzior1-1/+3
2009-12-17Handle EF-CBSMID contents.Andrzej Zaborowski1-0/+34
2009-10-05Fix: Don't crash when cached ef structure differsDenis Kenzior1-1/+1
2009-10-02Refactor: Move elementary file type checkingDenis Kenzior1-40/+35
Every single EF read callback checks the file type reported out of the SIM is what it expects. Instead this should be done in one place and the errors reported accordingly
2009-09-28Fix efli being removed prematurelyDenis Kenzior1-4/+6
2009-09-24Fix whitespaceDenis Kenzior1-7/+7
2009-09-24Add initial support for LockedPins propertyDenis Kenzior1-7/+95
2009-09-23Ignore EFli if the first entry is emptyDenis Kenzior1-4/+11
2009-09-23Remove unused struct field.Andrzej Zaborowski1-1/+0
2009-09-23Rename eflp_format to efli_format, semantically opposite.Andrzej Zaborowski1-4/+4
2009-09-22Simplify: Use dbus_message_iter_get_argsDenis Kenzior1-64/+14
2009-09-22Remove unused structureDenis Kenzior1-6/+0
2009-09-23Fix unused variable issue from last commitsMarcel Holtmann1-1/+0