Commit Graph

2562 Commits

Author SHA1 Message Date
Inaky Perez-Gonzalez cce6bb2674 build: Fix install of udev rules in VPATH builds
When the build directory is different than the source directory, we
need to specify the source prefix to the original file we are
copying.
2010-05-28 09:48:34 -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
Pasi Miettinen 77788d87af TODO: Owner of Status report task 2010-05-28 09:01:42 -05:00
Pekka Pessi 16656d6a32 TODO: Flight mode owner 2010-05-28 09:01:42 -05:00
Marcel Holtmann 3e1855071e Add array decoding for emergency numbers 2010-05-28 10:32:51 +02:00
Denis Kenzior 6fcb64d422 test: Update list-modems to the new API 2010-05-27 14:59:04 -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 84d5303b06 isimodem: add set_online and post_online 2010-05-27 14:28:16 -05:00
Denis Kenzior a7d02fbf5c isimodem: More cleanup of bad style 2010-05-27 14:15:30 -05:00
Pekka Pessi 48041a0e60 Fixed style issues in isimodem voicecall. 2010-05-27 14:04:32 -05:00
Pekka Pessi 654c0ef73b Eliminated bool, true and false from isimodem. 2010-05-27 13:41:51 -05:00
Pekka Pessi a97a97147d Eliminated bool, true and false from gisi 2010-05-27 13:07:15 -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 6643e115a8 teststk: Add test for launch browser parser 2010-05-27 10:26:36 -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 fd1e71163c test-stkutil: Add cases for send sms parser 2010-05-27 07:27:26 -05:00
Yang Gu a9cd641855 smsutil: Check that udl is less than 140 2010-05-27 07:21:28 -05:00
Yang Gu beb4e2c71a teststk: Use check_common_text() to check string 2010-05-27 07:08:42 -05:00
Yang Gu 55a2596e84 teststk: Add check of len in byte array 2010-05-27 07:07:18 -05:00
Yang Gu d5f3a4bc96 teststk: Use sim bcd version 2010-05-27 07:05:04 -05:00
Yang Gu ea01533cd6 stk: Use sim bcd version 2010-05-27 07:04:55 -05:00
Pekka Pessi 2744b64f64 Add Online property to modem-api.txt 2010-05-26 21:03:17 -05:00
Pekka Pessi 8017f4c0b2 Add: test scripts online-modem and offline-modem 2010-05-26 21:03:17 -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
Marcel Holtmann 7bfe56efa2 Release 0.21 2010-05-26 21:02:58 +02:00
Marcel Holtmann 1ed3f6e707 Mention Kalle's contributions 2010-05-26 20:01:50 +02:00
Kalle Valo 125c7c392f atmodem: fix crash during context deactivation
Ofono either crashed or busy looped with my Huawei E1552 3G modem when I
tried to deactivate GPRS context. The reason was that gcd->chat was
unreferenced already in setup_ppp() but the chat was still accessed
later in at_gprs_deactivate_primary().

To fix the problem, change the logic instead to suspend chat session
for PPP and resume when PPP has disconnected. Now it doesn't crash
anymore.

Deactivation still doesn't work properly with Huawei E1552, and most
probably with other Huawei modems, because the modem hangs up the chat
line after PPP deactivation. This needs to be fixed separately. The
workaround is to reboot the modem, for example physically unplug and plug
it in again.
2010-05-26 12:34:07 -05:00
Kalle Valo bf7243eda4 atmodem: refactor context deactivation
The old way of using CGACT is no longer needed.  It is enough
that we shutdown PPP. Recommended by Denis.
2010-05-26 12:32:03 -05:00
Andrzej Zaborowski 79b3199f23 test-stkutil: Use gcc4.3 compatible initialisers.
Reformat according to ideas on IRC.
2010-05-26 12:08:31 -05:00