Commit Graph

884 Commits

Author SHA1 Message Date
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
Aki Niemi 02acd8441d Enable USSD_STATE_USER_ACTION
If the network requests user action in the response to an MO USSD, we
cannot immediately return to USSD_STATE_USER_IDLE. Instead,
USSD_STATE_USER_ACTION is entered.

Note that it is left up to the driver to notify() when the USSD
transaction is closed by the network due to inactivity. Another way to
return to USSD_STATE_IDLE is for the user to cancel() the transaction.
2010-02-09 23:19:11 +02:00
Aki Niemi 8730339f40 Move USSD status enum to header 2010-02-09 22:31:32 +02:00
Denis Kenzior ea771ec186 Fix: Tweak gprs attach logic
We use driver_attached to track whether the driver is attached /
attaching.  Unfortunately we only set it when set_attached succeeds.
Instead we should set it right away when calling set_attached, so we
cover pending attaches as well.
2010-02-08 15:33:17 -06:00
Denis Kenzior d11505f751 Fix: Add recheck flag to gprs
When a powered is toggled quickly, we ignore the second request.  This
flag tells us that we should recheck what the attach status should be
once the current operation finishes
2010-02-08 15:32:04 -06:00
Denis Kenzior 87ca1b0c8f Fix: Don't use ofono_debug directly in the core
Use DBG macro which is integrated with the new debug framework.
2010-02-08 11:54:03 -06:00
Denis Kenzior dc16aa7937 Fix: Use snprintf instead of sprintf in the core 2010-02-05 10:33:58 -06:00
Aki Niemi 8d4004d182 Add radio settings atom and driver API
This interface exposes a read-write property for radio access technology
selection mode.
2010-02-04 23:43:18 +02:00
Denis Kenzior ad5b2fd26f Fix: Unnecessary initializations 2010-02-04 00:24:14 -06:00
Denis Kenzior 08b26238c1 Fix: missing break statement 2010-02-04 00:05:57 -06:00
Denis Kenzior e5bcf50a0c Fix: Wrong variables use
Copy/paste error from above resulted in incorrect variables being used
for comparison.
2010-02-03 23:58:27 -06:00
Denis Kenzior fa433a6acc Fix: Check for \r in UCS2 alphabets 2010-02-03 23:28:41 -06:00
Marcel Holtmann 7d7a61f933 Fix some leftover oudated copyrights 2010-01-28 22:10:51 +01:00
Marcel Holtmann a82a62bd31 Remove empty block for SIGPIPE handling 2010-01-26 10:07:56 +01:00
Marcel Holtmann e4850f2eeb Add support for dynamic debug feature 2010-01-26 10:06:53 +01:00
Denis Kenzior 675ef623c7 Fix: Process CBS settings even if no EFcbmid
If EFcbmid is not present, corrupt or empty the code that bootstraps the
CBS settings is never called.
2010-01-20 21:35:33 -06:00
Denis Kenzior 03fd69ace9 Fix: Print errors for unlikely CBS failures
These indicate driver / hardware issues rather than anything else.
2010-01-20 21:34:19 -06:00
Denis Kenzior ea6ab1ea2b Fix: NULL check both set_topics and clear_topics 2010-01-20 21:08:52 -06:00
Denis Kenzior 11de395af9 Fix: Make the powered setting actually work 2010-01-20 21:03:17 -06:00
Denis Kenzior e829727224 Fix: Default to powered=true for CBS 2010-01-20 10:26:02 -06:00
Marcel Holtmann e433ddc100 Add command line option for printing version number 2010-01-16 19:29:43 -08:00
Denis Kenzior d9bb71e521 Fix: Don't try to unregister a null mcc/mnc
Network operators with null MCC & MNC are not registered, but we try to
unregister them.  Don't do this as it causes a crash.
2010-01-13 11:40:15 -06:00
Denis Kenzior 506eb11b02 Make setting CPHS MWIS actually work 2010-01-12 18:20:51 -06:00
Andrzej Zaborowski 6c1a997902 Persist CBS Topics list, handle EF-CBMI, EF-CBMIR.
The two SIM files are only used to bootstrap the topics list value
if there's no previous value.
2010-01-12 18:03:34 -06:00
Denis Kenzior 9bed04ca2f Style: Trailing whitespace & extra lines 2010-01-12 17:54:37 -06:00
Denis Kenzior bb0dfd9b6d Fix: Make the CPHS MWIS version actually work 2010-01-12 17:54:18 -06:00
Denis Kenzior 0fb3873e6d Refactor: Move copy-pasted code into a function 2010-01-12 17:53:56 -06:00
Denis Kenzior 5206f9a9dc Fix: Refactor error conditions 2010-01-12 15:57:23 -06:00
Denis Kenzior deb9d88669 Reorder CPHS initializatin order
Two issues
  - CPHS MWIS file must always be read, the specification isn't clear
    whether it depends on the Mailbox service to be available
  - CPHS MBDN file must be read after we read EFmbdn, otherwise it will
    not be processed properly
2010-01-12 15:55:19 -06:00
Denis Kenzior 0d7f8933ff Fix: Create a dedicated callback for syncs
When synchronizing CPHS MBDN, create a separate callback that doesn't
try to emit signals, etc since the main work has already been done when
EFmbdn was set successfully.
2010-01-12 15:53:19 -06:00