Commit Graph

2992 Commits

Author SHA1 Message Date
Andrzej Zaborowski a15296cf12 calypso: Add a Calypso STK driver 2010-08-06 11:59:42 -05:00
Andrzej Zaborowski 1ba7fbd3c4 calypso: Check if SIM is present on modem startup
Like in case of MBM modem, the SIM slot is not easily accessible
while the device is running so we assume there's no need to check
for SIM presence after startup.
2010-08-06 11:55:09 -05:00
Andrzej Zaborowski 303394910f phonesim: Don't use VENDOR_PHONESIM for calypso
Also move the STK initialisation to post-sim because it is more logical
there (even if it makes no difference under phonesim).
2010-08-06 11:53:27 -05:00
João Paulo Rechi Vita f01de438bd huawei: Fix SIM state logic
Add support for voice-only SIM cards and enable phonebook atom for
non-voice modems.
2010-08-05 14:19:56 -05:00
Denis Kenzior 1b4a5c47ab doc: Update coding-style.txt for enums 2010-08-05 14:04:24 -05:00
Inaky Perez-Gonzalez 8f570a7969 sms: struct tx_queue_entry: add a destructor
Introduce a destructor function to encapsulate all the release steps
for this data type, as more are to be added later.
2010-08-05 11:59:34 -05:00
Inaky Perez-Gonzalez ed8ef7a1e8 storage: make write_file transaction-safe
write_file(), as written wasn't transaction-safe; a crash bewtween a
file being open and the buffer being written before a safe close would
leave the file with a set of undetermined contents.

Modified to the file is written to a temporary file name; once
completed, it is renamed to the final name. This way, a crash in the
middle doesn't leave half-baked files.
2010-08-05 11:59:22 -05:00
Denis Kenzior c8219725f7 doc: Fixup some long line / space at eol issues 2010-08-05 11:21:25 -05:00
Gustavo F. Padovan c441ca167d bluetooth: define DBUS_TIMEOUT macro 2010-08-05 10:34:38 -05:00
Denis Kenzior 8eb9425f32 sim: Use less space for locked_pins
Use only as required, since we only track PINs in this one, not PUKs
2010-08-05 10:19:04 -05:00
Denis Kenzior 764afde1fe sim: Fix LockedPins in case SIM wants a PUK first
In the case that oFono is started with the SIM asking for a PUK, we
don't report LockedPins properly.
2010-08-05 10:00:57 -05:00
Denis Kenzior f223cccfd0 test: Update simple-agent with new capabilities 2010-08-04 15:14:41 -05:00
Denis Kenzior 5a6151a363 stkagent: No need to split these on two lines 2010-08-04 14:49:42 -05:00
Denis Kenzior 9b284c7c35 stk: Rip out the HELP stuff for now
We're not supporting it in the current API and doing so is actually
very painful.
2010-08-04 14:47:38 -05:00
Denis Kenzior 7241a0e314 stkagent: Introduce CALLBACK_END macro 2010-08-04 14:40:08 -05:00
Andrzej Zaborowski c09dfb8473 stk: Handle the Get Input proactive command 2010-08-04 14:29:24 -05:00
Andrzej Zaborowski e620d7d99e stkagent: Implement RequestInput/RequestDigits 2010-08-04 14:28:21 -05:00
Andrzej Zaborowski ed169aa02f stk: Handle the Get Inkey proactive command 2010-08-04 14:13:16 -05:00
Andrzej Zaborowski 939fc1273c stkagent: Implement RequestConfirmation/Key/Digit 2010-08-04 14:13:06 -05:00
Denis Kenzior 21c453d43a doc: Update standards.txt 2010-08-03 10:55:07 -05:00
Marcel Holtmann d8b45a1399 Release 0.26 2010-08-02 13:11:43 -07:00
João Paulo Rechi Vita 4c8e084bf4 huawei: fix double include of GPRS header 2010-08-02 12:16:40 -07:00
Zhenhua Zhang 26efde3d7b Fix busylooped in ppp_disconnect for huawei modem
Huawei modem closes the modem port after PPP disconnect. So the channel
of gatchat is NULL in ppp_disconnect. In such case, we resume the chat
and it causes huawei_disconnect() get called and the gprs context is
removed later.

