11
0
Fork 0
mirror of git://git.sysmocom.de/ofono synced 2024-08-07 13:52:09 +00:00
Commit graph

2273 commits

Author SHA1 Message Date
Denis Kenzior
c5a42cfabe smsutil: Fix uninitialized optional elements
sms_decode was never memsetting the returned structure, so if any
optional elements were present in the SMS (e.g. status report) then the
structure was not completely initialized.
2010-12-02 07:53:54 -06:00
Denis Kenzior
ac72349017 sms: Use the right union member for DCS check 2010-12-02 07:49:49 -06:00
Guillaume Lucas
8b0307a621 stk: Add busy error for the display text command
According to the sequence 1.2 of the ETSI TS 102 384 a busy
screen error should be returns for the display text proactive
command when the ME is not able to display the text.
2010-11-30 08:20:42 -06:00
Jeevaka Badrappan
5154d5e38d sim: be more paranoid for triggering EFest read 2010-11-29 14:57:04 -06:00
Lucas De Marchi
b210838e87 core: explicitly compare pointers to NULL
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-29 13:27:15 -06:00
Lucas De Marchi
42bafa260a simutil: explicitly compare pointers to NULL
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-29 13:12:04 -06:00
Lucas De Marchi
7484d799c9 simfs: explicitly compare pointers to NULL
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-29 13:09:50 -06:00
Lucas De Marchi
d77999cc59 util: explicitly compare pointers to NULL
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-29 13:05:16 -06:00
Lucas De Marchi
d725e79682 stkutil: explicitly compare pointers to NULL
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-29 13:04:35 -06:00
Lucas De Marchi
8e0f9aab9e smsutil: explicitly compare pointers to NULL
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-29 13:04:04 -06:00
Jeevaka Badrappan
85cbc6926e simutil: Add EFcfis and EFcphs-cff file Ids 2010-11-27 11:49:25 -06:00
Jeevaka Badrappan
364309b9db call-volume: Minor coding style fix 2010-11-26 15:23:57 -06:00
Jeevaka Badrappan
2151ac0d5c audio-settings: Remove unwanted check 2010-11-26 15:04:17 -06:00
Jeevaka Badrappan
bbe283cebc call-volume: Remove extra line at EOF 2010-11-26 15:00:54 -06:00
Yang Gu
c11d3e95cb network: Use bit as size instead of byte 2010-11-26 14:02:02 -06:00
Rémi Denis-Courmont
e7c4442c69 core: Remove stray newlines in messages sent to log 2010-11-26 13:50:15 -06:00
Jeevaka Badrappan
1b9081567a call-volume: Fix dbus error message type 2010-11-26 13:43:29 -06:00
Denis Kenzior
e773625ce5 ctm: fix minor style issues 2010-11-26 13:08:48 -06:00
Lucas De Marchi
df2984a724 ctm: Add initial CTM atom implementation 2010-11-26 13:08:48 -06:00
Denis Kenzior
cd281f4454 stkutil: Minor style fixes 2010-11-25 17:58:37 -06:00
Guillaume Lucas
9b690aad40 stkutil: Use sms_dcs_decode in decode_text
This is a much more pedantic version that can be used to
retrieve the text character set.
2010-11-25 17:57:26 -06:00
Andrzej Zaborowski
3d1a4ec239 stk: use bigger timeout in DisplayText
When the wait for user confirmation bit is set.
2010-11-25 16:46:33 -06:00
Jeevaka Badrappan
175ac85942 call-forwarding: skip property change data and fax 2010-11-24 15:54:46 -06:00
Lucas De Marchi
b1c159e6f6 text-telephony: add new interface to feature map 2010-11-24 09:00:40 -06:00
Rémi Denis-Courmont
e9d80e40ac common: remove redundant predicate
If the first character is a plus sign, then it is not a nul, then
the string length is true anyway.
2010-11-23 06:48:57 -06:00
Gustavo F. Padovan
b79b64439f dbus: Add __ofono_error_access_denied 2010-11-23 05:06:29 -06:00
Denis Kenzior
5774e9fa53 stk: Minor style fix 2010-11-23 03:08:56 -06:00
Andrzej Zaborowski
55e1ca2e1c stk: Handle null Text field
Add a NULL check in dbus_apply_text_attributes because in some places
(like DisplayText handler) we call it without checking and we just check
the return value once.
2010-11-23 03:08:51 -06:00
Denis Kenzior
d1de85e5a4 call-settings: Fix style issues 2010-11-22 16:32:27 -06:00
Denis Kenzior
6c2099fd8e call-settings: fix CLIR Invocation and Suppression
According to 22.030 the *31# version is used to suppress CLIR
and #31# version is used to invoke CLIR.
2010-11-22 16:29:46 -06:00
Denis Kenzior
80a8fd1a64 modem: Don't notify online watches the first time
We should not notify the online watches when we enter the OFFLINE state
for the first time.  We should only do so when we go from ONLINE state
into the OFFLINE state.
2010-11-22 09:56:22 -06:00
Denis Kenzior
60aceb3e71 modem: Miscellaneous style fixes 2010-11-22 09:54:25 -06:00
Andras Domokos
d7fb7da021 modem: add modem online-offline watch 2010-11-22 09:53:41 -06:00
Jeevaka Badrappan
2d0cb92155 src: coding style fixes - rule M6 2010-11-22 05:07:52 -06:00
Jeevaka Badrappan
4988741107 simutil: coding style fixes - rule M6 2010-11-22 05:06:38 -06:00
Jeevaka Badrappan
b4353d15ea simfs: coding style fixes - rule M6 2010-11-22 05:06:21 -06:00
Jeevaka Badrappan
58b3d888c0 stkutil: coding style fixes - rule M6 2010-11-22 05:05:52 -06:00
Jeevaka Badrappan
e6e27406ae smsutil: coding style fixes - rule M6 2010-11-22 05:05:31 -06:00
Jeevaka Badrappan
627ec8b0c3 util: coding style fixes - rule M6 2010-11-22 05:05:07 -06:00
Marcel Holtmann
d74471e4d9 modem: Fix small coding style issue 2010-11-19 11:40:31 +01:00
Jeevaka Badrappan
dfa7cf7145 util: Remove extra tab 2010-11-17 10:03:26 -06:00
Denis Kenzior
5625c9728f modem: Fix up doc typo 2010-11-17 08:26:26 -06:00
Gustavo F. Padovan
8ae8deb44f Simplify ofono_modem_set_powered() logic 2010-11-15 07:39:16 -06:00
Denis Kenzior
5c9a03b480 sms: Fix up comment style and wording 2010-11-10 09:17:19 -06:00
Denis Kenzior
c18e01be16 cbs: Minor style fixes 2010-11-10 09:15:51 -06:00
Andrzej Zaborowski
32e4eae814 cbs: CBS-PP download must be enabled in sst / est 2010-11-10 09:10:48 -06:00
Andrzej Zaborowski
45b944d84b sms: SMS-PP download must be enabled in sst / est 2010-11-10 09:09:55 -06:00
Andrzej Zaborowski
3083841f72 sim: Add sim_service_available()
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-10 09:09:05 -06:00
Andrzej Zaborowski
028c8c011b sms: Handle "USIM Download" SMS type. 2010-11-08 13:36:47 -06:00
Andrzej Zaborowski
65159c2f0b stk: API for SMS Point-to-Point download to UICC
The callback returns the TP-User-Data element content of the RP-ACK or
RP-ERROR message, returned by the UICC.
2010-11-08 13:36:23 -06:00
Pekka Pessi
32b333059b gprs: NULL-safe ofono_gprs_context_remove()
Check for NULL in one place.
2010-11-08 13:03:16 -06:00
Gustavo F. Padovan
24032bd526 dbus: Use OFONO_ERROR_INTERFACE define
Instead of the legacy DBUS_GSM_ERROR_INTERFACE.  The new name is more
generic, which make more sense.
2010-11-08 11:36:44 -06:00
Denis Kenzior
d7403d521b sim: Check both EFust and EFest for FDN & BDN
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-05 09:14:32 -05:00
Denis Kenzior
e613c686a6 sim: Don't read EFest if the file is not available 2010-11-05 09:14:32 -05:00
Guillaume Lucas
aa2c87886f sim: use mask for check of sim file status
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-11-05 09:14:32 -05:00
Denis Kenzior
78cac8472f smsutil: Use entire range of ref / port addresses 2010-11-04 11:09:11 -05:00
Denis Kenzior
4815d84789 sms: Call the txq_submit queued callback 2010-11-04 10:25:42 -05:00
Denis Kenzior
857e2d046f sms: Separate history from dbus flags in txq_submit 2010-11-04 10:25:42 -05:00
Denis Kenzior
3436c58fac sms: Refactor __ofono_sms_txq_submit 2010-11-04 10:25:42 -05:00
Denis Kenzior
4a2111347f sms: Add __ofono_sms_message_path_from_uuid 2010-11-04 10:25:41 -05:00
Denis Kenzior
0edb5e3645 sms: add __ofono_sms_get_next_ref 2010-11-04 10:25:41 -05:00
Denis Kenzior
8b54166523 smsutil: Remove traces of ref_offset variable 2010-11-02 15:56:30 -05:00
Denis Kenzior
2a18afa994 sms: Fix unused variable warning 2010-11-02 15:56:22 -05:00
Denis Kenzior
4c659f5e69 ofono.conf: Punch hole for SmartMessagingAgent 2010-11-02 15:08:24 -05:00
Denis Kenzior
2cc92d80e6 smsutil: Add sms_datagram_prepare 2010-11-02 14:58:21 -05:00
Denis Kenzior
e29d1338b9 sms: Update to the new smsutil api 2010-11-02 14:58:21 -05:00
Denis Kenzior
57d847692c smsutil: Get rid of ref_offset in sms_text_prepare
The reason for this parameter has ceased to exist quite a while ago.
Namely when the API allowed multiple SMS recipients.  We prepared a
single set of segments and then reset the to address and reference.  We
no longer allow multiple recipients and none of this is now needed.
2010-11-02 14:58:21 -05:00
Denis Kenzior
348bdb7f1d sms: Don't crash when encoding fails 2010-11-02 12:15:53 -05:00
Denis Kenzior
a05ebc93ab smsutil: Additional sanity checks for decode_scts 2010-11-02 12:15:53 -05:00
Denis Kenzior
9d52fd0da0 ofono.conf: Punch hole for PushNotificationAgent 2010-11-02 12:15:53 -05:00
Denis Kenzior
8f5d8280b6 sms: Minor style fix 2010-11-02 12:15:53 -05:00
Denis Kenzior
f5db7564e8 sms: Left shift 8-bit ports by 16
These are less commonly used so make them not interfere with 16 bit
ports
2010-11-02 12:15:53 -05:00
Denis Kenzior
ac731f2071 smsagent: Add smsagent implementation
Based on the patches by Aki Niemi
2010-11-02 12:15:53 -05:00
Mika Liljeberg
d282509a9d main: add capabilities for phonet
Phonet sockets require CAP_SYS_ADMIN and SO_BINDTODEVICE socket
option requires CAP_NET_RAW.
2010-11-01 17:27:46 +01:00
Denis Kenzior
5c6144f359 stk: Handle Send SS in handled_notify 2010-10-28 10:37:05 -05:00
Denis Kenzior
bef003059e radio-settings: Don't check for cached
Checking for this flag does not have the desired effect, or rather it
has other side-effects (e.g. setting the property twice before
GetProperties).  oFono discourages spurious signal emission.
2010-10-27 22:26:15 -05:00
Denis Kenzior
107f6ee731 radio-settings: Add extra newlines
To be compliant with the coding style
2010-10-27 22:26:15 -05:00
Mika Liljeberg
a4983d99eb radio settings: add FastDormancy property 2010-10-27 22:26:15 -05:00
Johan Hedberg
aed4eac9fa Fix string array memory leaks during plugin loading 2010-10-28 01:50:26 +02:00
Denis Kenzior
bbe6eb6d4e gprs-context: Replace TYPE_INVALID with TYPE_ANY 2010-10-27 12:39:46 -05:00
Denis Kenzior
51aecde6cc stk: Remove ofono_stk_terminal_response_sent_notify
Not needed for now.  We can always put this back in later if need be.
2010-10-27 12:10:17 -05:00
Andrzej Zaborowski
77c20d8a27 stk: Handle more commands in handled_notify 2010-10-27 12:00:42 -05:00
Marcel Holtmann
99bd7d0399 gprs: Use common function for default name of default Internet context 2010-10-27 18:14:50 +02:00
Pekka Pessi
de96428ca2 gprs-context: add IMS connection type 2010-10-27 16:57:57 +02:00
Marcel Holtmann
4e72af9b19 gprs: Add host route to the configured MMS proxy 2010-10-27 16:09:27 +02:00
Marcel Holtmann
534d1ccec6 gprs: Set IP address for GPRS contexts of type MMS 2010-10-27 15:25:25 +02:00
Marcel Holtmann
87cd9f57b3 gprs: Add support for exposing proxy information for MMS context 2010-10-27 15:09:33 +02:00
Marcel Holtmann
c409dacbc8 gprs: Add support for selecting GPRS context drivers based on types 2010-10-27 14:43:32 +02:00
Marcel Holtmann
a46fbe493e main: Enable active capability dropping 2010-10-27 14:03:13 +02:00
Marcel Holtmann
8ff5d6d6a9 gprs: Add flag to track usage of GPRS context drivers 2010-10-27 13:56:12 +02:00
Marcel Holtmann
c7a5210be6 gprs: Extract GPRS context assignment into separate function 2010-10-27 11:53:37 +02:00
Marcel Holtmann
b3d18d5115 gprs: Add support for setting GPRS context type 2010-10-27 11:34:54 +02:00
Marcel Holtmann
6cb86931e3 gprs: Make GPRS context type a public enum 2010-10-27 11:28:52 +02:00
Marcel Holtmann
0df5a60a0c gprs: Load stored MMS Proxy and MMSC settings 2010-10-27 00:51:51 +02:00
Marcel Holtmann
20f3a3adb2 gprs: Use better default name for context creation 2010-10-26 23:19:54 +02:00
Marcel Holtmann
768d02a881 gprs: Add support for storing MMS Proxy and MMSC settings 2010-10-26 23:14:58 +02:00
Marcel Holtmann
483663eeed gprs: Assign GPRS atom to GPRS context atom
If the GPRS atom is not assigned to the GPRS context atom, then possible
network triggered activation crashes.
2010-10-26 14:03:47 +02:00
Denis Kenzior
d9ad66ab38 stk: Default to general beep if no tone is provided
According to section 6.6.5 of 102.223
2010-10-25 17:42:41 -05:00
Andrzej Zaborowski
b15bcb4a40 stk: Handle the Play Tone proactive command. 2010-10-25 17:23:12 -05:00
Andrzej Zaborowski
47c3b3f52a stk: Add duration_to_msecs to reduce duplication. 2010-10-25 17:21:23 -05:00
Andrzej Zaborowski
e0663bd0ed voicecall: Limit tone string length per request.
Also change to avoid memcpying into a buffer.
2010-10-25 17:20:17 -05:00
Denis Kenzior
ee4879d196 gprs: Return busy if ops are potentially colliding 2010-10-25 16:32:49 -05:00
Denis Kenzior
180f765ebe gprs: Implement DeactivateAll() 2010-10-25 16:32:49 -05:00
Denis Kenzior
1677e19ab5 manager: Don't show modems which are not registered 2010-10-25 16:32:49 -05:00
Denis Kenzior
cfa956596c modem: Add ofono_modem_is_registered 2010-10-25 16:32:49 -05:00
Denis Kenzior
d168c35b99 gprs: Support multiple active contexts 2010-10-25 14:45:12 -05:00
Denis Kenzior
dc43b56154 sim: Fix minor style issue 2010-10-25 10:39:09 -05:00
Jeevaka Badrappan
233bd42820 sim: add barred dialing support 2010-10-25 10:39:09 -05:00
Jeevaka Badrappan
06839da715 simutil: add Efbdn fileid to sim_fileid enum 2010-10-25 10:39:09 -05:00
Marcel Holtmann
3342af770a gprs: Handle failure of GPRS context atom drivers
The GRPS context atom drivers can return an error from their probe
callbacks. In that case gc->driver is NULL and will cause a crash
when trying to activate a context. So check that there is actually
a driver attached to that GPRS context.
2010-10-24 17:14:16 +02:00
Jeevaka Badrappan
9bebe654e3 simfs: Fix issue with sim_fs_op_error 2010-10-24 09:11:15 -05:00
Denis Kenzior
e4a0ba26a0 stk: Nitpick some newline issues 2010-10-22 22:39:56 -05:00
Andrzej Zaborowski
6cabaec726 stk: Apply STK text attributes as html 2010-10-22 22:33:54 -05:00
Denis Kenzior
d4801a306c stk: use null character instead of 0
Slightly better readability
2010-10-22 22:28:04 -05:00
Denis Kenzior
1cc2c6b1ce stk: Remove reference to positive EINVAL
Move it to the original call where it belongs
2010-10-22 22:25:20 -05:00
Andrzej Zaborowski
75ce3c7c23 stk: Handle the Send DTMF proactive command
The default_agent_notify and session_agent_notify changes below are
needed for respond_on_exit commands to be able to free up their
resources, reset alpha id, etc.  Commands other than Send DTMF that
use respond_on_exit are all associated with a agent method call and
get notified about agent exit in the callback.
2010-10-22 22:00:04 -05:00
Andrzej Zaborowski
0dd1e9ed07 voicecall: __ofono_voicecall_tone_send internal api
This provides a way for other atoms to send DTMF tones during a call.
It is assumed that vc->driver->send_tone returns only after the tones
have finished being emitted.

