Commit Graph

1384 Commits

Author SHA1 Message Date
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