summaryrefslogtreecommitdiffstats
path: root/src/sim.c
AgeCommit message (Collapse)AuthorFilesLines
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
2011-02-03simfs: implement ofono_sim_context apiAndrzej Zaborowski1-35/+47
2011-02-02sim: Fix style issuesAki Niemi1-5/+3
2011-01-22sim: Remove double empty linesMarcel Holtmann1-1/+0
2011-01-20sim: getters for mcc and mnc implementationJukka Saunamaki1-0/+16
2011-01-20sim: store mcc and mnc separate from imsiJukka Saunamaki1-19/+15
2011-01-17sim: fix issue with sizeof callJeevaka Badrappan1-1/+1
In some compilers, sizeof the functional argument is not returning the actual sizeof the argument.
2011-01-10sim: Minor style fixesDenis Kenzior1-4/+2
2011-01-10sim: query remaining pin retriesLucas De Marchi1-0/+90
Check the remaining pin retries after each operation that might have changed it, i.e. locking, unlocking, reseting or changing pin.
2010-12-21sim: Set sane number len in empty EFmsisdn recordsAndrzej Zaborowski1-0/+2
Valid number length range is 1 - 11 bytes, other values, such as 0xff, could potentially crash external parsers.
2010-12-12sim: fix minor issue in ofono_sim_get_phaseJeevaka Badrappan1-1/+1
2010-11-29sim: be more paranoid for triggering EFest readJeevaka Badrappan1-3/+10
2010-11-29core: explicitly compare pointers to NULLLucas De Marchi1-8/+8
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-26core: Remove stray newlines in messages sent to logRĂ©mi Denis-Courmont1-1/+1
2010-11-22src: coding style fixes - rule M6Jeevaka Badrappan1-2/+2
2010-11-10sim: Add sim_service_available()Andrzej Zaborowski1-0/+15
This is meant to query EFsst or EFust. The function is not public api because the service constants are in src/simutil.h.
2010-11-05sim: Check both EFust and EFest for FDN & BDNDenis Kenzior1-4/+9
We were checking EFest only for whether BDN and FDN were enabled. According to 31.102 Section 5.3.2 we should be checking both EFust (availability of the service) and EFest (whether it is enabled)
2010-11-05sim: Don't read EFest if the file is not availableDenis Kenzior1-4/+12
2010-11-05sim: use mask for check of sim file statusGuillaume Lucas1-2/+2
It is the first bit of the sim file status who indicates if a file is valid or not. So a mask must be used to check this.
2010-10-25sim: Fix minor style issueDenis Kenzior1-0/+1
2010-10-25sim: add barred dialing supportJeevaka Badrappan1-8/+79
2010-10-22sim: Pass dbus typesDenis Kenzior1-2/+3
Can't really assume they're the same as glib types
2010-10-22sim: Get rid of unneeded empty lineDenis Kenzior1-1/+0
2010-10-22sim: Break out common FDN property signalingDenis Kenzior1-20/+17
2010-10-22sim: check existence of imsi-codePetteri Tikander1-1/+1
For instance: when handling sim_get_properties in PRE_SIM-state imsi is not received/stored.
2010-10-22sim: check if Fixed Dial is enabled in SIM-cardPetteri Tikander1-0/+68
If SIM-card is inserted, status is checked from EFsst (is FDN activated) and EFadn (is ADN invalidated). If USIM-card is inserted, status is checked from EFest (is FDN activated). If FD is enabled, halt SIM initialization procedure. New property (FixedDialing) is added. If FD is enabled, this has been signalled via DBUS.
2010-10-19sim: Read EFust and EFest after phase is knownDenis Kenzior1-11/+10
2010-10-19sim: Fix setting the correct phase from EFphaseDenis Kenzior1-3/+18
2010-10-15sim: Fix crash on sim re-insertionDenis Kenzior1-5/+5
2010-10-13sim: Refactor iidf readingDenis Kenzior1-90/+90
Get rid of image_data since it can lead to potential memory leaks when sim is removed while the IIDF operations are in progress.
2010-10-13sim: Use ay return signature for GetIconDenis Kenzior1-6/+16
2010-10-13simfs: Reflow to get rid of unnecessary labelDenis Kenzior1-10/+5
2010-10-13sim: Use g_dbus_create_replyDenis Kenzior1-5/+4
Instead of compound statements
2010-10-13sim: Don't re-check for id != 0Denis Kenzior1-9/+1
We already check the id is valid in the get_icon function, there's no reason to re-check it.
2010-10-13sim: implement GetIconKristen Carlson Accardi1-0/+187
2010-09-21Fix multi-line comment style issuesJeevaka Badrappan1-6/+12
2010-09-09sim: Use sim_fs_check_versionDenis Kenzior1-0/+2
2010-09-09sim: Break out sim file reading into simfsDenis Kenzior1-710/+17
2010-09-09sim: Unify sim_read and sim_read_bytesDenis Kenzior1-40/+14
2010-09-09sim: read EFiidfKristen Carlson Accardi1-12/+293
EFiidf can be larger than 256 bytes, so allow callers to read portions of the EFiidf from a specified offset. Cache EFiidf files as blocks of 256 bytes so that it's not necessary to read the entire (potentially large) file.
2010-09-01sim: cleanup sim atom private structureDenis Kenzior1-20/+31
The number of elements was getting out of hand and out of order
2010-09-01sim: tweak efimg lengthDenis Kenzior1-1/+2
2010-08-31sim: Read EFsstYang Gu1-3/+37
2010-08-30sim: Turn around the order of argumentsDenis Kenzior1-7/+7
The void *user argument was first. It should be last instead to be consistent with the other watch functions.
2010-08-26sim: read EFimgKristen Carlson Accardi1-0/+50