platform/upstream/ofono.git
14 years agoAdd test case for GAtServer
Zhenhua Zhang [Thu, 21 Jan 2010 06:18:14 +0000 (14:18 +0800)]
Add test case for GAtServer

To implement PTY, TCP, Unix socket example to create GAtServer
instance.

14 years agoFix: Check if the command is still pending
Denis Kenzior [Mon, 1 Feb 2010 18:02:38 +0000 (12:02 -0600)]
Fix: Check if the command is still pending

14 years agoStyle: No need for the extra line
Denis Kenzior [Mon, 1 Feb 2010 18:02:28 +0000 (12:02 -0600)]
Style: No need for the extra line

14 years agoFix: Don't set variables to NULL/0
Denis Kenzior [Fri, 29 Jan 2010 21:18:58 +0000 (15:18 -0600)]
Fix: Don't set variables to NULL/0

These were already set to 0 by g_try_new0

14 years agoRefactor: Support max_read attempts like GAtChat
Denis Kenzior [Fri, 29 Jan 2010 21:18:16 +0000 (15:18 -0600)]
Refactor: Support max_read attempts like GAtChat

14 years agoFix: Use a function instead of a table
Denis Kenzior [Fri, 29 Jan 2010 20:15:37 +0000 (14:15 -0600)]
Fix: Use a function instead of a table

14 years agoRefactor: Make enums follow 27.007 Annex B
Denis Kenzior [Fri, 29 Jan 2010 20:15:16 +0000 (14:15 -0600)]
Refactor: Make enums follow 27.007 Annex B

14 years agoFix: Make compile
Denis Kenzior [Fri, 29 Jan 2010 19:28:03 +0000 (13:28 -0600)]
Fix: Make compile

14 years agoAdd GAtServer basic parsing support
Zhenhua Zhang [Mon, 18 Jan 2010 14:31:18 +0000 (22:31 +0800)]
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.

14 years agoRelease 0.17 0.17
Marcel Holtmann [Sun, 31 Jan 2010 02:09:14 +0000 (18:09 -0800)]
Release 0.17

14 years agoCheck for dbus_connection_can_send_type() function
Marcel Holtmann [Sat, 30 Jan 2010 16:25:32 +0000 (08:25 -0800)]
Check for dbus_connection_can_send_type() function

14 years agoUse blocking GAtChat objects for STE modems
Marcel Holtmann [Sat, 30 Jan 2010 15:46:22 +0000 (07:46 -0800)]
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.

14 years agoAdd support for using old CAIF subsystem with character devices
Marcel Holtmann [Sat, 30 Jan 2010 15:44:13 +0000 (07:44 -0800)]
Add support for using old CAIF subsystem with character devices

14 years agoUse simple driver table for modem configuration setup helpers
Marcel Holtmann [Sat, 30 Jan 2010 15:43:12 +0000 (07:43 -0800)]
Use simple driver table for modem configuration setup helpers

14 years agoMention João's contributions
Denis Kenzior [Fri, 29 Jan 2010 16:43:14 +0000 (10:43 -0600)]
Mention João's contributions

14 years agoAdd ability to select modem on test-voicecall
João Paulo Rechi Vita [Thu, 28 Jan 2010 21:56:22 +0000 (19:56 -0200)]
Add ability to select modem on test-voicecall

14 years agoUse 3 read attempts when in non-blocking mode
Marcel Holtmann [Thu, 28 Jan 2010 21:24:04 +0000 (22:24 +0100)]
Use 3 read attempts when in non-blocking mode

14 years agoFix some leftover oudated copyrights
Marcel Holtmann [Thu, 28 Jan 2010 21:10:51 +0000 (22:10 +0100)]
Fix some leftover oudated copyrights

14 years agoFix: Update copyright notice for 2010
Denis Kenzior [Thu, 28 Jan 2010 21:07:53 +0000 (15:07 -0600)]
Fix: Update copyright notice for 2010

14 years agoStyle: Various whitespace issues
Denis Kenzior [Thu, 28 Jan 2010 21:02:38 +0000 (15:02 -0600)]
Style: Various whitespace issues