In this version Dbus DTMF requests are in the same queue as STK
requests.
2010-10-22 21:59:11 -05:00
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
Denis Kenzior
38fad92882 simfs: Group lines logically 2010-10-13 05:04:46 -05:00
Denis Kenzior
096634e798 simfs: If buffer alloc fails, error out 2010-10-13 05:04:46 -05:00
Denis Kenzior
f4c66f67df simfs: Don't try to read image cache imsi is null 2010-10-13 05:04:46 -05:00
Denis Kenzior
413c200dfb simfs: Make image cache logic a bit easier to read 2010-10-13 05:04:46 -05:00
Kristen Carlson Accardi
19fcae699c simfs: cache images 2010-10-13 05:04:46 -05:00
Pekka Pessi
7a36cbfd70 voicecall: check g_try_new0 return value 2010-10-10 06:06:54 -05:00
Pekka Pessi
ea51479fcd voicecall: remove dial_request_finish() cb param
There is no need for callback param anymore.
2010-10-10 06:06:09 -05:00
Pekka Pessi
e21ad3086f voicecall: Check dial requests in voicecall_is_busy
Return true if a call is being dialed by stk.

Use __ofono_voicecall_is_busy() in __ofono_voicecall_dial().
2010-10-10 06:02:15 -05:00
Pekka Pessi
b654e723c7 ussd: pass call_in_progress to valid_ussd_string
Query the voicecall atom whether a call is in progress and pass this
information along to valid_ussd_string.
2010-10-10 05:52:30 -05:00
Pekka Pessi
919e305aa1 common: fixup logic of valid_ussd_string()
The logic of valid_ussd_string was not quite correct as it didn't take
care of size 1 USSD strings.  In addition, call_in_progress parameter is
passed in to take care of size 2 USSD strings which might start with a
'1' according to the rules of 22.030.

