Commit Graph

2526 Commits

Author SHA1 Message Date
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
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 4cb2eec891 teststk: Add test for language notification parser 2010-05-25 17:55:58 -05:00
Yang Gu 5129bb2998 stk: Add parser for language notification commands 2010-05-25 17:36:52 -05:00
Yang Gu b4e081f0e1 test-stk: Add test for send dtmf parser 2010-05-25 17:36:30 -05:00
Yang Gu 0e983e965e stk: Add parser for send dtmf commands 2010-05-25 17:34:29 -05:00
Yang Gu 9b0c13d049 test-stk: Add test for run at command parser 2010-05-25 17:28:55 -05:00
Yang Gu f21e69c7a8 stk: Add parser for run at command commands 2010-05-25 17:19:38 -05:00
Yang Gu 3af4600368 test-stk: Add test for setup idle mode text parser 2010-05-25 17:17:28 -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
Andrzej Zaborowski a20d4e8cae test-stkutil: Add Select Item response tests 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 0366159a66 test-stkutil: Add Set Up Menu response tests 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 35e2722b01 test-stkutil: Add Poll Interval response tests 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 fad142acf2 test-stkutil: Add Play Tone response tests 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 6da5a6ce09 test-stkutil: Add Send SMS response tests 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 febeb5d9c5 test-stkutil: Add Get Input response tests 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 355b038c6f test-stkutil: Add Get Inkey response tests 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