14 years agoStyle: Put voicecall before gprs
Denis Kenzior [Thu, 28 Jan 2010 20:51:04 +0000 (14:51 -0600)]
Style: Put voicecall before gprs

14 years agoAdd STE voice call support.
Sjur Brændeland [Thu, 28 Jan 2010 14:23:02 +0000 (15:23 +0100)]
Add STE voice call support.

14 years agoUse blocking GAtChat operation for CAIF unit test
Marcel Holtmann [Thu, 28 Jan 2010 21:06:39 +0000 (22:06 +0100)]
Use blocking GAtChat operation for CAIF unit test

14 years agoAdd new constructor for fully blocking operation
Marcel Holtmann [Thu, 28 Jan 2010 21:05:44 +0000 (22:05 +0100)]
Add new constructor for fully blocking operation

14 years agoFix: Take care of uninitialized variable condition
Denis Kenzior [Thu, 28 Jan 2010 20:31:22 +0000 (14:31 -0600)]
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.

14 years agoThe old CAIF character device are not TTYs
Marcel Holtmann [Thu, 28 Jan 2010 20:34:16 +0000 (21:34 +0100)]
The old CAIF character device are not TTYs

14 years agoHandle the error path from service_level_connection
Gustavo F. Padovan [Thu, 28 Jan 2010 17:12:52 +0000 (15:12 -0200)]
Handle the error path from service_level_connection

14 years agoRemove unneeded code to disable the modem on hfp
Gustavo F. Padovan [Thu, 28 Jan 2010 13:32:42 +0000 (11:32 -0200)]
Remove unneeded code to disable the modem on hfp

ofono_modem_remove() already disables the modem.

14 years agoUse non-blocking and raw mode for test with CAIF character devices
Marcel Holtmann [Thu, 28 Jan 2010 15:48:33 +0000 (16:48 +0100)]
Use non-blocking and raw mode for test with CAIF character devices

14 years agoAdd second CAIF test for using character interface
Marcel Holtmann [Thu, 28 Jan 2010 11:47:08 +0000 (12:47 +0100)]
Add second CAIF test for using character interface

14 years agoLimit the number of continues read attempts
Marcel Holtmann [Thu, 28 Jan 2010 11:41:31 +0000 (12:41 +0100)]
Limit the number of continues read attempts

14 years agoDisable dummy CAIF modem detection for now
Marcel Holtmann [Thu, 28 Jan 2010 11:11:36 +0000 (12:11 +0100)]
Disable dummy CAIF modem detection for now

14 years agoAdd plugin for static CAIF device detection
Marcel Holtmann [Thu, 28 Jan 2010 10:58:35 +0000 (11:58 +0100)]
Add plugin for static CAIF device detection

14 years agoSome minor style cleanups for STE support
Marcel Holtmann [Thu, 28 Jan 2010 10:30:56 +0000 (11:30 +0100)]
Some minor style cleanups for STE support

14 years agoThe AF_CAIF constant is more like to be 37 than 28
Marcel Holtmann [Thu, 28 Jan 2010 10:28:11 +0000 (11:28 +0100)]
The AF_CAIF constant is more like to be 37 than 28

14 years agoAdd simple unit test for CAIF sockets
Marcel Holtmann [Thu, 28 Jan 2010 10:25:54 +0000 (11:25 +0100)]
Add simple unit test for CAIF sockets

14 years agoStyle: Various whitespace issues
Denis Kenzior [Wed, 27 Jan 2010 22:37:50 +0000 (16:37 -0600)]
Style: Various whitespace issues

14 years agoStyle: Don't go over 80 characters
Denis Kenzior [Wed, 27 Jan 2010 22:37:32 +0000 (16:37 -0600)]
Style: Don't go over 80 characters

14 years agoFix: Remove unused includes
Denis Kenzior [Wed, 27 Jan 2010 22:19:46 +0000 (16:19 -0600)]
Fix: Remove unused includes

14 years agoAdd copyright note to the HFP plugin
Gustavo F. Padovan [Wed, 27 Jan 2010 20:28:05 +0000 (18:28 -0200)]
Add copyright note to the HFP plugin

14 years agoMention Zhigang's contributions
Denis Kenzior [Wed, 27 Jan 2010 20:28:29 +0000 (14:28 -0600)]
Mention Zhigang's contributions