The comment about USSD routing is removed, it is out of scope of oFono.
The cellular network routes the USSD requests based on the rules laid
out in the 22.090, however, any string that can be encoded according to
the rules of 23.030 is valid USSD.
2010-10-10 05:48:25 -05:00
Alexander Kanavin
034a13f572 Fix COLR typo 2010-10-07 13:11:18 +02:00
Alexander Kanavin
5ddaed064d Fix typo in SS enum to string conversion 2010-10-07 13:10:09 +02:00
Pekka Pessi
f1be4b2375 ussd: check g_try_new0 return value 2010-10-06 17:27:20 +02:00
Pekka Pessi
907e14e4ae sms: fix type error 2010-10-05 13:53:12 +02:00
Pekka Pessi
adb8219090 Support -p and -P options with list of plugins 2010-10-04 17:34:50 +02:00
Jeevaka Badrappan
dac67fe363 stk: Additional info for failed Send USSD case 2010-10-02 17:20:08 -05:00
Marcel Holtmann
17f7fffa2a build: Add support for systemd configuration 2010-10-02 20:20:31 +02:00
Marcel Holtmann
a499582993 build: Add D-Bus service autostart support 2010-10-02 17:57:19 +02:00
Marcel Holtmann
242639737a audio: Add helper to get modem information from audio settings 2010-10-01 07:28:39 +02:00
Marcel Holtmann
2b3840e95c audio: Add support for notifying about audio mode 2010-10-01 07:22:45 +02:00
Marcel Holtmann
3fd4af4fc2 audio: Update audio settings API for active notification 2010-10-01 07:14:59 +02:00
Marcel Holtmann
760e1e4c04 core: Add support for audio settings interface 2010-09-29 23:57:39 +09:00
Denis Kenzior
f4a0b9fa20 modem: Add modemwatch watchlist functions
Used for registering to modem added & removed notifications
2010-09-28 22:49:22 -05:00
Denis Kenzior
1db4300467 ofono: Don't go over 80 characters per line 2010-09-28 22:43:31 -05:00
Denis Kenzior
f79ac9df1b ssn: The id is unsigned 2010-09-28 22:43:09 -05:00
Denis Kenzior
be56f200d8 modem: Minor style fix 2010-09-28 22:13:02 -05:00
Denis Kenzior
d70d422866 voicecall: Set single_call correctly 2010-09-28 16:59:15 -05:00
Aki Niemi
0eee1c6727 sms: Fix 8bit port handling 2010-09-27 19:09:09 -05:00
Yang Gu
a9aac83e33 ss: Use function to judge if it's busy 2010-09-26 19:50:50 -05:00
Marcel Holtmann
df0a431a41 stk: Fix missing inlude for encode_hex_own_buf 2010-09-24 09:37:14 +09:00
Denis Kenzior
a69ae76207 stk: Add skeleton Refresh handler 2010-09-23 13:17:40 -05:00
Denis Kenzior
1bdf68e133 simfs: Fix freeing a NULL queue 2010-09-22 22:39:29 -05:00
Denis Kenzior
c12632dfef smsutil: Reflow the fuzzy matching code
Make a bit more readable
2010-09-22 16:27:30 -05:00
Petteri Tikander
6c1ec61603 smsutil: add fuzzy address check for status report 2010-09-22 12:20:52 -05:00
Jeevaka Badrappan
4196182770 Fix multi-line comment style issues 2010-09-21 21:16:01 -05:00
Denis Kenzior
348a891665 sms: Update signals for introspection 2010-09-21 21:15:08 -05:00
Denis Kenzior
8dbaf29ffc sms: Tweak behavior of txq_submit
If history tracking is desired, expose over D-Bus as well
2010-09-21 21:15:07 -05:00
Denis Kenzior
82ff49c781 sms: Emit MessageRemoved 2010-09-21 21:15:07 -05:00
Denis Kenzior
8ea7db0416 sms: Emit MessageAdded 2010-09-21 21:15:07 -05:00
Denis Kenzior
0e76043303 sms: Implement GetMessages method 2010-09-21 21:15:07 -05:00
Denis Kenzior
aa780bc935 sms: Initial Message interface implementation 2010-09-21 21:15:07 -05:00
Lucas De Marchi
e57df97584 Simplify linker script
Version linker scripts support function names and globs, so there's no
need to rely on nm tool to gather the exported symbols.
2010-09-21 23:25:50 +09:00
Jeevaka Badrappan
64b0af24bd stk: Language Notification proactive cmd support 2010-09-21 08:44:48 -05:00
Denis Kenzior
251ac0ebd2 sms: Update to the new history API 2010-09-21 08:44:48 -05:00
Denis Kenzior
04634af6fe common: Implement ofono_uuid_to_str 2010-09-21 08:44:48 -05:00
Denis Kenzior
dbd7639d25 history: Update to the new SHA1 based sms id API 2010-09-21 08:44:48 -05:00
Denis Kenzior
03c8177208 sms: Update to the new status report assembly api 2010-09-21 08:44:47 -05:00
Denis Kenzior
e345a6b579 smsutil: update SR assembly to use SHA1 msg ids 2010-09-21 08:44:47 -05:00
Denis Kenzior
02cca88bcc sms: Get rid of NextMessageId setting 2010-09-21 08:44:47 -05:00
Denis Kenzior
b086f57ec0 sms: Reflow manager methods table 2010-09-21 08:44:47 -05:00
Denis Kenzior
016f168f47 sms: Refactor __ofono_sms_txq_submit 2010-09-21 08:44:47 -05:00
Denis Kenzior
63c8b720fe sms: Refactor txq_entry_create 2010-09-21 08:44:47 -05:00
Denis Kenzior
9d52a9d215 sms: Refactor outgoing sms id generator 2010-09-21 08:44:47 -05:00
Inaky Perez-Gonzalez
1683c03140 sms: replace sequential SMS message ID with hash
The SMS messages's ID number (used for history, D-Bus naming and
storage in external database) is updated to use a hash (based on PDUs
and submission time) to further avoid ID collision concerns.
2010-09-21 08:44:47 -05:00
Denis Kenzior
852a65bcdd sms: Compute SHA1 based UUID for incoming messages 2010-09-21 08:44:47 -05:00
Pekka Pessi
217c161cf5 ussd: debug log notifys 2010-09-16 13:46:25 -05:00
Denis Kenzior
41a55beef3 stk: Refactor Send USSD error handling 2010-09-15 12:03:02 -05:00
Denis Kenzior
d966b6593b stk: Fix style issues 2010-09-15 11:58:29 -05:00
Denis Kenzior
a0d476281d stkutil: Don't include USSD text unless needed 2010-09-15 11:58:00 -05:00
Jeevaka Badrappan
47ddc4b70d stk: Handling of Send USSD proactive command 2010-09-15 11:46:23 -05:00
Denis Kenzior
98e2b6b426 ussd: Give proper errors 2010-09-15 11:45:18 -05:00
Denis Kenzior
165fa52cdf ussd: No need for these structure members 2010-09-15 11:37:23 -05:00
Jeevaka Badrappan
77361655c0 ussd: Add __ofono_ussd_initiate internal api 2010-09-15 11:36:03 -05:00
Denis Kenzior
3114a907ff ussd: Fix up minor style issue 2010-09-15 10:03:53 -05:00
Jeevaka Badrappan
eb425a281f ussd: Driver API changes
To support 8bit and UCS2 formatted USSDs as well as Send USSD Proactive
Command.
2010-09-14 17:01:49 -05:00
Denis Kenzior
adc0a1bd6c util: Clean up style issues 2010-09-14 12:00:28 -05:00
Denis Kenzior
a5d0933b22 smsutil: Clean up ussd_encode 2010-09-14 11:54:57 -05:00
Denis Kenzior
ebcfe67d91 util: Clean up some coding style violations 2010-09-14 11:49:25 -05:00
Denis Kenzior
1a340c7cf1 util: Return the number of bytes read, not chars
To be consistent with the documentation header and other functions of
this type
2010-09-14 11:45:11 -05:00
Jeevaka Badrappan
7cf26fef9d util: Add UCS2 to GSM 7bit converion function 2010-09-14 09:58:49 -05:00
Jeevaka Badrappan
fd9570500e smsutil: Add USSD encoding function 2010-09-14 09:58:45 -05:00
Lucas De Marchi
3783026372 Fix common misspelling in source files
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspelling:

reponsible->responsible
2010-09-14 16:01:47 +09:00
Zhenhua Zhang
b02f8cfbd6 Add support to enable/disable specific plugin
Support to load or not load specific plugin when ofono is started.
E.g., use 'ofonod -P hfp' to disable hfp plugin.
2010-09-11 12:41:27 +02:00
Jeevaka Badrappan
e6fbe5e75d stkutil: Add build_dataobj_ussd_text
for ussd specific 'Text' Data object handling
2010-09-10 15:21:20 -05:00
Mika Liljeberg
1e139eb1ce gprs: add Suspended property 2010-09-10 10:51:53 -05:00
Petteri Tikander
b9d59daaed smsutil: use unsigned printf format for msgid 2010-09-10 10:32:33 -05:00
Petteri Tikander
eea8dfcc84 smsutil: remove unused parameter 2010-09-10 10:32:18 -05:00
Petteri Tikander
df058085ea smsutil: status_report_expiration 2010-09-10 10:31:10 -05:00
Denis Kenzior
b7f1733fe4 voicecall: Simplify logic 2010-09-09 21:57:15 -05:00
Andrzej Zaborowski
52161db428 stk: Fix User Cancel response to Set Up Call
One of the clean-up commits changed the semantics of the dial request
callback's parameter (NULL if call setup failed, non-NULL if success
or user cancelled).
2010-09-09 21:45:22 -05:00
Denis Kenzior
ced5d30850 manager: Add GetModems method 2010-09-09 14:03:43 -05:00
Denis Kenzior
0d2b9cb5f4 modem: Add __ofono_modem_foreach 2010-09-09 14:00:09 -05:00
Denis Kenzior
0f994b7ea3 manager: Add ModemRemoved signal 2010-09-09 13:49:21 -05:00
Denis Kenzior
ffcb821ccf manager: Add ModemAdded signal 2010-09-09 13:44:59 -05:00
Denis Kenzior
4a60d69e98 modem: Remove unneeded functions 2010-09-09 13:38:20 -05:00
Denis Kenzior
7461abbe23 modem: Break out append_modem_properties 2010-09-09 13:34:36 -05:00
Denis Kenzior
3bf4209813 stkutil: Trivial style issue 2010-09-09 10:25:10 -05:00
Jeevaka Badrappan
f27528e18b stkutil: Add Send USSD-specific Text dataobj
Send USSD terminal response re-uses the 'Text' data object, however it
passes around binary data structures.  We make an exception specifically
for this case and invent a new stk_ussd_text data structure that is
handled separately from simple STK text.
2010-09-09 10:17:33 -05:00
Jeevaka Badrappan
aee0f39231 stkutil: Add Send USSD specific result codes 2010-09-09 10:09:00 -05:00
Jeevaka Badrappan
0834a7c18d call-settings: Add __ofono_call_settings_is_busy 2010-09-09 10:08:47 -05:00
Jeevaka Badrappan
0741cc8cb2 call-forwarding: Add __ofono_call_forwarding_is_busy 2010-09-09 10:08:37 -05:00
Jeevaka Badrappan
b0be5779b8 call-barring: Add __ofono_call_barring_is_busy 2010-09-09 10:08:22 -05:00
Yang Gu
58b5303c08 call-settings: Check if ussd is busy 2010-09-09 09:02:05 -05:00
Yang Gu
e24d1d1285 call-forwarding: Check if ussd is busy 2010-09-09 09:01:52 -05:00
Yang Gu
8e03a47995 call-barring: Check if ussd is busy 2010-09-09 09:01:28 -05:00
Yang Gu
41d38d76bc ussd: Add __ofono_ussd_is_busy
Send SS requires Call Forwarding / Call Settings / Call Barring to check
whether USSD is currently busy.  If it is, then the SIM should be
notified appropriately.

