summaryrefslogtreecommitdiffstats
path: root/src/sim.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-23sim: Read icons with a full SIM/USIM pathDenis Kenzior1-4/+18
2012-11-22sim: Update to the new sim reading APIDenis Kenzior1-1/+1
2012-11-22sim: Fix SIM re-init case of SIM RefreshDenis Kenzior1-14/+11
When the SIM is being refreshed, we try to access the SIM too fast after the SIM REFRESH proactive command is received. Instead set the sim atom into the 'RESETTING' state and wait until the modem driver signals the sim insertion again.
2012-11-22sim: destroy spn info as part of sim main stateDenis Kenzior1-36/+38
2012-08-16sim: implement function to get password typeAugust Mayer1-0/+8
2012-06-25sim: Add extra errors for EFmsisdn and EFad length mismatchesMarcel Holtmann1-3/+6
2012-06-19sim: Fix use of uninitialized valuesDenis Kenzior1-3/+1
In the case of an error, sim_pin_query_cb should not assume the pin_type value is valid.
2012-06-19sim: Don't re-init the SIM needlesslyDenis Kenzior1-1/+1
When calling ChangePin with the wrong original PIN, we're still left in the READY state. Do not re-initialize the SIM needlessly in this case.
2012-06-17sim: Allow IMSI to be obtained via EF readsDenis Kenzior1-11/+63
2012-06-16sim: Revert adding special callback for EFiccidDenis Kenzior1-26/+1
This reverts commit 1960dbbc79e43f33f23886c2a12e508a0350aad1.
2012-06-16sim: Revert adding special callback for EFmsisdnDenis Kenzior1-55/+30
This reverts commit c3124b66d903a43ce639e3de8e838ef39419fc4f.
2012-06-16sim: Revert adding special callback for EFadDenis Kenzior1-18/+1
This reverts commit 5522df64fac7b57d3d9db2272fc9be97c8815b94.
2012-06-16sim: Add special callback for reading MCC and MNC valueMarcel Holtmann1-1/+18
2012-06-16sim: Add special callback for reading MSISDN valueMarcel Holtmann1-30/+55
2012-06-16sim: Add special callback for reading ICCID valueMarcel Holtmann1-1/+26
2012-06-16sim: Use ofono_bool_t instead of gbooleanMarcel Holtmann1-2/+2
2012-05-20Do not set signature and reply in GDBus tablesLucas De Marchi1-11/+11
Use GDBUS_* macros, so signature and reply fields are not set in each method/signal.
2012-05-20Convert GDBus methods to use macro helpersLucas De Marchi1-16/+29
With these macro helpers we can separate in/out arguments and use their own vector.
2012-05-20Constify GDBus signal tablesHenrique Dante de Almeida1-1/+1
Constify signal tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \;
2012-05-20Constify GDBus method tablesHenrique Dante de Almeida1-1/+1
Constify method tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
2012-02-01sim: Fix crash due to uninitialized spn_watchDenis Kenzior1-0/+8
2012-01-23sim: Make SPN change atomic for consumersOleg Zhurakivskyy1-15/+15
Due to new spn watch semantics, ofono_sim_get_spn() will report the absence of SPN while reading it, which is probably incorrect.
2012-01-18sim: Add ofono_sim_get_spn() implementationOleg Zhurakivskyy1-0/+8
2012-01-15sim: Add SPN watch capabilityOleg Zhurakivskyy1-0/+242
2012-01-15sim: Minor style fixesOleg Zhurakivskyy1-12/+12
2012-01-01sim: fix "network" is pin type for "networkpuk"Jussi Kukkonen1-1/+1
2011-12-26sim: Fix not creating simfs context in some casesDenis Kenzior1-5/+3
2011-12-16sim: Add __ofono_sim_cphs_service_availableDenis Kenzior1-0/+6
2011-12-16sim: Reset additional state infoDenis Kenzior1-0/+10
We were not resetting 3GPP and CPHS phase information as well as the CPHS service table entries on sim removal / reset.
2011-10-10core: Update copyright informationMarcel Holtmann1-1/+1
2011-07-19sim: Support SIM_STATE_LOCKED_OUTDenis Kenzior1-4/+4
2011-07-19sim: Break out state notification into own methodDenis Kenzior1-19/+15
2011-06-02sim: Make sure only PINs can be sent to EnterPinDenis Kenzior1-0/+3
2011-05-08sim: Fix potential use of uninitialized variableDenis Kenzior1-14/+8
In certain circumstances, when the image has been cached but EFimg has not been read yet, we might end up accessing an unitialized variable. Fix this by always failing if EFimg has not been read yet.
2011-03-31sim: add +CNUM support for HFP emulatorFrédéric Danis1-0/+66
2011-03-15sim: Handle an error condition betterDenis Kenzior1-3/+4
2011-03-15sim: Watch for changes to EFimg files and EFiidfAndrzej Zaborowski1-1/+54
2011-03-15sim: Watch for changes to EFmsisdn and EFsdnAndrzej Zaborowski1-2/+32
2011-03-15sim: Split out sim context into early and mainAndrzej Zaborowski1-10/+71
And watch for relevant file changes on the early context.
2011-02-25sim: Document fall through case in switchcaseDenis Kenzior1-0/+2
2011-02-25sim: Expose the __ofono_sim_recheck_pin APIJussi Kangas1-8/+7
2011-02-25sim: Do not teardown SIM state when PIN2 is askedJussi Kangas1-7/+24
We should not tear down the SIM state if PIN2 is being asked for, or if PIN2 is blocked and PUK2 is being asked. We also want to continue with SIM initialization if the modem requires PIN2 / PUK2 for some reason.
2011-02-18sim: Check for SIM lockout conditionDenis Kenzior1-3/+12
When a user tries to lock/unlock/change a PIN and enters it wrongly several times, it is possible to lock themselves out. In this case we should drop to a pre-sim state, wait for the user to enter the PUK and re-init the sim.
2011-02-18sim: Move stuff around and remove forward declDenis Kenzior1-24/+23
2011-02-18sim: move stuff aroundDenis Kenzior1-49/+49
2011-02-17sim: Tweak the behavior of sim_refresh slightlyDenis Kenzior1-8/+1
Instead of notifying everyone of sim_inserted condition, we should simply notify the modem directly. It is the only one interested in this particular change. This partly reverts an earlier commit: 9498ad6b5633e350eb529f8efbe08270d95c8003
2011-02-17sim: Implement basic RefreshAndrzej Zaborowski1-12/+151
2011-02-08sim: Fixup compiler complaintsDenis Kenzior1-1/+2
src/sim.c:2396: error: comparison between signed and unsigned integer expressions src/sim.c:2396: error: comparison between signed and unsigned integer expressions
2011-02-08sim: Allow usage of SIM codes longer than 8 digitsJussi Kangas1-6/+69
Some PIN codes (e.g. subsidy locks, etc) can have PIN codes much longer than the default 8 digits.
2011-02-07sim: Add implementation of sim file watching APIDenis Kenzior1-0/+14