Commit Graph

1615 Commits

Author SHA1 Message Date
Denis Kenzior 0767f1dbd8 Fix: Check if the command is still pending 2010-02-01 17:59:28 -06:00
Denis Kenzior e6ccc74504 Style: No need for the extra line 2010-02-01 17:59:28 -06:00
Denis Kenzior 263044721e Fix: Don't set variables to NULL/0
These were already set to 0 by g_try_new0
2010-02-01 17:59:28 -06:00
Denis Kenzior b6961b0d68 Refactor: Support max_read attempts like GAtChat 2010-02-01 17:59:28 -06:00
Denis Kenzior 1514997ff1 Fix: Use a function instead of a table 2010-02-01 17:59:28 -06:00
Denis Kenzior 49e0ff2aa6 Refactor: Make enums follow 27.007 Annex B 2010-02-01 17:59:28 -06:00
Denis Kenzior cd1845da6b Fix: Make compile 2010-02-01 17:59:28 -06:00
Zhenhua Zhang df7b1b30dc Add GAtServer basic parsing support
It's the basic skeleton of GAtServer, including new/shutdown, ref/
unref, received_data/parse_buffer and set_discuss/set_debug.

GAtServer is to emulate the server side of AT conversation. It
complies with V.250 and 27.007 spec to accept AT command like
ATV1, ATE0 and extended command like AT+CLCC. Upper layer could
create customize server to expose TTY, tcp or unix socket to
client side application.
2010-02-01 17:59:27 -06:00
Marcel Holtmann 105fccdcaf Release 0.17 2010-01-30 18:09:14 -08:00
Marcel Holtmann 2be55c9af3 Check for dbus_connection_can_send_type() function 2010-01-30 08:25:32 -08:00
Marcel Holtmann 4d6eaa7404 Use blocking GAtChat objects for STE modems
Due to some missing implementation of POLLOUT, the access to the CAIF
channels of the STE modems have to be done in a blocking fashion.
2010-01-30 07:46:22 -08:00
Marcel Holtmann 16f477653d Add support for using old CAIF subsystem with character devices 2010-01-30 07:45:24 -08:00
Marcel Holtmann 3e46541dd4 Use simple driver table for modem configuration setup helpers 2010-01-30 07:43:12 -08:00
Denis Kenzior e690a3ac26 Mention João's contributions 2010-01-29 10:43:14 -06:00
João Paulo Rechi Vita a3bdce0712 Add ability to select modem on test-voicecall 2010-01-29 10:41:52 -06:00
Marcel Holtmann 4f3b99e189 Use 3 read attempts when in non-blocking mode 2010-01-28 22:24:04 +01:00
Marcel Holtmann 7d7a61f933 Fix some leftover oudated copyrights 2010-01-28 22:10:51 +01:00
Denis Kenzior 7b2b548d8d Fix: Update copyright notice for 2010 2010-01-28 15:08:24 -06:00
Denis Kenzior 586003ba52 Style: Various whitespace issues 2010-01-28 15:08:24 -06:00
Denis Kenzior 337b0367ee Style: Put voicecall before gprs 2010-01-28 15:08:23 -06:00
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