We introduce a function __ofono_ussd_is_busy to help with this.
2010-09-09 08:57:36 -05:00
Denis Kenzior
cd8df455e1 sim: Use sim_fs_check_version 2010-09-09 08:50:29 -05:00
Denis Kenzior
997269a773 simfs: Add sim_fs_check_version
Used to blow away older simfs versions
2010-09-09 08:50:29 -05:00
Denis Kenzior
fc1e3a7da4 simfs: Simplify logic 2010-09-09 08:50:28 -05:00
Denis Kenzior
5754eaf7e9 sim: Break out sim file reading into simfs 2010-09-09 08:50:28 -05:00
Denis Kenzior
565bf22729 stkutil: Fixup whitespace corruption 2010-09-09 08:50:28 -05:00
Denis Kenzior
e3bd339e16 sim: Unify sim_read and sim_read_bytes 2010-09-09 08:50:28 -05:00
Kristen Carlson Accardi
95d957b62e sim: read EFiidf
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-09 08:45:32 -05:00
Aki Niemi
ff093fb6d3 Fix wrong code point in Portuguese table 2010-09-09 16:30:21 +03:00
Aki Niemi
2cb4d96793 Default to using 8bit SMS reference numbers 2010-09-09 16:30:00 +03:00
Aki Niemi
35cfb432d4 Fix adding 8bit reference number 2010-09-03 09:10:09 -05:00
Petteri Tikander
95fc8bee72 smsutil: storing/loading sms status report over reboot 2010-09-01 13:32:28 -05:00
Petteri Tikander
295ae2dc04 smsutil: style fix 2010-09-01 12:09:19 -05:00
Petteri Tikander
c7473aa7da smsutil: use DECLARE_SMS_ADDR_STR
in sms_assembly_backup_free
2010-09-01 12:07:28 -05:00
Denis Kenzior
694847377d voicecall: Remove unusued MULTI_RELEASE flag 2010-09-01 12:07:01 -05:00
Denis Kenzior
4b43650116 sim: cleanup sim atom private structure
The number of elements was getting out of hand and out of order
2010-09-01 12:06:59 -05:00
Denis Kenzior
0cf73b73eb sim: tweak efimg length 2010-09-01 12:06:56 -05:00
Denis Kenzior
2a2fd1d036 simutil: Fix minor whitespace corruption 2010-08-31 13:08:31 -05:00
Yang Gu
d43b2c0a61 sim: Read EFsst 2010-08-31 13:07:54 -05:00
Denis Kenzior
88024972df modem: Skip waiting for sim_ready if no sim atom
For modems that do not have a SIM atom (e.g. HFP, DUN) we should skip
waiting for the sim_ready notification that will never arrive.
2010-08-30 14:32:08 -05:00
Denis Kenzior
4292b2dbed sim: Turn around the order of arguments
The void *user argument was first.  It should be last instead to be
consistent with the other watch functions.
2010-08-30 14:29:34 -05:00
Denis Kenzior
b74c9fb0c6 modem: Reset unregister when atom is unregistered 2010-08-30 13:04:15 -05:00
Denis Kenzior
31b52123db modem: Fix turning off modem in immediate case
If the driver does not return EINPROGRESS we don't set the modem to the
off state properly
2010-08-30 12:12:13 -05:00
Denis Kenzior
745477f0d4 modem: minor style fix 2010-08-30 12:09:38 -05:00
Denis Kenzior
afd0611ff8 voicecall: Fix crash during cleanup 2010-08-30 10:34:21 -05:00
Denis Kenzior
c92a31ac3a voicecall: Cleanup dial request when removing atom 2010-08-27 19:06:38 -05:00
Denis Kenzior
605d720bd4 voicecall: Refactor ofono_voicecall_busy 2010-08-27 19:06:36 -05:00
Denis Kenzior
e760b59ce9 voicecall: Switch to unsigned 2010-08-27 19:01:44 -05:00
Denis Kenzior
ce79af6e5c stk: setup call did not handle agent disappearance 2010-08-27 19:01:44 -05:00
Denis Kenzior
07d576bdca stk: Free select item menu
If calling the agent failed for some reason
2010-08-27 19:01:44 -05:00
Denis Kenzior
f528e5d566 stk: Reset cancel_cmd to NULL 2010-08-27 19:01:43 -05:00
Denis Kenzior
159903cc53 stk: set cancel_cmd only if agent was called 2010-08-27 19:01:43 -05:00
Denis Kenzior
ed562ba2b0 voicecall: Cleanup dial request init / finish 2010-08-27 19:01:41 -05:00
Andrzej Zaborowski
9e830e3cc8 stk: Handle the Set Up Call proactive command 2010-08-27 12:57:01 -05:00
Andrzej Zaborowski
4a9a985c9d voicecall: add __ofono_voicecall_dial internal api
The callback is only invoked when the call is CONNECTED (becomes
active).  Cancel ensures that the callback will not be called and
does nothing more in this version, it's an open question if we
want to release the call.
2010-08-27 10:41:34 -05:00
Andrzej Zaborowski
77543590d9 simutil: Fix compilation with gcc 4.3.2
This gcc version gives two signed / unsigned comparison warnings.
2010-08-26 18:44:50 -05:00
Kristen Carlson Accardi
d3eb346b40 sim: read EFimg 2010-08-26 18:40:12 -05:00
Pekka Pessi
4aa442d36f gprs: add debug info 2010-08-26 10:38:14 -05:00
Andrzej Zaborowski
d5e37afee2 stkagent: Add ConfirmCallSetup request. 2010-08-25 22:39:11 -05:00
Kristen Carlson Accardi
c9fecc48f4 stkutil: change uint32_t to guint32
This helps avoid needing to include any extra header files if
stkutil.h is included in sim.c
2010-08-25 13:38:20 -05:00
Kristen Carlson Accardi
782157ce57 simutil: add fileid for EFimg 2010-08-25 13:38:13 -05:00
Denis Kenzior
74a88dda81 sim: Check PIN even if no EFli / EFpl not read 2010-08-25 10:00:09 -05:00
Denis Kenzior
687e171949 sim: Retrieve EFphase according to the spec 2010-08-23 14:29:22 -05:00
Denis Kenzior
38300af0da sim: Reorder SIM initialization 2010-08-23 14:29:22 -05:00
Denis Kenzior
cbf783c334 sim: Reset mnc_length when removing SIM
In case the next SIM doesn't have it or something else weird happens.
2010-08-23 14:29:22 -05:00
Denis Kenzior
f78eaf94cf sim: Update the SIM initialization comment 2010-08-23 14:29:22 -05:00
Denis Kenzior
fc70af8ea1 sim: Minor style fix 2010-08-23 14:29:21 -05:00
Yang Gu
c679babdc5 sim: Read EFust and EFest 2010-08-23 14:29:21 -05:00
Marcel Holtmann
1130fff405 voicecall: Remove unused variable 2010-08-20 23:17:33 +02:00
Denis Kenzior
f42e563c51 voicecall: Fix memory leak 2010-08-20 16:15:11 -05:00
Denis Kenzior
3edb2e90ab voicecall: Remove Calls property 2010-08-20 16:15:11 -05:00
Denis Kenzior
b5b0627f7f voicecall: emit CallAdded and CallRemoved signals 2010-08-20 16:15:11 -05:00
Denis Kenzior
230236ea25 voicecall: Add GetCalls method 2010-08-20 16:15:11 -05:00
Denis Kenzior
a4de14dab6 voicecall: Fix up some style issues 2010-08-20 16:15:11 -05:00
Denis Kenzior
bdbf0fef99 voicecall: Break out voicecall_append_properties 2010-08-20 16:15:11 -05:00
Denis Kenzior
96f74a1c04 voicecall: Get rid of MultipartyCalls attribute
Replaced by Multiparty attribute on the Voicecall object
2010-08-20 16:15:11 -05:00
Marcel Holtmann
6bf2a743f4 sms: Add a few more debug statements 2010-08-20 21:55:22 +02:00
Andrzej Zaborowski
b6488dec41 stk: reorder: Don't access freed memory in Send SMS
Responding to the stk->pending_cmd frees it, we need to read it
before that.
2010-08-20 09:02:29 -05:00
Marcel Holtmann
5ffd12ff9f stk: Fix error messsage from select item method call 2010-08-20 14:48:48 +02:00
Marcel Holtmann
df5d691c39 Add support for simple glibc based backtrace 2010-08-20 14:44:54 +02:00
Marcel Holtmann
7838503458 gprs: Default value for RoamingAllowed should be FALSE 2010-08-20 11:22:47 +02:00
Marcel Holtmann
335ec6f3ea gprs: Use "Internet" for default PDP context name 2010-08-19 22:36:18 +02:00
Denis Kenzior
18d8584adb gprs: Automatically add a context if none defined 2010-08-19 15:10:30 -05:00
Denis Kenzior
256e01c8c4 gprs: Add support for GetContexts 2010-08-19 14:20:06 -05:00
Denis Kenzior
a9a54c0933 gprs: Tweak context object path naming
And support loading of legacy context names
2010-08-19 14:20:06 -05:00
Denis Kenzior
473e34db66 gprs: Break out writing of gprs context settings 2010-08-19 14:20:06 -05:00
Denis Kenzior
323874790b gprs: Add ContextRemoved signal 2010-08-19 14:20:06 -05:00
Denis Kenzior
fb4aa43a5d gprs: Emit the ContextAdded signal 2010-08-19 14:20:06 -05:00
Denis Kenzior
d1a2875a7e gprs: minor style fix 2010-08-19 14:20:06 -05:00
Denis Kenzior
62b598f704 gprs: Break out context properties append function 2010-08-19 14:20:06 -05:00
Denis Kenzior
4f57fef81b gprs: Get rid of PrimaryContexts property 2010-08-19 14:20:06 -05:00
Denis Kenzior
8f0796ff4f gprs: Update CreateContext to AddContext 2010-08-19 14:20:05 -05:00
Denis Kenzior
b73ebe3c83 gprs: Update GPRS related DBus interface names 2010-08-19 14:20:05 -05:00
Denis Kenzior
7e0f28c7b1 sms: Update SmsManager to MessageManager 2010-08-19 14:20:05 -05:00
Pekka Pessi
4cd9a52f4c fix: Remove extra comma from NotAvailable error 2010-08-19 19:30:27 +02:00
Marcel Holtmann
89e5a75fc1 netreg: Make reset_available returning void 2010-08-19 10:06:17 +02:00
Denis Kenzior
60e091f16f netreg: Minor style issues 2010-08-18 21:13:14 -05:00
Denis Kenzior
999a754ef7 netreg: Move more stuff around 2010-08-18 21:09:03 -05:00
Denis Kenzior
89f37c9010 netreg: Move stuff around to avoid forward decl 2010-08-18 21:07:50 -05:00
Denis Kenzior
53c5c9b0e2 netreg: Make logic more readable 2010-08-18 21:03:04 -05:00
Denis Kenzior
06f56000ff gprs: Update Attached when Auto-Attached succeded 2010-08-18 20:56:00 -05:00
Denis Kenzior
84bdd03683 netreg: Move code around to avoid forward decl 2010-08-18 17:53:04 -05:00
Denis Kenzior
b67a324ff4 netreg: Update to the new Scan/GetOperators API 2010-08-18 17:46:51 -05:00
Andrzej Zaborowski
c8c8116db4 stk: Update agent_called with GetInkey & GetInput 2010-08-18 00:27:38 -05:00
Andrzej Zaborowski
5b30157514 stkagent: Free pending call when destroying agent
Otherwise we leak memory and additionally D-bus invokes the method
callback and since the agent is already destroyed, we segfault.
2010-08-18 00:27:08 -05:00
Denis Kenzior
e38064a66d smsutil: Get rid of pointless member 2010-08-17 12:36:26 -05:00
Denis Kenzior
e428bfc3be smsutil: Simple whitespace fix 2010-08-17 12:10:27 -05:00
Denis Kenzior
cc67a29551 ussd: Be extra pedantic trying to Cancel
If we initiated a Respond() transaction, but have not returned from the
callback.  Or if we already called Cancel and it hasn't returned yet.
2010-08-16 11:02:05 -05:00
Denis Kenzior
0699de64eb ussd: Properly handle cancellations 2010-08-16 10:41:35 -05:00
Denis Kenzior
f86bc5ebde dbus: Add Canceled error 2010-08-16 10:41:35 -05:00
Denis Kenzior
d6f81ef17a gprs: Fix up some attach/detach logic issues
Parts of it are related to Meego bug 5193, namely that we don't properly
signal the Attached status when powering down.

Another part of the fix is that we automatically detach in case our
conditions are not fulfilled if the modem attaches automatically (e.g.
Auto-Attach is enabled)
2010-08-13 18:17:04 -05:00
Denis Kenzior
bab23b3976 voicecall: Make hangup_all work for 911 calls 2010-08-13 14:00:43 -05:00
Denis Kenzior
c7b13ec2fe voicecall: Relax restriction for hangup_active
If hangup_active is present, then a single active call in a 3-way
situation is hung up using hangup_active.
2010-08-12 13:15:52 -05:00
Denis Kenzior
fa2c29c84f voicecall: Move some stuff around 2010-08-12 13:13:53 -05:00
Denis Kenzior
2c9a2b8a99 voicecall: Don't hangup waiting calls
During hangup_all operation.  For multiparty hangups, waiting calls are
not part of the mpty call.
2010-08-12 11:32:12 -05:00
Denis Kenzior
dcf1c32f4c voicecall: Make logic bit cleaner 2010-08-12 11:32:12 -05:00
Denis Kenzior
516d1545a1 voicecall: Minor style issues 2010-08-12 11:32:12 -05:00
Denis Kenzior
10e9bdf4c1 voicecall: Reflow the logic of voicecall_hangup 2010-08-12 11:32:12 -05:00
Sjur Brændeland
9a24ece0fb voicecall: Add support for function hangup_all
This patch fixes problem for modems that cannot terminate
DIALING/ALERTING calls with CHUP=1X. The main change is that
voicecall driver's hangup function is split into the functions
hangup_all and hangup_active.

Changes:
- In cases where hangup previously was used, hangup_all is used
  if implemented otherwise hangup_active is used.
- Call in state DIALING/ALERTING is released with hangup_active if
  implemented.
- manager_hangup_all will simply call hangup_all if implemented.
- manager_hangup_all will release calls in state
  ALERTING/DIALING/INCOMING using hangup_active otherwise
  release_specific.
2010-08-12 11:32:12 -05:00
Marcel Holtmann
5dc131c8ea Add a few debug statements to STK core 2010-08-11 14:18:13 -04:00
Marcel Holtmann
fea1d430ed Add SimToolkitAgent interface to D-Bus configuration 2010-08-10 21:38:16 -04:00
Zhenhua Zhang
6556eda51c gprs: Fix release cid in gprs_deactive_for_remove
Similiar to pri_deactive_callback, we should release the context id in
gprs_deactive_for_remove() as well.
2010-08-09 09:07:30 -05:00
Inaky Perez-Gonzalez
8f570a7969 sms: struct tx_queue_entry: add a destructor
Introduce a destructor function to encapsulate all the release steps
for this data type, as more are to be added later.
2010-08-05 11:59:34 -05:00
Inaky Perez-Gonzalez
ed8ef7a1e8 storage: make write_file transaction-safe
write_file(), as written wasn't transaction-safe; a crash bewtween a
file being open and the buffer being written before a safe close would
leave the file with a set of undetermined contents.

