summaryrefslogtreecommitdiffstats
path: root/src/sim.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-22Don't try to Lock or Unlock SIM PIN2Denis Kenzior1-1/+6
2009-09-22Make sure we try to lock/unlock/change only PINsDenis Kenzior1-4/+32
2009-09-22Refactor: Do not use int instead of enumDenis Kenzior1-4/+5
27.007 does not define an enumeration for SIM PIN/PUK values. This should be handled by ofono enum instead
2009-09-22Add LockPin and UnlockPin functionsDenis Kenzior1-39/+76
2009-09-22Rearrange sim password enumDenis Kenzior1-25/+26
2009-09-22Get rid of 1 line functionDenis Kenzior1-7/+2
2009-09-22Move some stuff aroundDenis Kenzior1-0/+36
2009-09-22Do PIN authenticationAndrzej Zaborowski1-1/+285
This adds checking whether PIN is required during SIM initialisation and delaying the sim ready notifications until after correct PIN is given.
2009-09-17Refactor language preference parsingDenis Kenzior1-71/+85
- Make sure to handle capital / lower case ISO639 strings - Properly handle the case where files are empty / unused - Don't emit the signal unless the preferences are useable - Simplify the logic and be a bit more readable
2009-09-17Simplify function logicDenis Kenzior1-8/+8
2009-09-17Fix potential memory leakDenis Kenzior1-0/+6
2009-09-17Rename function to be more clearDenis Kenzior1-2/+2
2009-09-17Use existing function for converting to iso639Denis Kenzior1-27/+3
2009-09-17Present list of preferred languages on SimManager interfce.Andrzej Zaborowski1-0/+216
We try to detect the old (2G / 2G+, 51.011) EFlp format and deal with the file contents accordingly.
2009-09-11Port sim ready watch to __ofono_watchlistDenis Kenzior1-76/+17
2009-09-08Fix style issueDenis Kenzior1-2/+2
2009-09-08Move create_dirs to storage.c, add file read/write utilitiesAndrzej Zaborowski1-65/+4
2009-09-01change int vendor to unsigned int vendorDenis Kenzior1-1/+1
2009-09-01Add vendor flag capability to simDenis Kenzior1-2/+2
2009-08-31Don't return sdn numbers until readyDenis Kenzior1-1/+3
2009-08-31Simplify EFsdn reading codeDenis Kenzior1-25/+28
2009-08-31Rename MNCLength to MobileNetworkCodeLengthDenis Kenzior1-3/+3
2009-08-31Refactor sim mnc lengthDenis Kenzior1-7/+8
2009-08-31Style FixDenis Kenzior1-4/+2
2009-08-31Expose service dialling numbers stored on SIM through SimManager.Andrzej Zaborowski1-7/+137
2009-08-31Decode and encode alpha-identifier fieldsAndrzej Zaborowski1-2/+3
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-31Read EFad and expose the IMSI MNC length (2-3)Andrzej Zaborowski1-0/+44
2009-08-20Fix unused function remove_all_watchesDenis Kenzior1-0/+2
2009-08-19Evolve SIM driverDenis Kenzior1-216/+314
2009-08-08Fix compile warningDenis Kenzior1-1/+3
2009-08-07Refactor SIM file cacheDenis Kenzior1-105/+91
2009-08-07Make the sim op queue have a removable gsourceDenis Kenzior1-7/+21
2009-08-07Don't use g_timeout_add to retrieve imsiDenis Kenzior1-6/+3
2009-08-07Refactor setting MSISDNDenis Kenzior1-27/+33
- Empty lists should be supported, as clearing the MSISDN is OK - Initialization of empty MSISDN record should also be possible - Overwriting of unused records should be possible - Simplify resource cleanup
2009-08-07Keep new numbers in the main sim data structureDenis Kenzior1-17/+10
No sense to allocate / free memory for a single pointer
2009-08-07Move error label to a more logical placeDenis Kenzior1-3/+3
2009-08-07Move variable declarations to a move logical placeDenis Kenzior1-2/+3
2009-08-07Make SubscriberNumbers writable.Andrzej Zaborowski1-5/+203
This implements writing SubscriberNumbers if the SIM allows this (optional to the SIM provider). Because the property is an array of phone numbers, setting the property needs to write multiple records on the SIM so it's not atomic and potentially can fail partially. In this case we have to report a write error to DBus client but at the same time file may be changed and we send a PropertyChanged.
2009-08-07Make SIM op queue more robust.Andrzej Zaborowski1-6/+6
This allows ofono_sim_read and ofono_sim_write callbacks to queue new read or write operations. The callback must not be called between removing the operation from queue and checking queue length.
2009-08-05Don't hardcode info len to 6Denis Kenzior1-1/+1
2009-08-04Don't emit SubscriberNumbers multiple timesDenis Kenzior1-7/+6
We would emit the signal even if the record could not be parsed
2009-08-04Put defines near the topDenis Kenzior1-5/+5
2009-08-04Port Andrew's TFR patchDenis Kenzior1-10/+17
2009-08-04Make sim_op_info_cb caching a bit more readableDenis Kenzior1-20/+30
2009-08-04Make cache a gbooleanDenis Kenzior1-1/+1
2009-08-04Make sim_op_retrieve_cb a bit more readableDenis Kenzior1-21/+28
2009-08-04Check write() return values in sim.c for errors.Andrzej Zaborowski1-6/+18
2009-08-04Fix invalid queue use in sim_write_cbAndrzej Zaborowski1-6/+4
Since we pop the queue's head, we can't use sim_op_error
2009-08-03Fix over-complicated code flow that results in uninitialized variablesMarcel Holtmann1-1/+4
2009-08-03Make sure SIM read callbacks die cleanly.Andrzej Zaborowski1-2/+2