14 years agoMention Gustavo's contributions
Denis Kenzior [Wed, 27 Jan 2010 20:28:12 +0000 (14:28 -0600)]
Mention Gustavo's contributions

14 years agoRemove wrong copyright statement within HFP plugin
Marcel Holtmann [Wed, 27 Jan 2010 20:22:19 +0000 (21:22 +0100)]
Remove wrong copyright statement within HFP plugin

14 years agoLimit HFP plugin loading to D-Bus 1.3 only systems
Marcel Holtmann [Wed, 27 Jan 2010 20:16:26 +0000 (21:16 +0100)]
Limit HFP plugin loading to D-Bus 1.3 only systems

14 years agoAdd HFP support through BlueZ
Gustavo F. Padovan [Wed, 27 Jan 2010 19:12:49 +0000 (17:12 -0200)]
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.

14 years agoFix: Remove username/password elements
Denis Kenzior [Wed, 27 Jan 2010 19:56:44 +0000 (13:56 -0600)]
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.

14 years agoStyle: Couple more fixes
Denis Kenzior [Wed, 27 Jan 2010 19:46:12 +0000 (13:46 -0600)]
Style: Couple more fixes

14 years agoFix: Remove pointless error labels
Denis Kenzior [Wed, 27 Jan 2010 18:57:16 +0000 (12:57 -0600)]
Fix: Remove pointless error labels

14 years agoStyle: Various indentation and spacing issues
Denis Kenzior [Wed, 27 Jan 2010 18:45:20 +0000 (12:45 -0600)]
Style: Various indentation and spacing issues

14 years agoStyle: No space after function name
Denis Kenzior [Wed, 27 Jan 2010 18:41:49 +0000 (12:41 -0600)]
Style: No space after function name

14 years agoStyle: Use proper comment formatting
Denis Kenzior [Wed, 27 Jan 2010 18:38:27 +0000 (12:38 -0600)]
Style: Use proper comment formatting

14 years agoStyle: Don't use underscore
Denis Kenzior [Wed, 27 Jan 2010 18:33:11 +0000 (12:33 -0600)]
Style: Don't use underscore

14 years agoAdd STE modem support for GPRS PDP Contexts
Sjur Brændeland [Tue, 26 Jan 2010 20:13:27 +0000 (21:13 +0100)]
Add STE modem support for GPRS PDP Contexts

14 years agoEnable passing of modem name via command line
Gustavo F. Padovan [Tue, 26 Jan 2010 20:58:15 +0000 (18:58 -0200)]
Enable passing of modem name via command line

14 years agoRemove unneeded use of status variable
Marcel Holtmann [Wed, 27 Jan 2010 08:48:21 +0000 (09:48 +0100)]
Remove unneeded use of status variable

14 years agoIntroduce g_dbus_setup_private() to gdbus
Forrest Zhao [Wed, 27 Jan 2010 08:24:23 +0000 (16:24 +0800)]
Introduce g_dbus_setup_private() to gdbus

g_dbus_setup_private() is used to setup private DBusConnection

14 years agoMention Sjur's contributions
Marcel Holtmann [Tue, 26 Jan 2010 09:11:36 +0000 (10:11 +0100)]
Mention Sjur's contributions

14 years agoRemove empty block for SIGPIPE handling
Marcel Holtmann [Tue, 26 Jan 2010 09:07:56 +0000 (10:07 +0100)]
Remove empty block for SIGPIPE handling

14 years agoAdd support for dynamic debug feature
Marcel Holtmann [Tue, 26 Jan 2010 09:06:53 +0000 (10:06 +0100)]
Add support for dynamic debug feature

14 years agoRemove unused declarations
Marcel Holtmann [Mon, 25 Jan 2010 20:22:32 +0000 (21:22 +0100)]
Remove unused declarations

14 years agoFix build breakage from STE modem patches
Marcel Holtmann [Mon, 25 Jan 2010 20:03:57 +0000 (21:03 +0100)]
Fix build breakage from STE modem patches