Modified to the file is written to a temporary file name; once
completed, it is renamed to the final name. This way, a crash in the
middle doesn't leave half-baked files.
2010-08-05 11:59:22 -05:00
Denis Kenzior
8eb9425f32 sim: Use less space for locked_pins
Use only as required, since we only track PINs in this one, not PUKs
2010-08-05 10:19:04 -05:00
Denis Kenzior
764afde1fe sim: Fix LockedPins in case SIM wants a PUK first
In the case that oFono is started with the SIM asking for a PUK, we
don't report LockedPins properly.
2010-08-05 10:00:57 -05:00
Denis Kenzior
5a6151a363 stkagent: No need to split these on two lines 2010-08-04 14:49:42 -05:00
Denis Kenzior
9b284c7c35 stk: Rip out the HELP stuff for now
We're not supporting it in the current API and doing so is actually
very painful.
2010-08-04 14:47:38 -05:00
Denis Kenzior
7241a0e314 stkagent: Introduce CALLBACK_END macro 2010-08-04 14:40:08 -05:00
Andrzej Zaborowski
c09dfb8473 stk: Handle the Get Input proactive command 2010-08-04 14:29:24 -05:00
Andrzej Zaborowski
e620d7d99e stkagent: Implement RequestInput/RequestDigits 2010-08-04 14:28:21 -05:00
Andrzej Zaborowski
ed169aa02f stk: Handle the Get Inkey proactive command 2010-08-04 14:13:16 -05:00
Andrzej Zaborowski
939fc1273c stkagent: Implement RequestConfirmation/Key/Digit 2010-08-04 14:13:06 -05:00
Denis Kenzior
b952c34c38 stkagent: Remove stk_agent_busy 2010-07-30 18:59:44 -05:00
Denis Kenzior
8697cbbba8 stk: Remove unneeded check
The agent_remove_source will be canceled as part of the session agent
destruction notify.
2010-07-30 18:50:38 -05:00
Denis Kenzior
41017a11f5 stk: Fix typo in comment 2010-07-30 18:34:49 -05:00
Denis Kenzior
e2d6d56374 stk: Handle the case where no agent is registered 2010-07-30 18:17:57 -05:00
Denis Kenzior
c2cf374857 stk: Get rid of cancel result
And also rework how immediate response display text gets handled.
2010-07-30 17:19:56 -05:00
Denis Kenzior
cf249c9fd7 stk: Introduce destroy semantics to stkagent 2010-07-30 17:19:56 -05:00
Denis Kenzior
27e890cc40 stk: Handle errors when sending to the agent fails 2010-07-30 17:19:56 -05:00
Denis Kenzior
2a1eee38bb stk: Get rid of nested switch 2010-07-30 17:19:56 -05:00
Denis Kenzior
e5ea6e2193 stk: Handle the new termination semantics
The termination semantics were changed in stkagent.  Now if an agent
sends an invalid response or an unexpected error, then the agent is
terminated, even if it is the default agent.
2010-07-30 17:19:56 -05:00
Denis Kenzior
e44d130b8c stk: Simplify sending of terminal responses
Introduce a new send_simple_response function
2010-07-30 17:19:56 -05:00
Denis Kenzior
3434540d8b stkagent: Make DisplayText invocation match API
For now we match the proposed API until we decide that changes are
needed.
2010-07-30 17:19:56 -05:00
Denis Kenzior
69ea6cd7a0 stkagent: Remove stk_agent_generic_cb 2010-07-30 17:19:56 -05:00
Denis Kenzior
0292fe12c0 stkagent: Get rid of nasty g_timeout tricks 2010-07-30 17:19:55 -05:00
Denis Kenzior
9684c4a362 stkagent: Get rid of unneeded checks 2010-07-30 17:19:55 -05:00
Denis Kenzior
aa650f7488 stkagent: Shorten logic 2010-07-30 17:19:55 -05:00
Denis Kenzior
1a7179b79d stkagent: Simplify stkagent logic 2010-07-30 17:19:55 -05:00
Denis Kenzior
7ad5b35a35 stkagent: Refactor stkagent api 2010-07-30 17:19:55 -05:00
Denis Kenzior
dc5a2609b3 stkagent: Rename stk_agent_remove
to stk_agent_free
2010-07-30 17:19:55 -05:00
Denis Kenzior
9e00eebe73 stkagent: Reorder stkagent.h 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
b051f28dbe stk: Handle the Display Text proactive command. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
3714eb8acd stk: Handle the Select Item proactive command. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
47b95122cc stk: Handle the main menu. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
5faa3951c2 stk: Utilities to deal with menus. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
9654c69d7d stk: Add STK agent registration api. 2010-07-30 17:19:54 -05:00
Andrzej Zaborowski
573c806fcd Add STK agent utilities and logic. 2010-07-30 17:19:54 -05:00
Denis Kenzior
cf86deeb82 netreg: Add MCC/MNC to NetworkRegistration
These are the same values as on the NetworkOperator interface for the
current operator.  Just added for convenience.
2010-07-27 16:52:16 -05:00
Kristen Carlson Accardi
f9cb5b37dd stkutil: convert img to xpm 2010-07-26 14:34:54 -05:00
Inaky Perez-Gonzalez
e31d429dbe sms: rename create_tx_queue_entry()
This is for symmetry with tx_queue_entry_free()
2010-07-23 18:00:59 -05:00
Inaky Perez-Gonzalez
4421b5b912 sms: document use_delivery_reports
In function sms_text_prepare
2010-07-23 18:00:10 -05:00
Inaky Perez-Gonzalez
9517bf2991 sms: sms_assembly_encode_address export and rename
The new name better reflects the function's purpose.

We need to export it, as for generating unique message naming (for
persistence and D-Bus object naming), we'll be using the
address.
2010-07-23 17:28:18 -05:00
Inaky Perez-Gonzalez
ca46f51c2d introduce DECLARE_SMS_ADDR_STR()
Introduce DECLARE_SMS_ADDR_STR(), which declares a string variable of
the right size for passing to sms_assembly_decode_address(). This way
we detach each client having to have the knowledge of what the right
size is, leaving that decission to the infrastructure
provider. Updated couple of sites in smsutil.c to use it vs a raw
declaration.
2010-07-23 17:26:12 -05:00
Zhenhua Zhang
bdef5046d0 Fix: Free modem name in ofono_modem_remove
Avoid the memory leak of modem name.
2010-07-21 11:58:35 -05:00
Denis Kenzior
a3b694672d gprs: Minor style fixes 2010-07-19 13:51:00 -05:00
Denis Kenzior
d4cae8dd56 gprs: Add Protocol property with IPv6/IPv4 2010-07-19 13:50:37 -05:00
Marcel Holtmann
7f9793d70b Add feature identifier for SIM Toolkit 2010-07-17 14:53:07 -07:00
Andrzej Zaborowski
7c6758af20 stk: Remove an unneeded check. 2010-07-15 15:41:54 -05:00
Denis Kenzior
e77ea33fd6 stkutil: Set black fore/back ground color 2010-07-13 15:36:00 -05:00
Kristen Carlson Accardi
d10deb44f8 stkutil: display text attributes as html 2010-07-13 14:59:21 -05:00
Yang Gu
058d3d0cd4 Interpret "" Alpha Id as empty data object
There needs to be a way to distinguish between no alphaid and "empty
data object" because on some occasions they have different meanings.  In
the Call Control envelope, no Alpha Identifier means the terminal can
inform the user about the call being modified by SIM while empty data
object means no hint should be given.
2010-07-09 12:30:12 -05:00
Denis Kenzior
465a4f5ef5 stk: Simplify poll interval logic 2010-07-08 14:27:35 -05:00
Denis Kenzior
7d98e604c7 stk: Be more paranoid of enums from stk 2010-07-08 14:27:35 -05:00
Andrzej Zaborowski
45d535b802 stk: Handle the Poll Interval proactive command 2010-07-08 14:27:35 -05:00
Denis Kenzior
00cb839c83 style: Use more understandable syntax 2010-07-08 14:27:34 -05:00
Denis Kenzior
ab9d7cd2cb style: No initialization needed here 2010-07-08 14:27:34 -05:00
Denis Kenzior
ea1f6e11f6 stk: Get rid of gratuitous goto abuse 2010-07-08 14:27:34 -05:00
Denis Kenzior
5094b677ca style: Prefer initialized variables on top 2010-07-08 14:27:34 -05:00
Denis Kenzior
84e73a8b7c sms: Refactor ofono_sms_submit introduced by stk
Simplify the logic and get rid of duplicated code
2010-07-08 14:27:34 -05:00
Denis Kenzior
6d91d84b28 sms: Tweak the logic to be more readable 2010-07-08 14:27:34 -05:00
Denis Kenzior
db9b67e791 stk: Don't submit all pending envelopes at once 2010-07-08 14:27:34 -05:00
Denis Kenzior
5efd87fe63 stk: Fix copy / paste error 2010-07-08 14:27:34 -05:00
Denis Kenzior
a6edf2c803 stk: Get rid of bin to hex converter
That much code for a debug message is pretty silly.  Perhaps an
ofono_debug_hexdump function is in order.
2010-07-08 14:27:34 -05:00
Denis Kenzior
d2dc0480db stk: cancelled variable is not used 2010-07-08 14:27:34 -05:00
Andrzej Zaborowski
bd33ab6a6f stk: Handle the Timer Management proactive command 2010-07-08 14:27:34 -05:00
Andrzej Zaborowski
c0db55513d stk: Handle the Set Up Idle Text proactive command
This adds a SimToolkit dbus interface with just one property
(IdleModeText).
2010-07-08 14:27:34 -05:00
Andrzej Zaborowski
56d927b814 stk: Handle the Send SMS proactive command. 2010-07-08 14:27:34 -05:00
Andrzej Zaborowski
516a9b06c5 Add __ofono_sms_submit for other atoms to submit SMs. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
6de5b7f5bb stkutil: Timer Value is conditional, not optional.
Make the parser check that the value is present when necessary,
so that stk.c doesn't have to check this.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
c451994139 sktutil: Use the Mandatory flag in parse_dataobj.
We need to look at the Mandatory flag and not at the Minimum flag
when parsing CTLVs.  The Minimum flag is important when encoding CTLVs
because CR bit is set according to it.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
de587870d2 stk: Handle ENVELOPEs in a queue, retry on sim busy.
Some envelope types need to be retried when sim reports busy status.
Then envelopes such as Event Download need to be returned in the
order of the event occurences, so need to be handled in a queue.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
9d46dbc7a5 stk: Handle MoreTime command as a no-op 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
cbdb7278ac stk: Utilities for proactive command/envelope handling. 2010-07-08 14:27:33 -05:00
Denis Kenzior
e6d6f802a5 smsutil: Fix valgrind complaint
SMS cannot be split over GSM extension chars, however on the last
segment this code was causing us to overflow the buffer and resulted in
valgrind complaining.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
365183d5a0 stkutil: Move scaddr field to gsm_sms 2010-07-02 14:13:45 -05:00
Denis Kenzior
20da18ca8b sms: Tweak the Bearer API 2010-06-25 17:49:36 -05:00
Denis Kenzior
8ff599c691 sms: Add support for SMS Bearer settings 2010-06-25 14:25:46 -05:00
Denis Kenzior
f3e0e466c7 gprs: Fix to attachment race condition
Sometimes we get unsolicited attachment status before our query
finishes.  If the client is fast enough they can attempt to attach
and get the AttachInProgress error
2010-06-25 14:19:08 -05:00
Denis Kenzior
17de318c76 sms: minor style fix 2010-06-24 14:24:00 -05:00
Denis Kenzior
10e3ca440b sms: Don't bother setting SCA if we can't query 2010-06-24 14:13:04 -05:00
Andrzej Zaborowski
557f4cdb16 stkutil: Alpha Id is optional for Select Item. 2010-06-23 14:45:46 -05:00
Andrzej Zaborowski
ab7f88233d stkutil: Refactor command parser error handling
When parsing the full command fails but Command Details has been parsed,
return a struct stk_command containing this information and the type of
parsing problem found.  We need the command details to be able to
even respond to the command.