Before removing this gprs context, we should reply the pending DBus
message to the client.
2010-08-02 14:10:37 -05:00
Denis Kenzior b952c34c38 stkagent: Remove stk_agent_busy 2010-07-30 18:59:44 -05:00
Denis Kenzior 8697cbbba8 stk: Remove unneeded check
The agent_remove_source will be canceled as part of the session agent
destruction notify.
2010-07-30 18:50:38 -05:00
Denis Kenzior 41017a11f5 stk: Fix typo in comment 2010-07-30 18:34:49 -05:00
Denis Kenzior e2d6d56374 stk: Handle the case where no agent is registered 2010-07-30 18:17:57 -05:00
Denis Kenzior 5e46a73ed0 test: Add a simple STK Agent script 2010-07-30 17:19:56 -05:00
Denis Kenzior 56ba93f261 phonesim: Introduce End Session notification 2010-07-30 17:19:56 -05:00
Denis Kenzior c2cf374857 stk: Get rid of cancel result
And also rework how immediate response display text gets handled.
2010-07-30 17:19:56 -05:00
Denis Kenzior cf249c9fd7 stk: Introduce destroy semantics to stkagent 2010-07-30 17:19:56 -05:00
Denis Kenzior 27e890cc40 stk: Handle errors when sending to the agent fails 2010-07-30 17:19:56 -05:00
Denis Kenzior 2a1eee38bb stk: Get rid of nested switch 2010-07-30 17:19:56 -05:00
Denis Kenzior e5ea6e2193 stk: Handle the new termination semantics
The termination semantics were changed in stkagent.  Now if an agent
sends an invalid response or an unexpected error, then the agent is
terminated, even if it is the default agent.
2010-07-30 17:19:56 -05:00
Denis Kenzior e44d130b8c stk: Simplify sending of terminal responses
Introduce a new send_simple_response function
2010-07-30 17:19:56 -05:00
Denis Kenzior 3434540d8b stkagent: Make DisplayText invocation match API
For now we match the proposed API until we decide that changes are
needed.
2010-07-30 17:19:56 -05:00
Denis Kenzior 69ea6cd7a0 stkagent: Remove stk_agent_generic_cb 2010-07-30 17:19:56 -05:00
Denis Kenzior 0c0f362ec3 include: Update to proper API naming
Should match what is in the documentation
2010-07-30 17:19:56 -05:00
Denis Kenzior 0292fe12c0 stkagent: Get rid of nasty g_timeout tricks 2010-07-30 17:19:55 -05:00
Denis Kenzior 9684c4a362 stkagent: Get rid of unneeded checks 2010-07-30 17:19:55 -05:00
Denis Kenzior aa650f7488 stkagent: Shorten logic 2010-07-30 17:19:55 -05:00
Denis Kenzior 1a7179b79d stkagent: Simplify stkagent logic 2010-07-30 17:19:55 -05:00
Denis Kenzior 7ad5b35a35 stkagent: Refactor stkagent api 2010-07-30 17:19:55 -05:00
Denis Kenzior dc5a2609b3 stkagent: Rename stk_agent_remove
to stk_agent_free
2010-07-30 17:19:55 -05:00
Denis Kenzior 9e00eebe73 stkagent: Reorder stkagent.h 2010-07-30 17:19:55 -05:00
Denis Kenzior c7b294717b doc: Update coding style 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski b051f28dbe stk: Handle the Display Text proactive command. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski 3714eb8acd stk: Handle the Select Item proactive command. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski 47b95122cc stk: Handle the main menu. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski 5faa3951c2 stk: Utilities to deal with menus. 2010-07-30 17:19:55 -05:00