14 years agoAdd STE modem plugin to build system
Sjur Brændeland [Mon, 25 Jan 2010 19:25:33 +0000 (20:25 +0100)]
Add STE modem plugin to build system

14 years agoAdd STE modem plugin
Sjur Brændeland [Mon, 25 Jan 2010 19:25:32 +0000 (20:25 +0100)]
Add STE modem plugin

14 years agoAdd CAIF header files in drivers/stemodem/
Sjur Brændeland [Mon, 25 Jan 2010 19:25:31 +0000 (20:25 +0100)]
Add CAIF header files in drivers/stemodem/

These should go away when CAIF is part of Linux kernel.

14 years agoAdd STE modem driver definition
Sjur Brændeland [Mon, 25 Jan 2010 19:25:30 +0000 (20:25 +0100)]
Add STE modem driver definition

14 years agoAdd STE modem support for GPRS and network registration
Sjur Brændeland [Mon, 25 Jan 2010 19:25:29 +0000 (20:25 +0100)]
Add STE modem support for GPRS and network registration

14 years agoAdd at_util_call_compare_by_id function
Sjur Brændeland [Mon, 25 Jan 2010 19:25:28 +0000 (20:25 +0100)]
Add at_util_call_compare_by_id function

14 years agoFix: Support devices with CSCB mode 0 only
Denis Kenzior [Thu, 21 Jan 2010 04:07:51 +0000 (22:07 -0600)]
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.

14 years agoFix: Process CBS settings even if no EFcbmid
Denis Kenzior [Thu, 21 Jan 2010 03:35:33 +0000 (21:35 -0600)]
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.

14 years agoFix: Print errors for unlikely CBS failures
Denis Kenzior [Thu, 21 Jan 2010 03:34:19 +0000 (21:34 -0600)]
Fix: Print errors for unlikely CBS failures

These indicate driver / hardware issues rather than anything else.

14 years agoFix: NULL check both set_topics and clear_topics
Denis Kenzior [Thu, 21 Jan 2010 03:08:52 +0000 (21:08 -0600)]
Fix: NULL check both set_topics and clear_topics

14 years agoFix: Make the powered setting actually work
Denis Kenzior [Thu, 21 Jan 2010 03:03:17 +0000 (21:03 -0600)]
Fix: Make the powered setting actually work

14 years agoRefactor: Reorder argument order
Denis Kenzior [Wed, 20 Jan 2010 20:21:22 +0000 (14:21 -0600)]
Refactor: Reorder argument order

The order of arguments was a bit confusing, reorder them to make more
logical sense.

14 years agoAdd gatutil.c to share common APIs with GAtServer
Zhenhua Zhang [Fri, 15 Jan 2010 01:15:38 +0000 (09:15 +0800)]
Add gatutil.c to share common APIs with GAtServer

Add gatutil.c/h gat.h and move shared typedef and APIs into it.
So that they can be shared by GAtServer and GAtChat.

14 years agoFix: Default to powered=true for CBS
Denis Kenzior [Wed, 20 Jan 2010 16:26:02 +0000 (10:26 -0600)]
Fix: Default to powered=true for CBS

14 years agoMention Jussi's contributions
Denis Kenzior [Wed, 20 Jan 2010 16:16:24 +0000 (10:16 -0600)]
Mention Jussi's contributions

14 years agoStyle: Don't go over 80 characters per line
Denis Kenzior [Wed, 20 Jan 2010 16:14:01 +0000 (10:14 -0600)]
Style: Don't go over 80 characters per line

14 years agoAdd quirk for cid and lac handling for Huawei
Jussi Kukkonen [Mon, 18 Jan 2010 14:30:13 +0000 (16:30 +0200)]
Add quirk for cid and lac handling for Huawei

14 years agoAdd command line option for printing version number
Marcel Holtmann [Sun, 17 Jan 2010 03:29:43 +0000 (19:29 -0800)]
Add command line option for printing version number

14 years agoFix: One more fix for disconnect detection
Denis Kenzior [Fri, 15 Jan 2010 16:24:01 +0000 (10:24 -0600)]
Fix: One more fix for disconnect detection