This patch also makes the parser skip over unknown data objects found
in the BER-TLV, if they don't have Comprehension Required set.
2010-06-23 14:23:06 -05:00
Marcel Holtmann
1fedd096a0 Check sanity the MNC length value from the SIM card
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-06-22 17:21:03 +02:00
Denis Kenzior
9b6876ef25 storage: whitespace issue 2010-06-21 15:40:14 -05:00
Denis Kenzior
6bae7a2aa1 smsutil: Fix up some comment style 2010-06-21 15:33:13 -05:00
Andrzej Zaborowski
b8f68a5ed3 stkutil: Remove obsolete comment. 2010-06-21 15:21:40 -05:00
Denis Kenzior
4d82b67ea1 sms: Only emit property if value actually differs 2010-06-21 15:21:40 -05:00
Denis Kenzior
5aa8841440 smsutil: Take ton_npi into account in sr assembly 2010-06-21 15:21:40 -05:00
Denis Kenzior
36bcae5ff1 smsutil: More code cleanup
- Change the flow of the code a bit, in the case that all fragments have
  been sent and an udelivered sr arrives, we can simply remove the node
  and signal undelivered up
- We ignore temporary and temporary final status reports
2010-06-21 15:21:40 -05:00
Denis Kenzior
cbc27e06b3 smsutil: Make code flow easier to understand 2010-06-21 15:21:40 -05:00
Denis Kenzior
a8bd87cda9 smsutil: multiline comments to preferred style 2010-06-21 15:21:40 -05:00
Denis Kenzior
65b8cab616 smsutil: Minor code style & indentation fixes 2010-06-21 15:21:39 -05:00
Denis Kenzior
74a8ce2e8b sms: Fixup minor style issues with status reports 2010-06-21 15:21:39 -05:00
Pasi Miettinen
84d095860f sms: Status report notify 2010-06-21 15:21:39 -05:00
Denis Kenzior
d7dacd2fad smsutil: memcpy is preferable to struct assignment 2010-06-21 15:21:39 -05:00
Denis Kenzior
c967766070 smsutil: Streamline flow of sr add_fragment 2010-06-21 15:21:39 -05:00
Denis Kenzior
cf62a6e8d5 Fix: Make distcheck pass
No need to include history.h anyway
2010-06-21 15:21:39 -05:00
Pasi Miettinen
a7372209f3 smsutil: Status report assembly 2010-06-21 10:52:27 -05:00
Andrzej Zaborowski
1b4dd4cd83 stkutil: Add More Time terminal response builder 2010-06-18 14:04:54 -05:00
Denis Kenzior
3b5d3fe1ef stkutil: USSD max len is 160 2010-06-18 13:59:15 -05:00
Yang Gu
6018d1fe82 stk: Add parser for timing advance objects 2010-06-18 13:57:55 -05:00
Yang Gu
179c14fe39 smsutil: Add a decoder for ussd pdus 2010-06-18 13:18:12 -05:00
Yang Gu
31d29608e0 stk: Add parser for send ussd commands 2010-06-18 13:15:31 -05:00
Denis Kenzior
97e62dffde stkutil: Make sure bc_repeat is used properly
The wrong structure was being used in the function & the has_bc_repeat
variable was not being set properly.
2010-06-16 17:43:12 -05:00
Denis Kenzior
dc505be373 stkutil: Merge two versions of bcch_channel_list 2010-06-16 17:43:12 -05:00
Yang Gu
ea41f3851d stk: Add parser for UTRAN meas qualifier objects 2010-06-16 17:43:12 -05:00
Yang Gu
521156c049 stk: Add parser for PDP activation param objects 2010-06-16 17:43:12 -05:00
Yang Gu
37afdf1ca5 stk: Add parser for bcch channel list objects 2010-06-16 17:43:11 -05:00
Yang Gu
db941ff556 stk: Add parser for cell broadcast page objects 2010-06-16 17:43:11 -05:00
Yang Gu
090c93fbdf Add several proactive command parsers 2010-06-16 17:43:11 -05:00
Yang Gu
a2d7494e93 stk: Add parser for send ss commands 2010-06-16 17:43:11 -05:00
Marcel Holtmann
fd3a89091c Fix previous commit that broke reference to PDU string buffer 2010-06-16 16:49:14 +02:00
Marcel Holtmann
e2790ba646 Fix memory allocation handling for STK Proactive command debug 2010-06-16 15:55:53 +02:00
Denis Kenzior
3ba288c396 stkutil: Minor style cleanups in stkutil 2010-06-15 14:32:58 -05:00
Andrzej Zaborowski
d5ad48c661 stkutil: Add Terminal Applications envelope builder
This is not a terribly useful function as the user still needs to
split the list in separate envelopes.  The .type field could be an
enum.
2010-06-15 14:27:35 -05:00
Andrzej Zaborowski
0baaf2ce5b stkutil: Add MMS Notification DL envelope builder 2010-06-15 12:37:53 -05:00
Andrzej Zaborowski
6720f90e13 stkutil: Add MMS Transfer Status envelope builder 2010-06-15 12:36:31 -05:00
Andrzej Zaborowski
df8f6115ca stkutil: Add the USSD Download envelope builder 2010-06-15 12:35:18 -05:00
Andrzej Zaborowski
dd9e095524 stkutil: Add the Timer Expiration envelope builder 2010-06-15 12:09:00 -05:00
Andrzej Zaborowski
2166be0bc9 stkutil: Add the Event Download envelope builder 2010-06-15 12:06:59 -05:00
Andrzej Zaborowski
fb39e0efed stkutil: Refactor struct stk_frames_info 2010-06-15 12:06:52 -05:00
Andrzej Zaborowski
6e4277eef8 stkutil: Refactor struct stk_other_address 2010-06-15 12:06:47 -05:00
Andrzej Zaborowski
f74087d03e stkutil: Add the Call Control envelope builder 2010-06-15 12:06:30 -05:00
Marcel Holtmann
24124d193a Just call the feature "net" instead of "netreg" 2010-06-12 21:41:48 +02:00
Marcel Holtmann
236f3acc0f Add support for Features property on modem interface 2010-06-09 20:46:10 -07:00
Marcel Holtmann
9a72d2566d Move data connection manager interface constants into common include 2010-06-09 20:38:50 -07:00
Marcel Holtmann
aa99c4c0dd Rename CbsManger into CellBroadcast
Other D-Bus interfaces use clear descriptions like SupplementaryServices
or NetworkRegistration. So use CellBroadcast for cell broadcast support.
2010-06-09 20:07:11 -07:00
Andrzej Zaborowski
b95ef22f61 stkutil: Refactor stk_location_info
In some cases an empty stk_location_info means that no object should be
emitted (e.g. it is optional) and in other cases an empty object should
be emitted.  This is context specific to the terminal response /
envelope and thus we break this up into two separate functions.
2010-06-09 19:29:15 -05:00
Andrzej Zaborowski
5684577171 stkutil: Add MO SMS Control envelope builder 2010-06-09 18:03:00 -05:00
Denis Kenzior
70b09d1742 simutil: Remove unneeded forward-declaration 2010-06-09 13:08:23 -05:00
Andrzej Zaborowski
4dcb3fed2a simutil: Fix MMC MNC encoding for 2-digit MNCs. 2010-06-09 13:07:09 -05:00
Andrzej Zaborowski
9f925b3620 util: Add a "sim string" encoding utility. 2010-06-09 12:43:27 -05:00
Andrzej Zaborowski
b2dfa2321f stkutil: Add the Menu Selection envelope builder 2010-06-09 12:30:19 -05:00
Andrzej Zaborowski
569c252e48 Fix: download CBS to SIM even when "Powered" is 0 2010-06-09 12:27:24 -05:00
Andrzej Zaborowski
7e5ef25c5a stk: Use envelope encoding utility from stkutil.c 2010-06-09 12:26:32 -05:00
Andrzej Zaborowski
f989541161 stkutil: Add CBS-PP Data Download envelope builder 2010-06-09 12:25:25 -05:00
Andrzej Zaborowski
8be222d46e stkutil: Add SMS-PP Data Download envelope builder 2010-06-09 12:23:13 -05:00
Andrzej Zaborowski
ef408ae1a6 stkutil: Use static buf in stk_pdu_from_response 2010-06-09 12:19:52 -05:00
Denis Kenzior
06ecf0e7f5 cbs: Send ETWS topics last 2010-06-07 15:08:58 -05:00
Denis Kenzior
ba5ec3b38e sms: style fix, remove extra newline 2010-06-07 13:05:50 -05:00
Pasi Miettinen
47082757b9 sms: Add UseDeliveryReports property 2010-06-07 13:05:13 -05:00
Pasi Miettinen
475c0de92c smsutil: Add option to use delivery reports 2010-06-07 13:00:46 -05:00
Denis Kenzior
c8f15602cf network: Some style issues 2010-06-07 12:57:50 -05:00
Denis Kenzior
3d96880f41 netreg: Ignore operator info when not registered
Sometimes when we roam off the cell or are simply not registered, the
modem still reports a bogus operator.  We explicitly ignore this
condition in the core.
2010-06-07 12:57:46 -05:00
Denis Kenzior
69e5a65d34 smsutil: status reports also lead with SC_ADDR 2010-06-04 14:21:57 -05:00
Yang Gu
52ddd8c283 stk: Constraint the appearance of empty item
If empty item turns out, it must be the only item in the list.
So the following situations are deemed as invalid:
1. Two empty items
2. Valid item + empty item
3. empty + valid item
2010-06-01 14:02:32 -05:00
Denis Kenzior
4638d3ad83 smsutil: Don't overflow signed ints
We were overflowing the datatype which was causing the 31st segments to
be prepended at position 0.  This resulted in (very) long messages being
improperly concatenated
2010-06-01 10:07:18 -05:00
Andrzej Zaborowski
4f2a371a9f stkutil: Add Launch Browser response builder 2010-05-28 11:41:34 -05:00
Andrzej Zaborowski
ac222a5512 stkutil: Add Language Notification response builder 2010-05-28 11:38:19 -05:00
Andrzej Zaborowski
4c4e2e9f03 stkutil: Add Send DTMF response builder support 2010-05-28 11:37:39 -05:00
Denis Kenzior
b1e3579417 stkutil: Fix comment style 2010-05-28 11:36:48 -05:00
Andrzej Zaborowski
27a9d785c4 stkutil: Add the Run AT Command response builder 2010-05-28 11:35:17 -05:00
Andrzej Zaborowski
e608568d79 stkutil: Add Set Up Idle Mode Text response builder 2010-05-28 11:33:25 -05:00
Denis Kenzior
3dc3f69b86 stkutil: Fix style in build_dataobj_timer_value 2010-05-28 11:32:04 -05:00
Denis Kenzior
88e4f807f8 stkutil: Fix style 2010-05-28 11:30:35 -05:00
Andrzej Zaborowski
268ac562eb stkutil: Add the Timer Management response builder 2010-05-28 11:29:48 -05:00
Denis Kenzior
8d863b6250 stkutil: Use more understandable syntax 2010-05-28 11:29:35 -05:00
Denis Kenzior
5ed7962765 stkutil: Fix style 2010-05-28 11:29:35 -05:00
Denis Kenzior
5588433ad4 stkutil: Fix style in build_dataobj_location_info 2010-05-28 11:29:35 -05:00
Denis Kenzior
a597318b78 stkutil: Fix some style issues with setup_call 2010-05-28 11:29:35 -05:00
Andrzej Zaborowski
139294c588 stkutil: Add Set Up Event List response builder 2010-05-28 11:29:35 -05:00
Andrzej Zaborowski
8868becca1 stkutil: Add the Provide Local Info response builder 2010-05-28 11:29:34 -05:00
Andrzej Zaborowski
970250be0c stkutil: Add Polling Off response builder support 2010-05-28 11:29:34 -05:00
Andrzej Zaborowski
8e0484d1d5 stkutil: Add Set Up Call response builder 2010-05-28 10:40:03 -05:00
Inaky Perez-Gonzalez
2b891029ac sms: Add some documentation
Add doc headers to ofono_sms_{create, register}
2010-05-28 09:45:56 -05:00
Inaky Perez-Gonzalez
8a4f8d2022 storage: add printf-like verification
Add __attribute__((format)) to {write, read}_file()
2010-05-28 09:44:15 -05:00
Inaky Perez-Gonzalez
b0a63388de sms_send_message: add a short roadmap 2010-05-28 09:33:44 -05:00
Inaky Perez-Gonzalez
9c107821ab smsutils: add some documentation
sms_assembly_add_fragment_backup: clarify how insertion spot is found
2010-05-28 09:23:35 -05:00
Denis Kenzior
f2f5810942 sim: move ServiceDiallingNumbers to ServiceNumbers
In line with the API documentation
2010-05-27 14:58:29 -05:00
Pekka Pessi
8001338da7 Use ofono_bool_t instead of bool in modem API. 2010-05-27 13:01:06 -05:00
Pekka Pessi
7d1c404a6a modem: Fix inconsistent state
Keep modem state consistent if sim is removed while set_online
driver call is pending.  This results in set_online callback being
called and modem entering an invalid state.
2010-05-27 12:44:40 -05:00
Denis Kenzior
603ff15e6b stkutil: Refactor parsing of data object lists
The old way wasn't working out for lists that are optional.  This was
only a problem with the launch browser proactive command.
2010-05-27 12:42:59 -05:00
Yang Gu
31b65ef8ab Move destructor prior to return 2010-05-27 12:21:05 -05:00
Yang Gu
3b71390b51 stk: Add parser for launch browser commands 2010-05-27 10:24:39 -05:00
Denis Kenzior
e7570ef1d5 stkutil: Refactor SMS pdu parser 2010-05-27 09:26:45 -05:00
Denis Kenzior
9bb7bcd450 smsutil: add sms_decode_unpacked_stk_pdu function
Properly check the special 'packing required' sms pdus sent by SIM
toolkit.
2010-05-27 09:25:48 -05:00
Yang Gu
4d69a5cd86 stk: Fix the parser of send sms 2010-05-27 07:56:09 -05:00
Yang Gu
a9cd641855 smsutil: Check that udl is less than 140 2010-05-27 07:21:28 -05:00
Yang Gu
ea01533cd6 stk: Use sim bcd version 2010-05-27 07:04:55 -05:00
Denis Kenzior
5a24916aae Fix: Go to online state if set_online is NULL 2010-05-26 21:03:15 -05:00
Denis Kenzior
7705cebd3f Refactor: no need for dummy_online_callback 2010-05-26 21:03:15 -05:00
Denis Kenzior
f2a2573cd0 Fix: Don't allow setting online before sim ready 2010-05-26 21:03:15 -05:00
Denis Kenzior
adefe451a2 Refactor: Break up set_online_callback
- Break up into two functions, one for online and one for offline
- No longer the need for online_pending variable
2010-05-26 21:03:15 -05:00
Denis Kenzior
7b77888217 Add __ofono_error_not_available 2010-05-26 21:03:15 -05:00
Denis Kenzior
5da54eea44 Refactor: flush_atoms
The current implementation did not take care of the case where the head
of the list was removed
2010-05-26 21:03:14 -05:00
Denis Kenzior
5890c38a37 Refactor: Don't use ofono_ prefix
Only meant for oFono public API
2010-05-26 21:03:14 -05:00
Denis Kenzior
53dc160362 Refactor: The macros are no longer needed 2010-05-26 21:03:14 -05:00
Denis Kenzior
d3b9f42ed4 Refactor: Don't use ofono_ prefix
Only to be used for ofono public API
2010-05-26 21:03:14 -05:00
Denis Kenzior
1b34af054d Refactor: Don't use ofono_ prefix
only meant for public API
2010-05-26 21:03:14 -05:00
Denis Kenzior
c53d084234 Refactor: Don't use ofono_ prefix
ofono_ prefix is meant for public API
2010-05-26 21:03:14 -05:00
Denis Kenzior
e7529bfa70 Fix: minor style issues 2010-05-26 21:03:12 -05:00
Pekka Pessi
4f1506ba25 Add: Online property to modem
The online/offline state is changed with the new set_online() modem driver
method.

