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
Yang Gu
9b3d97d705
Add parser for browser termination cause objects
2010-04-14 12:38:58 -05:00
Yang Gu
03b6249f1e
Add parser for provisioning file reference objects
2010-04-14 12:36:52 -05:00
Yang Gu
b08d90c816
Refactor: Break out stk_file iterator
...
For use by other data object parsers besides file lists
2010-04-14 12:34:02 -05:00
Yang Gu
6780c0282a
Add parser for bearer objects
2010-04-14 12:25:08 -05:00
Denis Kenzior
d63e33d5e5
Fix: Handle NULL URLs
2010-04-14 12:23:42 -05:00
Yang Gu
97bd01ba1b
Add parser for url objects
2010-04-14 12:22:22 -05:00
Yang Gu
7fce623ea9
Fix the logic when parsing c-apdu objects
2010-04-14 12:16:08 -05:00
Denis Kenzior
398acbc976
Fix: Make the C-APDU logic more readable
2010-04-02 11:28:02 -05:00
Denis Kenzior
c2d46ba4eb
Style: Multiline comments
2010-04-02 11:20:44 -05:00
Denis Kenzior
5665cefd47
Fix: Tweak the language parser
2010-04-02 11:19:03 -05:00
Denis Kenzior
af3af57696
Fix: Remove erroneous comment
2010-04-02 11:11:53 -05:00
Denis Kenzior
30c07824ed
Fix: AT Commands are probably just text
2010-04-02 11:11:13 -05:00
Denis Kenzior
6fb687b996
Fix: Trivial indentation issues
2010-04-02 11:08:41 -05:00
Yang Gu
46f5f65214
Add parser for browser identity objects
2010-04-02 11:05:42 -05:00
Yang Gu
f5c0041240
Add parser for language objects
2010-04-02 11:05:17 -05:00
Yang Gu
fa846bd4a4
Add parser for dtmf string objects
2010-04-02 11:04:44 -05:00
Yang Gu
2490058b08
Add parser for bc repeat indicator objects
2010-04-02 11:03:07 -05:00
Yang Gu
0958247c3f
Add parser for at response objects
2010-04-02 11:02:53 -05:00
Yang Gu
94b4c25517
Add parser for at command objects
2010-04-02 11:02:42 -05:00
Yang Gu
1ae1fc8778
Add parser for date-time and time zone objects
2010-04-02 11:01:56 -05:00
Yang Gu
b20e0d2bf5
Make function decode_scts public
2010-04-02 11:00:56 -05:00
Yang Gu
5b7de64aca
Add parser for timer value objects
2010-04-02 10:59:45 -05:00
Yang Gu
8bc04ba93a
Refactor: Break out semi-octet decoder
...
Refactor decode_scts to use this function
2010-04-02 10:58:53 -05:00
Yang Gu
8bad7e540a
Add parser for timer identifier objects
2010-04-02 10:56:15 -05:00
Yang Gu
5f9f4fedee
Add parser for r-apdu objects
2010-04-02 10:55:55 -05:00
Yang Gu
afc2cb84e3
Add parser for c-apdu objects
2010-04-02 10:54:47 -05:00
Yang Gu
8e91f477f9
Add parser for card atr objects
2010-04-02 10:47:37 -05:00
Yang Gu
eef57d221c
Add parser for card reader status objects
2010-04-02 10:46:23 -05:00
Denis Kenzior
0aebcb342c
Fix: Regression in PIN validity checking
2010-04-02 09:17:34 -05:00
Andrzej Zaborowski
b6d4dd78c4
Refactor: Return a string from USSD Respond method
...
Return network's USSD reponses from the Respond method instead of
signaling over D-Bus. This should make the UI writer's job a little
easier.
2010-03-31 13:49:31 -05:00
Andrzej Zaborowski
42ef218668
Use stkutil named constants in sim.c
2010-03-31 13:06:14 -05:00
Denis Kenzior
33e11e910c
Fix: Be more consistent with other boundary checks
2010-03-31 12:22:57 -05:00
Denis Kenzior
8768afb6df
Style: indentation fixes
2010-03-31 12:20:02 -05:00
Yang Gu
744c86a78b
Fix: Increate iterator when parsing fails
...
If the comprehension TLV tag matches the expected handler, and the
handler fails to parse the tag, then increase the iterator.
2010-03-31 12:16:39 -05:00
Yang Gu
3436bcac05
Rename stk_icon_identifier to stk_icon_id
2010-03-31 12:15:31 -05:00
Yang Gu
be20435b58
Add parser for item icon identifier list objects
2010-03-31 12:15:08 -05:00
Yang Gu
0300462b42
Add enum for icon qualifier
2010-03-31 12:14:33 -05:00
Yang Gu
ee4a3d2b12
Add parser for call control requested action objects
2010-03-31 12:14:24 -05:00
Yang Gu
f15a5c73b4
Add parser for transaction identifier objects
2010-03-31 12:13:46 -05:00
Yang Gu
8b57078825
Add parser for location status objects
2010-03-31 12:13:17 -05:00
Yang Gu
51889d7f03
Add parser for cause objects
2010-03-31 12:12:57 -05:00
Yang Gu
fc85e158e9
Add parser for event list objects
2010-03-31 12:12:10 -05:00
Yang Gu
a60ae2b7ba
Add parser for items next action indicator objects
2010-03-31 12:11:39 -05:00
Yang Gu
d9f063f431
Reorder the declarations of stk data objects
2010-03-31 12:10:40 -05:00
Denis Kenzior
f60e6ce134
Refactor: Text / Default text parsing
2010-03-30 10:21:57 -05:00
Denis Kenzior
402c27f914
Refactor: Break out the STK text decoding utility
...
This can be used for other data objects than text and default text
2010-03-30 10:21:56 -05:00
Denis Kenzior
f8140bf66b
Refactor: generic boolean parsers
2010-03-30 10:21:54 -05:00
Denis Kenzior
8646e13bf3
Refactor: Don't repeat tag checking ad naseum
...
The tag checking can be done safely once inside the main parsing
function, no need to repeat it in the individual object parsers.
2010-03-30 10:21:54 -05:00
Denis Kenzior
5b9888ce3b
Style: More consistent indentation
2010-03-30 10:21:53 -05:00
Denis Kenzior
1889070314
Fix: measurement results are binary data
2010-03-29 16:40:14 -05:00
Yang Gu
8045516d58
Add parser for network measurement results objects
2010-03-29 16:39:43 -05:00
Marcel Holtmann
9ee614b64b
Check for capabilities support via libcap-ng
2010-03-29 11:06:04 -07:00
Denis Kenzior
7972f844c7
Refactor: Simplify the internal GPRS API
...
We no longer expose lac/ci/tech attributes obtained from CGREG
(some modems, like ISI, do not even report them for GPRS separately).
Simplify the internal gprs driver api to only report the registration
status (e.g. home, roaming, searching, not registered, etc)
2010-03-26 23:00:28 -05:00
Denis Kenzior
88994bbe81
Refactor: Get rid of DCM properties
...
Be conformant with the API changes from the previous commit
2010-03-26 23:00:28 -05:00
Denis Kenzior
59a2bcd380
Fix: No need to malloc memory for this
2010-03-25 11:39:45 -05:00
Yang Gu
b42248b480
Add parser for help request objects
2010-03-25 11:37:09 -05:00
Yang Gu
765861b82b
Refactor: Use common bool to implement imm resp
2010-03-25 11:36:49 -05:00
Yang Gu
77747fbc4f
Add parser for common bool object
2010-03-25 11:36:11 -05:00
Yang Gu
dcb62b8df1
Add parser for imei objects
2010-03-25 11:36:11 -05:00
Yang Gu
cf38ef05ba
Add parser for location information objects
2010-03-25 11:36:11 -05:00
Yang Gu
a13db81229
Make the function to parse mcc and mnc public
2010-03-25 11:36:11 -05:00
Yang Gu
8ecf7fd24d
Rename: stk data object enum names
...
Be more consistent
2010-03-25 11:35:32 -05:00
Denis Kenzior
e05318aa5a
Refactor: Rename netreg Operator property to Name
2010-03-25 10:57:52 -05:00
Denis Kenzior
538cd6a1cb
Refactor: Rename radio setting type names
2010-03-25 10:42:48 -05:00
Denis Kenzior
77693b697d
Rename AvailableOperators to Operators
2010-03-25 10:37:46 -05:00
Denis Kenzior
1e783b33d9
Refactor: Simplify Technology values
...
Applications don't really understand our current values very well and
would need to look up the spec. Instead we change to much more commonly
accepted terms.
2010-03-25 10:29:01 -05:00
Denis Kenzior
9390dbaf31
Refactor: Remove MobileNetworkCodeLength property
...
Replaced by MNC/MCC properties which is more intuitive for use by
external applications.
2010-03-25 10:21:37 -05:00
Yang Gu
dd2a1e648b
Add enum for cdma sms tpdu data objects
2010-03-24 15:23:50 -05:00
Yang Gu
6e70b6eeea
Fix enum for more time proactive command
2010-03-24 15:23:49 -05:00
Denis Kenzior
d3ac9188f0
Fix: Handle broken modems that returns empty COPS
2010-03-23 21:16:50 -05:00
Denis Kenzior
01a4a93bee
Move netreg interface definitions to dbus.h
2010-03-23 13:35:58 -05:00
Denis Kenzior
5609034d97
Style: Fixup some style issues
...
- Large if statements should be handled as switchcase
- Avoid initialization of variables, even if code needs to be rearranged
2010-03-23 12:31:00 -05:00
Yang Gu
0ef68e31e2
Add parser for file list objects
2010-03-23 12:12:03 -05:00
Denis Kenzior
a5d54581ad
Move sim manager interface definition to dbus.h
2010-03-22 15:39:13 -05:00
Denis Kenzior
0e09221ea5
Move cbs interface definition to dbus.h
2010-03-22 15:36:04 -05:00
Denis Kenzior
500f291030
Move call volume interface definition to dbus.h
2010-03-22 15:33:56 -05:00
Denis Kenzior
bbfd7db3cc
Move mwi interface definition to dbus.h
2010-03-22 15:31:03 -05:00
Denis Kenzior
6425706c9d
Move radio settings interface definition to dbus.h
2010-03-22 15:29:03 -05:00
Denis Kenzior
5ab70ab5f2
Move sms interface definition to dbus.h
2010-03-22 15:28:08 -05:00
Denis Kenzior
e1e036b5df
Move voicecall interface definitions to dbus.h
2010-03-22 15:27:08 -05:00
Marcel Holtmann
256c6e14c7
Revert the default statement for PIN type checking
...
Also fix the coding style for the switch statement and remove the
number assignment for an internal enum.
2010-03-20 02:26:57 +01:00
Denis Kenzior
d6e78f7828
Trivial: Add break statement
...
In case we ever extend the enum/switch and unwittingly introduce a bug.
2010-03-19 13:52:57 -05:00
Pekka Pessi
9a398a1087
Fix: Check password length based on its type
...
The different password types have different length requirements, so
update is_valid_pin to validate according to the password type being
validated (PIN / PUK / NET)
2010-03-19 13:48:04 -05:00
Pekka Pessi
3f6da155bd
Fix: Interrogation of barring does not need pin
2010-03-18 11:36:19 -05:00
Pekka Pessi
7b62731ded
Fix: Number of barring services is constant
2010-03-18 11:36:09 -05:00
Denis Kenzior
d1c85bd14c
Style: Remove the now unnecessary braces
2010-03-18 11:27:06 -05:00
Pekka Pessi
cf18a9df27
Fix: Return newly-queried barring status
...
We were returning the contents of the old locks
2010-03-18 11:13:22 -05:00
Pekka Pessi
15a4ecf8a8
Fix: call barring can only be (de)activated
2010-03-18 11:09:36 -05:00
Denis Kenzior
b3a6883125
Fix: Use g_try_malloc when parsing stk result
2010-03-16 17:42:18 -05:00