In situations where lots of data is generated by the remote side (e.g.
phonebook is being read) we can get our ring buffer filled up.  In this
case setting rbytes to zero first and then breaking out of the loop
leads to an erroneous disconnect detection.  The fix is to move setting
of rbytes after we know we still have some space.

14 years agoFix: Make remote disconnect detection work
Denis Kenzior [Thu, 14 Jan 2010 16:25:14 +0000 (10:25 -0600)]
Fix: Make remote disconnect detection work

14 years agoRefactor phonebook driver
Aki Niemi [Tue, 12 Jan 2010 12:45:01 +0000 (14:45 +0200)]
Refactor phonebook driver

14 years agoRefactor supplementary service drivers
Aki Niemi [Tue, 12 Jan 2010 11:18:03 +0000 (13:18 +0200)]
Refactor supplementary service drivers

14 years agoRefactor SIM driver
Aki Niemi [Tue, 12 Jan 2010 08:58:08 +0000 (10:58 +0200)]
Refactor SIM driver

14 years agoRefactor CBS driver
Aki Niemi [Tue, 12 Jan 2010 08:57:43 +0000 (10:57 +0200)]
Refactor CBS driver

14 years agoClean up style issues
Aki Niemi [Tue, 12 Jan 2010 08:49:30 +0000 (10:49 +0200)]
Clean up style issues

14 years agoFix cell ID and LAC values
Aki Niemi [Tue, 12 Jan 2010 08:35:44 +0000 (10:35 +0200)]
Fix cell ID and LAC values

14 years agoRelease 0.16 0.16
Marcel Holtmann [Wed, 13 Jan 2010 21:17:24 +0000 (13:17 -0800)]
Release 0.16

14 years agoFix: Don't try to unregister a null mcc/mnc
Denis Kenzior [Wed, 13 Jan 2010 17:40:15 +0000 (11:40 -0600)]
Fix: Don't try to unregister a null mcc/mnc

Network operators with null MCC & MNC are not registered, but we try to
unregister them.  Don't do this as it causes a crash.

14 years agoMake setting CPHS MWIS actually work
Denis Kenzior [Wed, 13 Jan 2010 00:20:51 +0000 (18:20 -0600)]
Make setting CPHS MWIS actually work

14 years agoPersist CBS Topics list, handle EF-CBMI, EF-CBMIR.
Andrzej Zaborowski [Mon, 11 Jan 2010 16:30:35 +0000 (17:30 +0100)]
Persist CBS Topics list, handle EF-CBMI, EF-CBMIR.

The two SIM files are only used to bootstrap the topics list value
if there's no previous value.

14 years agoStyle: Extraneous space
Denis Kenzior [Tue, 12 Jan 2010 16:34:27 +0000 (10:34 -0600)]
Style: Extraneous space

14 years agoStyle: space after function argument comma pair
Denis Kenzior [Tue, 12 Jan 2010 16:33:30 +0000 (10:33 -0600)]
Style: space after function argument comma pair

14 years agoStyle: Various issues
Denis Kenzior [Tue, 12 Jan 2010 16:33:09 +0000 (10:33 -0600)]
Style: Various issues

14 years agoStyle: Should be a space after if
Denis Kenzior [Tue, 12 Jan 2010 16:31:34 +0000 (10:31 -0600)]
Style: Should be a space after if

14 years agoStyle: Various issues
Denis Kenzior [Tue, 12 Jan 2010 16:30:42 +0000 (10:30 -0600)]
Style: Various issues

14 years agoStyle: Various issues
Denis Kenzior [Tue, 12 Jan 2010 16:29:16 +0000 (10:29 -0600)]
Style: Various issues

14 years agoStyle: Trailing whitespace & extra lines
Denis Kenzior [Tue, 12 Jan 2010 16:28:37 +0000 (10:28 -0600)]
Style: Trailing whitespace & extra lines

14 years agoFix: Make the CPHS MWIS version actually work
Denis Kenzior [Tue, 12 Jan 2010 23:54:18 +0000 (17:54 -0600)]
Fix: Make the CPHS MWIS version actually work

14 years agoRefactor: Move copy-pasted code into a function
Denis Kenzior [Tue, 12 Jan 2010 23:53:56 +0000 (17:53 -0600)]
Refactor: Move copy-pasted code into a function