In order to track atoms, there are modem states as follows:
- OFONO_MODEM_STATE_POWER_OFF
- OFONO_MODEM_STATE_PRE_SIM
- OFONO_MODEM_STATE_OFFLINE
- OFONO_MODEM_STATE_ONLINE

Atoms are added with driver methods pre_sim(), post_sim() and post_online().
Atoms are removed by modem core when the state changes.
2010-05-26 14:24:11 -05:00
Aki Niemi
96090ce079 Fix more-messages-to-send indicator
Set the mms indicator based on remaining segment count and not on the
message transmit queue status alone.
2010-05-26 11:16:45 -05:00
Denis Kenzior
e8a7b5cc46 simutil: Make sim_adn_build use sim bcd 2010-05-26 10:00:02 -05:00
Denis Kenzior
b0cf35c324 simutil: Add sim_encode_bcd_number 2010-05-26 09:59:14 -05:00
Denis Kenzior
75ce0a7b28 simutil: Make sim_adn_parse use sim bcd version 2010-05-26 09:51:51 -05:00
Denis Kenzior
48a4f59bdd simutil: add sim_extract_bcd_number 2010-05-26 09:50:51 -05:00
Denis Kenzior
795f0f3406 smsutil: Update the doc for extract_bcd_number 2010-05-26 09:17:25 -05:00
Yang Gu
5129bb2998 stk: Add parser for language notification commands 2010-05-25 17:36:52 -05:00
Yang Gu
0e983e965e stk: Add parser for send dtmf commands 2010-05-25 17:34:29 -05:00
Yang Gu
f21e69c7a8 stk: Add parser for run at command commands 2010-05-25 17:19:38 -05:00
Yang Gu
525bf96a1b stk: Add parser for setup idle mode text commands 2010-05-25 17:13:43 -05:00
Andrzej Zaborowski
af2004ece1 simutil: Add MMC MNC pair encoding utility 2010-05-25 16:52:54 -05:00
Denis Kenzior
9cd477fb7a stkutil: Fix warning 2010-05-25 16:52:54 -05:00
Denis Kenzior
ce449d0929 stkutil: More style issues
- Make stk_tlv_builder usage consistent (builder was missing)
- Various style issues
2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
ff67ee8a2e smsutil: Expose SMS timestamp encoding utility
The function can be re-used in stkutil.c, similarly to sms_decode_scts.
2010-05-25 16:52:54 -05:00
Denis Kenzior
3fc7a54a69 stkutil: small style issue 2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
429d03c965 stkutil: Add Select Item response builder 2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
d566fe2796 stkutil: Add Set Up Menu response builder 2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
0a3324f8b6 test-stkutil: Add Refresh response tests 2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
516fdec557 stkutil: Add Refresh response builder 2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
5854e2262b stkutil: Add Poll Interval response builder 2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
a732863c87 stkutil: Add Play Tone response builder support 2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
93bd75441c stkutil: Add Send SMS response builder 2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
22561c26f1 stkutil: Add Get Input response builder 2010-05-25 16:52:52 -05:00
Denis Kenzior
7eda56a6b4 stkutil: Various code style issues 2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
eacb4395fc stkutil: Add Get Inkey response builder 2010-05-25 16:52:52 -05:00
Denis Kenzior
60cab4354c stkutil: Make the code more readable 2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
5953762a7b stkutil: Add Display Text response builder 2010-05-25 16:52:52 -05:00
Denis Kenzior
706c5aa994 stkutil: Simplify append_text 2010-05-25 16:52:51 -05:00
Andrzej Zaborowski
6831adfa74 Add STK-specific CTLV encoding utilities 2010-05-25 16:52:51 -05:00
Denis Kenzior
83240f1389 simutil: simplify ctlv logic 2010-05-25 16:52:51 -05:00
Denis Kenzior
ec8a6cbc43 simutil: Simplify ber_tlv_builder_optimize logic 2010-05-25 16:52:51 -05:00
Denis Kenzior
ea46bae631 simutil: Simplify ber_tlv builder set_length logic 2010-05-25 16:52:51 -05:00
Denis Kenzior
fd8d7b8992 simutil: Simplify builder_write_header 2010-05-25 16:52:51 -05:00
Denis Kenzior
91c4644458 simutil: Be more type-correct 2010-05-25 16:52:51 -05:00
Denis Kenzior
afedfcb486 simutil: Get rid of ugly-named functions
Replace them by macros
2010-05-25 16:52:51 -05:00
Andrzej Zaborowski
1c3060026e simutil: Add utilities for encoding BTLV and CTLV 2010-05-25 16:52:50 -05:00
Marcel Holtmann
6322542719 Break function declaration down to two lines 2010-05-25 11:08:58 +02:00
Gustavo F. Padovan
d62548bfd0 Bring back -d option without need for argument 2010-05-25 11:08:22 +02:00
Denis Kenzior
73bfae4f46 sim: Read EFiccid after EFphase 2010-05-19 23:48:34 -05:00
Denis Kenzior
bbd6a1d48a sim: No need for this define 2010-05-19 23:47:41 -05:00
Daniel Wagner
b338033307 Read EF_ICCID property of SIM
Tested with phonesim.
2010-05-19 23:41:03 -05:00
Denis Kenzior
83fc72c95a core: Trivial whitespace error 2010-05-19 05:26:35 -05:00
Aki Niemi
b8ec7553ef Add network time support
Adding a new notify function in the netreg atom for notifying a
received Network Identification and Timezone (NITZ) indication. This
data is consumed via a nettime plugin, of which there is also an
example.
2010-05-19 10:46:18 +03:00
Denis Kenzior
ecf0c990cf stkutil: reorder command struct order 2010-05-13 15:36:35 -05:00
Yang Gu
a1e3cb43ec stkutil: Add timer management command parser 2010-05-13 15:33:26 -05:00
Yang Gu
1a5d9bc8d5 stkutil: Add get reader status command parser 2010-05-13 15:32:49 -05:00
Yang Gu
d6e1718a82 stkutil: Add power on card command parser 2010-05-13 15:32:18 -05:00
Yang Gu
ee12e0fd50 stkutil: Add power off card command parser 2010-05-13 15:31:59 -05:00
Denis Kenzior
84ea89926f stkutil: Minor style issues and a typo 2010-05-13 15:31:21 -05:00
Yang Gu
5330612d28 stkutil: Add perform card apdu command parser 2010-05-13 15:25:59 -05:00
Yang Gu
beb01428b7 stkutil: Add event list command parser 2010-05-13 13:57:11 -05:00
Denis Kenzior
c02ae417f4 style: Whitespace errors 2010-05-13 13:55:35 -05:00
Yang Gu
2f1bb15dcf stkutil: Add provide local info command parser 2010-05-13 13:53:08 -05:00
Yang Gu
0dc5c5df6f stkutil: Add polling off proactive command parser 2010-05-13 13:52:20 -05:00
Denis Kenzior
57925606c0 stkutil: file_list instead of fl is better 2010-05-13 13:51:38 -05:00
Yang Gu
7e96402cc0 stkutil: Add refresh proactive command parser 2010-05-13 13:49:28 -05:00
Yang Gu
783bb70599 stkutil: Add setup call proactive command parser 2010-05-13 13:47:22 -05:00
Yang Gu
847539b39d stk: Adjust the sequence of dataobj 2010-05-13 13:46:21 -05:00
Denis Kenzior
1ddc7ebf19 stkutil: Refactor parse_list into parse_item_list
Makes the code much easier to follow
2010-05-13 13:43:16 -05:00
Yang Gu
352a03d537 stkutil: Add select item proactive command parser 2010-05-13 12:29:59 -05:00
Yang Gu
d45219e049 stkutil: Add setup menu proactive command parse 2010-05-13 11:07:07 -05:00
Yang Gu
2cc037e136 style: remove extra whitespace 2010-05-13 11:05:33 -05:00
Yang Gu
9f3b2de6f0 stkutil: item objects can be NULL
ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.
2010-05-13 11:05:06 -05:00
Yang Gu
edcd03e570 stkutil: alpha id objects can be NULL
ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.
2010-05-13 11:04:04 -05:00
Yang Gu
353d955dea simutil: Add comprehension tlv copy
Can be used to save the state of the current iterator and 'peek' ahead.
2010-05-13 11:02:52 -05:00
Yang Gu
5b030c4a19 stk: Add poll interval proactive command parser 2010-05-13 10:53:40 -05:00
Yang Gu
8a33071cd0 stkutil: Parse cdma tpdu in send sms parser 2010-05-11 14:36:37 -05:00
Yang Gu
4374123324 stkutil: Refactor parser for tone objects 2010-05-11 12:24:02 -05:00
Yang Gu
37c2bc8cf2 stkutil: Add play tone proactive command parser 2010-05-11 12:21:51 -05:00
Yang Gu
6e4f5c5122 stk: Unify variable names to use abbreviation 2010-05-11 12:19:09 -05:00
Yang Gu
2eff407957 stkutil: Free default text for get input parser 2010-05-11 12:15:36 -05:00
Andrzej Zaborowski
018ee10f92 Fix: Don't remove wrong atoms
When the state goes from INSERTED to NOT PRESENT and we have not
advanced past the SIM PIN entry, we remove the pre_sim atoms.

