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
Denis Kenzior
e246b414c9
Fix: Use g_try_malloc when parsing stk address
2010-03-16 17:42:08 -05:00
Denis Kenzior
213e1ed65a
Fix: Use g_try_malloc instead of g_malloc in util
...
In these cases we were checking for NULL return, but the function used
should have been g_try_malloc instead.
2010-03-16 17:21:06 -05:00
Denis Kenzior
68b01ce93e
Refactor: create_dirs logic
...
- Remove reference to g_malloc and replace with g_try_malloc
- Be extra pedantic on the inputs
- Refactor the logic to make it slightly easier to follow
2010-03-16 17:19:01 -05:00
Denis Kenzior
62007cd074
Fix: Fixup error paths in sim_op_check_cached
2010-03-16 15:45:04 -05:00
Denis Kenzior
b025179101
Fix: avoid assigning to return structure on error
2010-03-16 15:30:07 -05:00
Denis Kenzior
66557e0d2b
Style: Spaces before / after arithmetic operations
2010-03-16 15:30:07 -05:00
Denis Kenzior
d18d66b712
Style: Align the enum values to be easier to read
2010-03-16 15:30:07 -05:00
Yang Gu
26f28df18a
Handle the conversion failure when parsing item
2010-03-16 15:30:06 -05:00
Yang Gu
69846439e6
Fix the structure of stk_subaddress
2010-03-16 15:30:06 -05:00
Denis Kenzior
79630b2bd4
Add stk tone type enum
2010-03-15 21:11:11 -05:00
Denis Kenzior
e64596f1dc
Add parser for STK send sms proactive commands
2010-03-15 21:02:06 -05:00
Denis Kenzior
a16f270eb1
Refactor: stk send_sms datastructure
2010-03-15 21:02:06 -05:00
Denis Kenzior
6986cc4760
Refactor: stk result dataobject
2010-03-15 21:02:06 -05:00
Denis Kenzior
a74bd04edf
Reorder: stk response length structure
...
Follow the order of the specification
2010-03-15 21:02:06 -05:00
Denis Kenzior
12e411e6fc
Refactor: stk item id dataobj
2010-03-15 21:02:06 -05:00
Denis Kenzior
6404e7c4bd
Refactor: stk item dataobject
2010-03-15 21:02:06 -05:00
Denis Kenzior
44476dac9e
Refactor: stk configuration capability parameters
2010-03-15 21:02:06 -05:00
Denis Kenzior
e5dff20ff5
Refactor: Update the subaddress structure
2010-03-15 21:02:06 -05:00
Denis Kenzior
bbf67bd4a0
Refactor: stk alpha identifier object
...
Style issues, we must also return FALSE in case conversion fails
2010-03-15 21:02:02 -05:00
Denis Kenzior
1dfb59b610
Refactor: stk address structure
2010-03-10 13:17:22 -06:00
Yang Gu
ea1dc4811f
Add parser for tone objects
2010-03-10 13:14:12 -06:00
Yang Gu
3a826529e9
Add parser for sms tpdu objects
2010-03-10 13:14:12 -06:00
Yang Gu
81e01f82cc
Add parser for result objects
2010-03-10 13:14:12 -06:00
Yang Gu
a2beff9011
Add parser for item identifier objects
2010-03-10 13:14:12 -06:00
Yang Gu
08faed2287
Add parser for item objects
2010-03-10 13:14:12 -06:00
Yang Gu
cb33d07764
Add parser for capability configuration parameters objects
2010-03-10 13:14:12 -06:00
Yang Gu
7b663e9474
Add parser for subaddress objects
2010-03-10 13:14:12 -06:00
Yang Gu
94848b6feb
Add parser for alpha identifier objects
2010-03-10 13:14:11 -06:00
Yang Gu
ec31f1eabb
Add parser for address objects
2010-03-10 13:14:11 -06:00
Denis Kenzior
4c5aaabca4
Fix: warning
...
src/stkutil.c: In function ‘parse_dataobj_imm_resp’:
src/stkutil.c:191: error: unused variable ‘data’
2010-03-02 12:39:15 -06:00
Denis Kenzior
b06cce24d8
stk: Validate src/dst combination
2010-03-01 18:16:23 -06:00
Denis Kenzior
2ea8877b48
Add support for Get Input proactive command
2010-03-01 18:00:57 -06:00
Denis Kenzior
700a0ece69
Support Default Text data objects
2010-03-01 18:00:57 -06:00
Denis Kenzior
2c1cdebd1a
Add parser for Response Length objects
2010-03-01 18:00:54 -06:00
Denis Kenzior
704d6175b7
Cleanup: Move some stuff around to be more logical
2010-03-01 17:56:16 -06:00
Denis Kenzior
54ac375066
Add support for GET INKEY proactive command
2010-03-01 17:42:02 -06:00
Denis Kenzior
f4f6284f26
Add parser for Frame Identifier object
2010-03-01 17:21:47 -06:00
Denis Kenzior
c8c318d8b9
Add parser for text attribute objects
2010-03-01 16:18:17 -06:00
Denis Kenzior
e0501c4930
Add parser for Duration objects
2010-03-01 16:02:33 -06:00
Denis Kenzior
36c9201246
Style: add relevant sections for dataobj parsers
2010-03-01 15:26:33 -06:00
Denis Kenzior
95d44f76b5
Add parser for STK Immediate Response objects
2010-03-01 15:26:31 -06:00
Denis Kenzior
e8fab61c16
Add parsing for Icon Identifier objects
2010-03-01 15:15:37 -06:00
Andrzej Zaborowski
3a9cd4fc03
Use stk_envelope_type constant name in sim.c
2010-02-27 11:40:16 -06:00
Andrzej Zaborowski
9ee8e9f8f0
Fix: Enter RESPONSE_SENT state in ussd response cb
2010-02-27 11:22:31 -06:00
Denis Kenzior
172c68edf5
stk: Refactor proactive command parser
...
Make it a bit easier to extend by using va_args
2010-02-27 10:20:23 -06:00
Denis Kenzior
6497d29719
stk: Add text attribute structure
2010-02-27 10:19:51 -06:00
Denis Kenzior
5144254f62
stk: Add Duration structure
2010-02-27 10:19:19 -06:00
Denis Kenzior
4603965fc3
stk: Add icon identifier structure
2010-02-27 10:17:22 -06:00
Denis Kenzior
0418a682b8
Add duration type enum
2010-02-27 10:09:30 -06:00
Denis Kenzior
d90aa1561f
Add basic support for USAT/CAT proactive commands
...
Only display_text with mandatory fields is currently supported.
2010-02-23 17:10:26 -06:00
Denis Kenzior
19a20e4ccd
Add COMPREHENSION TLV iterator utilities
2010-02-23 12:03:04 -06:00
Denis Kenzior
d98be70fa9
Add Simple TLV iterator utilities
2010-02-23 12:03:03 -06:00
Denis Kenzior
0db0108120
Fix: EFspdi parsing
...
EFspdi is a nested BER-TLV structure. The outside BER-TLV has the tag
A3, and the inside contains the PLMN list TLV with tag 0x80.
2010-02-23 12:03:03 -06:00
Denis Kenzior
5a86a7408a
Rewrite ber_tlv_find_tag to use ber_tlv iterator
2010-02-23 12:03:03 -06:00
Denis Kenzior
077cfe284e
Move from header to implementation
2010-02-23 12:03:03 -06:00
Denis Kenzior
0d163e6295
Add BER-TLV iterator utilities
2010-02-23 12:03:00 -06:00
Denis Kenzior
6e03aa7c0b
Add STK device identity enum
2010-02-18 16:21:48 -06:00
Denis Kenzior
3bc0024817
Add enumeration for STK Comprehension TLV objects
2010-02-18 10:58:22 -06:00
Denis Kenzior
1da0ea3b1d
Add Sim Toolkit Envelope type enum
2010-02-17 18:23:56 -06:00
Denis Kenzior
32a9931056
Add Sim Toolkit Proactive Command enum
2010-02-17 18:23:53 -06:00
Denis Kenzior
9aeed6dbcc
Add stubs files for Sim Toolkit Utilities
2010-02-17 15:10:33 -06:00
Denis Kenzior
1c3aaaacc6
Refactor: ussd user response
...
When the user sends a response, the network can still continue the
dialog, it is not a final response and we cannot transition to an idle
state when the command finishes. Instead we set it back to a special
state and treat subsequent network responses as unsolicited.
2010-02-16 10:18:04 -06:00
Denis Kenzior
1bebc1b469
Cleanup: Minor API tweaks for USSD
2010-02-16 10:17:52 -06:00
Andrzej Zaborowski
740f8e3f09
Handle network-initiated ussd requests.
...
This adds the methods on the D-bus interface to allow the
client to handle USSD requests from the network, according to 22.090.
Unfortunately this document is not clear on every point and some
details can't be implemented. This includes reporting unsupported
request to the network, unsupported language, ME busy etc, because
there isn't an AT command for that.
2010-02-16 10:17:40 -06:00
Andrzej Zaborowski
0bac79f1a2
Fix: Use g_dbus_emit_signal in call-barring,meter
2010-02-15 14:57:25 -06:00
Denis Kenzior
1ab40c469b
Cleanup: Get rid of USSD_FLAG_PENDING
2010-02-15 11:04:08 -06:00
Denis Kenzior
af4d4aeaeb
Fix: Trivial mistake
2010-02-12 18:48:32 -06:00
Denis Kenzior
d87f285fdf
Add support for modem names
2010-02-12 18:29:41 -06:00
Inaky Perez-Gonzalez
ec7b597bd9
Fix: plugin version mismatch warning
...
When complaining about plugin version mismatch, print the
version information
2010-02-10 23:52:13 -06:00
Inaky Perez-Gonzalez
8b54792cdd
Clean: no error path needed
...
Remove unneeded error path and document the rationale behind it in
__ofono_modem_get_list() and manager_get_properties().
2010-02-10 18:06:46 -06:00
Denis Kenzior
4b81513d95
Style: if statement
2010-02-10 16:41:31 -06:00