Commit Graph

1595 Commits

Author SHA1 Message Date
Sjur Brændeland ddd5582a54 Add STE voice call support. 2010-01-28 15:08:23 -06:00
Marcel Holtmann 7188be28f0 Use blocking GAtChat operation for CAIF unit test 2010-01-28 22:06:39 +01:00
Marcel Holtmann c9a37e4a9a Add new constructor for fully blocking operation 2010-01-28 22:05:44 +01:00
Denis Kenzior fb918d39ba Fix: Take care of uninitialized variable condition
In some (impossible) circumstances rbytes and err might be used
uninitialized.  Here we make a check that a read was actually attempted
before checking those variables.
2010-01-28 14:38:59 -06:00
Marcel Holtmann 2e4bcbf0ac The old CAIF character device are not TTYs 2010-01-28 21:34:16 +01:00
Gustavo F. Padovan bc7d0fb27f Handle the error path from service_level_connection 2010-01-28 11:16:05 -06:00
Gustavo F. Padovan 0bb749a51f Remove unneeded code to disable the modem on hfp
ofono_modem_remove() already disables the modem.
2010-01-28 10:41:28 -06:00
Marcel Holtmann bcad38ceff Use non-blocking and raw mode for test with CAIF character devices 2010-01-28 16:48:33 +01:00
Marcel Holtmann c25347dc7e Add second CAIF test for using character interface 2010-01-28 12:47:08 +01:00
Marcel Holtmann 839988cfa3 Limit the number of continues read attempts 2010-01-28 12:41:31 +01:00
Marcel Holtmann 406988b94e Disable dummy CAIF modem detection for now 2010-01-28 12:11:36 +01:00
Marcel Holtmann badca24c5a Add plugin for static CAIF device detection 2010-01-28 11:58:35 +01:00
Marcel Holtmann ae6a0b32cf Some minor style cleanups for STE support 2010-01-28 11:30:56 +01:00
Marcel Holtmann 5431aeea0d The AF_CAIF constant is more like to be 37 than 28 2010-01-28 11:28:38 +01:00
Marcel Holtmann 648eded47e Add simple unit test for CAIF sockets 2010-01-28 11:25:54 +01:00
Denis Kenzior 392f092ee0 Style: Various whitespace issues 2010-01-27 16:37:50 -06:00
Denis Kenzior 911b24c12d Style: Don't go over 80 characters 2010-01-27 16:37:32 -06:00
Denis Kenzior 971e4c7345 Fix: Remove unused includes 2010-01-27 16:19:46 -06:00
Gustavo F. Padovan abf86ae5fa Add copyright note to the HFP plugin 2010-01-27 14:34:48 -06:00
Denis Kenzior a011fa9bac Mention Zhigang's contributions 2010-01-27 14:28:51 -06:00
Denis Kenzior 79292924a2 Mention Gustavo's contributions 2010-01-27 14:28:50 -06:00
Marcel Holtmann 59eeea0ebc Remove wrong copyright statement within HFP plugin 2010-01-27 21:22:19 +01:00
Marcel Holtmann 49233dbc2f Limit HFP plugin loading to D-Bus 1.3 only systems 2010-01-27 21:18:07 +01:00
Gustavo F. Padovan ac6672e9b3 Add HFP support through BlueZ
It uses BlueZ through to get HFP working following the
org.bluez.HandsfreeGateway and org.bluez.HandsfreeAgent from
the BlueZ D-Bus API.

You need the HFP suport into BlueZ and the new D-Bus 1.3 or
later with fd-passing support.

Many thanks to Zhenhua Zhang <zhenhua.zhang@intel.com> for its
prototype on this code.
2010-01-27 21:18:07 +01:00
Denis Kenzior 5e94e2bad8 Fix: Remove username/password elements
The reason for this is twofold.  First the current code actually leaks
memory since it uses g_strdup on username/password and never frees it
anywhere.  Second the username/password command can just be sent inside
activate_primary, no reason to do it in the callback.

The fix removes the username / password structure members and moves the
AT*EIAAUW handling to activate_primary.  This is almost exactly like the
username / password / context definition for MBM modems.
2010-01-27 13:59:05 -06:00
Denis Kenzior dda8b972ba Style: Couple more fixes 2010-01-27 13:46:12 -06:00
Denis Kenzior b52a6e60c7 Fix: Remove pointless error labels 2010-01-27 12:57:16 -06:00
Denis Kenzior 8e07c9c5d8 Style: Various indentation and spacing issues 2010-01-27 12:53:49 -06:00
Denis Kenzior 083e448fa5 Style: No space after function name 2010-01-27 12:41:49 -06:00
Denis Kenzior 09afdaa19e Style: Use proper comment formatting 2010-01-27 12:38:27 -06:00
Denis Kenzior 081c7a3138 Style: Don't use underscore 2010-01-27 12:33:11 -06:00
Sjur Brændeland b0106d1225 Add STE modem support for GPRS PDP Contexts 2010-01-27 12:16:43 -06:00
Gustavo F. Padovan 0391f0a9bf Enable passing of modem name via command line 2010-01-27 12:12:28 -06:00
Marcel Holtmann 4c6497e317 Remove unneeded use of status variable 2010-01-27 09:50:24 +01:00
Forrest Zhao 57013cfa0d Introduce g_dbus_setup_private() to gdbus
g_dbus_setup_private() is used to setup private DBusConnection
2010-01-27 09:50:24 +01:00
Marcel Holtmann 2bece5fe0d Mention Sjur's contributions 2010-01-26 10:11:36 +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
Marcel Holtmann b334372ef8 Remove unused declarations 2010-01-25 21:22:32 +01:00
Marcel Holtmann 802a62287a Fix build breakage from STE modem patches 2010-01-25 21:03:57 +01:00
Sjur Brændeland 1cf63094c5 Add STE modem plugin to build system 2010-01-25 20:59:48 +01:00
Sjur Brændeland e564dcf1cb Add STE modem plugin 2010-01-25 20:58:34 +01:00
Sjur Brændeland cb264e3b81 Add CAIF header files in drivers/stemodem/
These should go away when CAIF is part of Linux kernel.
2010-01-25 20:58:26 +01:00
Sjur Brændeland fd73261cd5 Add STE modem driver definition 2010-01-25 20:56:26 +01:00
Sjur Brændeland 040e799665 Add STE modem support for GPRS and network registration 2010-01-25 20:55:10 +01:00
Sjur Brændeland c664f80f22 Add at_util_call_compare_by_id function 2010-01-25 20:53:57 +01:00
Denis Kenzior 445fc378b5 Fix: Support devices with CSCB mode 0 only
MBM devices do not support CSCB mode 1 (remove topics).  It is thus
necessary to use mode 0 and sending an empty topic list in order to turn
off all topics.  This patch will first query the CSCB modes supported by
the hardware.  If mode 1 is supported, then the old behavior is used,
otherwise the new behavior is used.
2010-01-20 22:07:51 -06: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