Similarly, if we advanced past the SIM PIN stage and subsequently
removed the SIM, the pre_sim atom list should not be tampered with.
2010-05-10 15:26:09 -05:00
Yang Gu
c5023690b7 stkutil: Make get inkey parser use its own struct 2010-04-27 09:35:01 -05:00
Yang Gu
1bd755bcdc stkutil: Use char* instead of char**
char ** should only be used for character arrays that are allocated by
the parser.  Static buffers should be passed as char*
2010-04-27 09:33:32 -05:00
Yang Gu
8516a38cf1 stkutil: Add 'more time' proactive command parser 2010-04-27 09:32:06 -05:00
Yang Gu
3ae32b6e51 stkutil: Use struct to represent frame id
Use a field has_id to indicate if we have frame id or not. Originally
we use 0xFF to indicate we don't have frame id. But in that way, we
have to initialize each test case of proactive command when it doesn't
have this comprehension tlv to be 0xFF. To use has_id will save this
effort, and keep consistency with other implementations.
2010-04-27 09:30:59 -05:00
Yang Gu
def5c38094 stkutil: Move advance of ctlv to parse_dataobj
Not all the proactive commands have comprehension tlv other than
command details and device identities. So the appropriate code should
be moved to parse_dataobj() from stk_command_new_from_pdu().
2010-04-27 09:30:39 -05:00
Yang Gu
30644d8195 stkutil: Fix the assignment to minimum set 2010-04-26 11:30:52 -05:00
Yang Gu
89d19b37d9 stkutil: Add parser for broadcast network info 2010-04-23 11:52:18 -05:00
Yang Gu
aa3c5807ad stkutil: Add parser for activate descriptor 2010-04-23 11:52:18 -05:00
Yang Gu
82f907e0bd stkutil: Add parser for registry app data objects 2010-04-23 11:52:18 -05:00
Yang Gu
fe042d8036 stkutil: Add parser for last envelope objects 2010-04-23 11:52:18 -05:00
Yang Gu
a6b7618478 stkutil: Add parser for MMS notification objects 2010-04-23 11:52:18 -05:00
Yang Gu
e5ce1bb8eb stkutil: Add parser for mm cid objects 2010-04-23 11:52:18 -05:00
Yang Gu
61d89f7a73 stkutil: Add parser for MMS transfer status 2010-04-23 11:52:18 -05:00
Yang Gu
18ee08e598 stkutil: Add parser for MMS identifier objects 2010-04-23 11:52:18 -05:00
Yang Gu
b1b75d90d5 stkutil: Add parser for MMS reference objects 2010-04-23 11:52:17 -05:00
Yang Gu
d6c5def964 stkutil: Add parser for meid objects 2010-04-23 11:52:17 -05:00
Yang Gu
150e5f3f66 stkutil: Add parser for frames information objects 2010-04-23 11:52:17 -05:00
Yang Gu
642a7ed3ec stkutil: Add parser for frame layout objects 2010-04-23 11:52:17 -05:00
Yang Gu
b0d9e6df17 stkutil: Add parser for browsing status objects 2010-04-23 11:52:17 -05:00
Zhenhua Zhang
7111325311 Fix a typo in telephony_error_to_str 2010-04-23 11:52:17 -05:00
Andrzej Zaborowski
6e28fd9396 Fix CTLV three-byte tag parsing. 2010-04-22 17:44:20 -05:00
Denis Kenzior
a7fb1624fd stkutil: Another trivial indentation fix 2010-04-21 10:29:27 -05:00
Yang Gu
29e03d316b Add parser for battery state objects 2010-04-21 10:28:43 -05:00
Yang Gu
3e52bb0503 Add parser for network search mode objects 2010-04-21 10:28:21 -05:00
Yang Gu
cabb1c89a8 Add parser for imeisv objects 2010-04-21 10:27:58 -05:00
Yang Gu
e374b558a2 Add parser for item text attribute list objects 2010-04-21 10:26:04 -05:00
Yang Gu
3e5bf2f6bb Add parser for cdma sms tpdu objects 2010-04-21 10:25:38 -05:00
Denis Kenzior
fdfff04073 stkutil: Refactor network access name
Don't allow 0 byte objects
2010-04-21 10:23:56 -05:00
Yang Gu
ee85ca8d7a Add parser for network access name objects 2010-04-21 10:18:16 -05:00
Denis Kenzior
d2830249c6 stkutil: Trivial indentation fix 2010-04-21 10:17:20 -05:00
Yang Gu
6ac8188ce2 Add parser for esn objects 2010-04-21 10:16:57 -05:00
Denis Kenzior
d211da15b2 stkutil: Refactor remote entity address
Don't assign to the return structure until we know we can successfully
parse.
2010-04-21 10:14:04 -05:00
Yang Gu
fdfb64d9f1 Add parser for remote entity address objects 2010-04-21 10:12:41 -05:00
Yang Gu
f78de0f762 Add parser for service availability objects 2010-04-21 10:10:56 -05:00
Denis Kenzior
24aee7a6b0 stkutil: Refactor attribute information
Only Bluetooth & IRDA are really defined by the specification
2010-04-21 10:09:12 -05:00
Yang Gu
9b911a8d59 Add parser for attribute information objects 2010-04-21 10:08:28 -05:00
Denis Kenzior
9fa51c4fb5 stkutil: Refactor service search
Only Bluetooth & IRDA are really defined by the specification
2010-04-21 10:07:32 -05:00
Yang Gu
2c2bcced5e Add parser for service search objects 2010-04-21 10:05:43 -05:00
Denis Kenzior
432effa755 stkutil: refactor device filter
Only Bluetooth & IRDA are really defined by the specification
2010-04-21 10:04:13 -05:00
Yang Gu
515eef4db0 Add parser for device filter objects 2010-04-21 09:08:53 -05:00
Yang Gu
05e13603f4 Add parser for service record objects 2010-04-21 09:03:14 -05:00
Yang Gu
aac9596714 Add parser for display parameters objects 2010-04-21 09:02:39 -05:00
Yang Gu
244d4d261e Add parser for access technology objects 2010-04-21 09:02:17 -05:00
Yang Gu
3dc106c627 Add parser for aid objects 2010-04-20 15:48:46 -05:00
Yang Gu
5bc4834c19 Add parser for UICC/TE transport interface level 2010-04-20 15:45:43 -05:00
Denis Kenzior
88be6109a2 Fix: Don't crash by calling sim watch too early
The modem sim watch is only watching for removed and ready conditions,
so no need to call it prematurely
2010-04-15 16:49:43 -05:00
Denis Kenzior
214c7dd776 Fix: Make distcheck happy 2010-04-15 16:49:43 -05:00
Denis Kenzior
50264a311d Style: Proper indentation 2010-04-15 16:49:42 -05:00
Denis Kenzior
9a9a05095d Refactor: Keep separate lists for pre/post atoms 2010-04-15 16:49:42 -05:00
Denis Kenzior
0ac64d66e8 Refactor: use a switch/case to make more readable 2010-04-15 16:49:42 -05:00
Andrzej Zaborowski
f27946b4b0 Remove post-sim atoms after SIM is extracted. 2010-04-15 16:49:42 -05:00
Denis Kenzior
1786c17c3f Refactor: Store the sim object inside voicecalls
Makes the logic a bit easier to follow.  Also use a switch/case inside
the sim state watcher.
2010-04-15 16:49:42 -05:00
Denis Kenzior
fa37f158d1 Style: Proper indentation 2010-04-15 16:49:42 -05:00
Denis Kenzior
ab4cae5479 Fix: The null check should be done elsewhere 2010-04-15 16:49:41 -05:00
Denis Kenzior
9271842748 Fix: Make the name a bit clearer 2010-04-15 16:49:41 -05:00
Denis Kenzior
632dc4c7e9 Fix: No glib types in oFono public API 2010-04-15 16:49:41 -05:00
Andrzej Zaborowski
1ca8671d11 Handle EFen list when SIM inserted / removed 2010-04-15 16:49:41 -05:00
Denis Kenzior
ee74f53160 Fix: Look for the STK atom, not SIM atom 2010-04-15 16:49:41 -05:00
Denis Kenzior
8f00272563 Fix: Process CBS sim downloads if STK atom exists 2010-04-15 16:49:41 -05:00
Andrzej Zaborowski
aad4d0de78 Add Sim Toolkit atom
- Add ofono_stk atom in stk.c
- Move envelope command from sim driver to stk driver
2010-04-15 16:49:40 -05:00
Denis Kenzior
228e1e735c Fix: Minor style issues 2010-04-15 16:49:40 -05:00
Denis Kenzior
c63b2c9d44 Fix: Uncomplicate the logic for SIM initialization
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-15 16:49:40 -05:00
Andrzej Zaborowski
6dc4799d1b Add SIM "Present" property. 2010-04-15 16:49:40 -05:00
Andrzej Zaborowski
ddfe8acf11 Drivers can notify core of SIM insertion / removal
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-15 16:49:40 -05:00
Andrzej Zaborowski
22cbe98146 Extend sim-ready watch with card insert/eject 2010-04-15 16:49:40 -05:00
Denis Kenzior
962d2fff50 Fix: Use a union for other address objects 2010-04-14 13:10:45 -05:00
Yang Gu
f86c13ce8b Add parser for other address objects 2010-04-14 12:57:28 -05:00
Yang Gu
db1e61cf3c Add parser for card reader identifier objects 2010-04-14 12:52:09 -05:00
Yang Gu
c48a6f0c21 Add parser for channel status objects 2010-04-14 12:50:58 -05:00
Yang Gu
491832b907 Add parser for buffer size objects 2010-04-14 12:49:13 -05:00
Yang Gu
c25fba0f07 Add parser for channel data length objects 2010-04-14 12:41:33 -05:00
Yang Gu
4cf275ba8d Add parser for channel data objects 2010-04-14 12:41:19 -05:00
Yang Gu
3bc3d985ab Add parser for bearer description objects 2010-04-14 12:40:32 -05:00