Commit Graph

1429 Commits

Author SHA1 Message Date
Denis Kenzior 8e258ff54b Get rid of list_calls in hfp driver 2009-12-04 16:52:31 -06:00
Denis Kenzior 3d3a9eee84 Get rid of list_calls in calypso driver 2009-12-04 16:52:31 -06:00
Denis Kenzior 4d5eb77de5 Get rid of list_calls in isi driver 2009-12-04 16:52:30 -06:00
Denis Kenzior 0b754835f5 Add utility to get the next free call id 2009-12-04 16:52:30 -06:00
Denis Kenzior c7ac706de1 Refactor: call id allocation / release 2009-12-04 16:52:30 -06:00
Denis Kenzior 8e02b1a67f Refactor: Remove list_calls from voicecall driver 2009-12-04 16:52:30 -06:00
Marcel Holtmann 4bade3b3e7 Mention Martin's contributions 2009-12-03 22:13:27 +01:00
Martin Xu 4960526aa9 Allow builds to install the test scripts for debugging 2009-12-03 22:11:40 +01:00
Denis Kenzior bcef5a1dd6 Fix: Exit right away
If no plugin needs to run the eventloop to shutdown cleanly, exit right
away.
2009-12-03 00:42:59 -06:00
Denis Kenzior 44848d5a9b Add unit test for max message size encoding 2009-12-03 00:26:20 -06:00
Denis Kenzior 0500fadc63 Fix: Be a bit more signal-handler safe 2009-12-02 20:10:18 -06:00
Denis Kenzior 39568bbef7 Fix: Paste error 2009-12-02 19:24:37 -06:00
Denis Kenzior b0f0e248e9 When SIGTERM is received, run the event loop
This feature will continue running the event loop for another 10 seconds
or so or until all the modems have been shut down.  This will allow the
modem drivers to properly shutdown their respective devices.
2009-12-02 19:11:36 -06:00
Denis Kenzior c25532df50 Fix: Convert PalmPre plugin to new world order 2009-12-02 19:11:36 -06:00
Denis Kenzior 82a4903eeb Fix: Convert Novatel plugin to new world order 2009-12-02 19:11:36 -06:00
Denis Kenzior ecfa61c50f Fix: Convert MBM plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior 4dc8c0aa80 Fix: Convert Huawei plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior 21b9d4f017 Fix: Convert HSO plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior b77c63b73a Fix: Convert G1 plugin to new world order 2009-12-02 19:11:35 -06:00
Denis Kenzior 9c63c7dc20 Refactor: Set powered to false if disable timedout 2009-12-02 19:11:32 -06:00
Denis Kenzior 1d98c226b5 Add g_at_chat_unregister_all function 2009-12-02 19:10:08 -06:00
Denis Kenzior b787745b00 Fix: unregister modem when unregistering driver 2009-12-02 19:10:07 -06:00
Denis Kenzior 6266e3f679 Refactor: modem de-registration 2009-12-02 19:10:07 -06:00
Denis Kenzior dac0ccc8a8 Fix: Remove all atoms when attempting to power off
The current behavior is to remove atoms when the modem has powered off
successfully.  The modem driver must now take special precautions to
cancel all pending actions of the atom drivers, since they would have
been destroyed.
2009-12-02 19:10:07 -06:00
Denis Kenzior cf98ebb653 Add: g_at_chat_cancel_all function
This will cancel all commands currently queued.
2009-12-02 19:10:04 -06:00
Denis Kenzior 9b5b1057e4 Fix: Sometimes it is possible to cancel first cmd
Commands on the head of the queue can be canceled if none of its bytes
have actually been written to the modem.  This is tracked by
cmd_bytes_written variable.
2009-12-02 15:27:26 -06:00
Denis Kenzior 0d022d3057 Fix: Don't allow cancelation of command id 0 2009-12-02 15:26:56 -06:00
Marcel Holtmann ab4e631c98 Release 0.12 2009-12-02 18:58:50 +01:00
Denis Kenzior 83a03d5fbf Fix: Store refs as 16 bits, not 8
Refs are handled as 16 bits properly everywhere, yet are stored as 8
bits in the assembly.
2009-12-02 09:55:57 -06:00
Denis Kenzior da496112b7 Fix: Don't forget to cleanup the atom watch 2009-12-01 22:53:45 -06:00
Denis Kenzior fc030de2ec Fix: Make sure to never overflow DNS variable 2009-12-01 20:38:26 -06:00
Denis Kenzior 8cd0990c66 Fix: Poll ENAP on older mbm hardware 2009-12-01 19:38:44 -06:00
Denis Kenzior 6389552fd5 Style: Fix whitespace 2009-12-01 17:36:48 -06:00
Denis Kenzior 3a189b1973 Fix: Fix parsing in MBM 2009-12-01 17:35:30 -06:00
Denis Kenzior ab9e02bb30 Add experimental support for E2IPCFG 2009-12-01 17:25:20 -06:00
Denis Kenzior 72912d5eed Fix: Don't decode error unnecessarily 2009-12-01 17:24:50 -06:00
Denis Kenzior b96e33b692 Fix: Add username/password support to mbm context 2009-12-01 16:08:12 -06:00
Denis Kenzior 184eb91aa6 Fix: Make sure we don't overflow the buffer 2009-12-01 16:05:20 -06:00
Denis Kenzior a514983981 Fix: Force calypso to return to command mode ASAP
Calypso firmware is just bizarre.  It seems that if anything is sent
before CPI=3 to the DLC handling voice commands, the ATD will not return
to command mode immediately, but instead wait until connected / failed
condition occurs.

If CPI=3 is sent first, then calypso will go to command mode immediately
after ATD is issued and report CPI indications as usual.
2009-12-01 12:45:44 -06:00
Denis Kenzior 5323e37bc8 Fix: Remove duplicate atoms from calypso plugin 2009-12-01 12:45:44 -06:00
Denis Kenzior d2bcc0921d Fix: Simplify logic to use g_memdup 2009-12-01 12:45:40 -06:00
Denis Kenzior d1e62194ef Fix: Disable echo on all calypso DLCs 2009-12-01 12:42:23 -06:00
Denis Kenzior e8ac4e5368 Fix: Be more signed/unsigned correct 2009-12-01 12:42:23 -06:00
Denis Kenzior 55572b6e69 Style: Use unsigned int instead of unsigned 2009-12-01 12:42:23 -06:00
Zhenhua Zhang 7254f8ac86 Fix: Reset call_ids when modem is powered off 2009-11-26 08:08:17 -06:00
Denis Kenzior 78008c6022 Update calypso plugin to the new wakeup handling 2009-11-26 07:44:25 -06:00
Denis Kenzior 48a61b6d06 Fix: Retry the wakeup command until the modem OKs
The calypso is weird where it doesn't actually wakeup on the first try,
we need to bang its head a few times until it responds
2009-11-26 07:44:25 -06:00
Denis Kenzior 37384ddb9c Fix: Make Calypso handling a bit better 2009-11-26 07:44:25 -06:00
Denis Kenzior d91c61e621 Fix: None of this seems necessary for the Calypso 2009-11-26 07:44:25 -06:00
Marko Saukko 757c8f096c Add udev rules for Option GI0201 and GTM382 modems 2009-11-25 11:04:48 +01:00