Commit Graph

1506 Commits

Author SHA1 Message Date
Denis Kenzior 40904f655d simfs: Fix issue with check_cached
The only_info logic was inverted, causing us to always read from the
modem.
2010-10-22 12:11:26 -05:00
Denis Kenzior 107a38de85 sim: Pass dbus types
Can't really assume they're the same as glib types
2010-10-22 11:58:59 -05:00
Denis Kenzior 8b40f6c1a0 sim: Get rid of unneeded empty line 2010-10-22 11:57:18 -05:00
Denis Kenzior 39a3080a4b sim: Break out common FDN property signaling 2010-10-22 11:56:35 -05:00
Denis Kenzior 71255c49fb simfs: Use errno for simfs errors 2010-10-22 11:45:39 -05:00
Denis Kenzior 6ce608b01d simfs: No need to set these variables 2010-10-22 11:42:40 -05:00
Petteri Tikander 7de5e48df8 sim: check existence of imsi-code
For instance: when handling sim_get_properties
in PRE_SIM-state imsi is not received/stored.
2010-10-22 11:23:08 -05:00
Petteri Tikander d82600c893 sim: check if Fixed Dial is enabled in SIM-card
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-22 11:21:23 -05:00
Petteri Tikander d74e0b5ece simfs: retrieve only EF-info without EF-contents 2010-10-22 11:13:46 -05:00
Petteri Tikander 6d07c1cffe modem: add debugs to monitor modem state changes 2010-10-21 23:13:23 -05:00
Aki Niemi 56d46ae16b netreg: Allow strength notifys at all times 2010-10-21 21:39:41 +03:00
Aki Niemi 90ce04e0e1 radio settings: Fix string to enum mapping 2010-10-21 21:39:41 +03:00
Yang Gu 6394d5b442 stk: Support send ss response 2010-10-20 18:20:36 -05:00
Yang Gu af4d3ad756 stkutil: Add enum for additional error cause info
For terminal and supplementary services
2010-10-20 18:19:48 -05:00
Denis Kenzior 81bc8884b4 radio-settings: Get rid of unneeded casts 2010-10-20 17:59:21 -05:00
Denis Kenzior cbe433c9ee radio-settings: Fixup various style issues 2010-10-20 16:52:35 -05:00
Denis Kenzior b92662634d sim: Read EFust and EFest after phase is known 2010-10-19 14:20:57 -05:00
Denis Kenzior cfb3cd9647 simfs: Don't cache if phase is unknown 2010-10-19 14:07:41 -05:00
Denis Kenzior 04755acc3a sim: Fix setting the correct phase from EFphase 2010-10-19 14:07:41 -05:00
Denis Kenzior b75a5574f5 common: Fix mmi code to bearer class mappings
MMI services 22, 21, 20 and 26 were mapped incorrectly.  See the comment
in the code for more information and the thread 'Call Barring and MMI
Supplementary Service codes' on the oFono mailing list.
2010-10-19 12:09:30 -05:00
Denis Kenzior 5fe4694b21 common: Update the basic services in comments 2010-10-15 07:05:37 -05:00
Denis Kenzior 0564176a9c sim: Fix crash on sim re-insertion 2010-10-15 06:26:34 -05:00
Denis Kenzior aa42d954ed simfs: Make compile 2010-10-15 06:26:28 -05:00
Denis Kenzior 94cf7c3dd6 simutil: Remove unneeded enum 2010-10-15 02:14:45 -05:00
Petteri Tikander 1f2140dabe simutil: response-handler returns now also file-status 2010-10-15 02:01:34 -05:00
Aki Niemi 37d2edec1c Fix style problem 2010-10-14 15:37:37 +03:00
Aki Niemi 5a85a57cc3 sms: Implement text and datagram watch
Allow setting a watch for incoming text and datagram messages on the
sms atom.
2010-10-14 15:22:16 +03:00
Petteri Tikander 4d2eb64a71 simutil: add ID of EFadn 2010-10-14 05:41:07 -05:00
Denis Kenzior 6f54b55b0e stk: Add a debug to print the handled command type 2010-10-14 04:17:06 -05:00
Andrzej Zaborowski 404e0838da API for STK driver to signal executed commands
Some modems are able to handle some proactive commands in their
firmware or otherwise, if the command doesn't require input from user.
Nevertheles ofono may need to update internal state or notify the user
where necessary.  With this api the driver can notify core that a
command is being executed in the modem or that a command is finished
executing and the TERMINAL RESPONSE has been sent to SIM.  It would
also be possible for a driver to handle a command.
2010-10-14 04:17:02 -05:00
Andrzej Zaborowski 526cf25dc8 stkagent: Add PlayTone and LoopTone requests 2010-10-14 03:35:51 -05:00
Andrzej Zaborowski d9f8b13e18 stk: Simplify and add icon to alphaId api
The assumption is now that stk_alpha_id_set will handle NULL
or empty alphaIds or icons.
2010-10-14 03:18:28 -05:00
Denis Kenzior 2059fd289a stk: Make the stk properties not optional 2010-10-14 02:59:20 -05:00
Denis Kenzior 8820e18b53 stkagent: Handle NULL items in append_menu_items 2010-10-14 02:59:15 -05:00
Andrzej Zaborowski 6cb64e1343 stk: IdleModeIcon and MainMenuIcon properties 2010-10-14 02:31:22 -05:00
Andrzej Zaborowski 9da71c67ed stk: Rename sms_submit_req to extern_req 2010-10-14 02:30:32 -05:00
Denis Kenzior 52fade93ac stk: Reflow stk_menu_create slightly 2010-10-14 01:38:52 -05:00
Andrzej Zaborowski 5b1f4d1216 stk: Add icon ID information in stk_menu 2010-10-14 01:13:56 -05:00
Andrzej Zaborowski 198dcc2c28 stk: Pass icon IDs in stk agent request parameters 2010-10-14 00:58:43 -05:00
Denis Kenzior a4d90fd4eb sim: Refactor iidf reading
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-13 08:41:41 -05:00
Denis Kenzior ccf4b34522 sim: Use ay return signature for GetIcon 2010-10-13 05:04:47 -05:00
Denis Kenzior e828bc767c simfs: Also clean out image files
When cleaning cache
2010-10-13 05:04:47 -05:00
Denis Kenzior bd8c7e92bb simfs: Fix the number of bytes copied
In block reading operations we read too much when the number of bytes to
read is smaller than the size of the file.
2010-10-13 05:04:47 -05:00
Denis Kenzior e755292874 simfs: Add some debug statements 2010-10-13 05:04:47 -05:00
Denis Kenzior 9ed8beba77 simfs: Move buffer back to the op structure
This was causing problems when multiple sim writes were being issued
(and thus bug #8265).
2010-10-13 05:04:46 -05:00
Denis Kenzior 56e0a7644f simfs: Reflow to get rid of unnecessary label 2010-10-13 05:04:46 -05:00
Denis Kenzior 90f531768f sim: Use g_dbus_create_reply
Instead of compound statements
2010-10-13 05:04:46 -05:00
Denis Kenzior b750de3ec6 sim: Don't re-check for id != 0
We already check the id is valid in the get_icon function, there's no
reason to re-check it.
2010-10-13 05:04:46 -05:00
Kristen Carlson Accardi 920ee13a2b simutil: add file type for EFimg 2010-10-13 05:04:46 -05:00
Kristen Carlson Accardi 42c29c795f sim: implement GetIcon 2010-10-13 05:04:46 -05:00