platform/upstream/ofono.git
14 years agoFix: Use a 15 second timeout on a disconnect
Denis Kenzior [Fri, 12 Feb 2010 17:59:14 +0000 (11:59 -0600)]
Fix: Use a 15 second timeout on a disconnect

14 years agoStyle: No need for this to be a function
Denis Kenzior [Fri, 12 Feb 2010 17:58:49 +0000 (11:58 -0600)]
Style: No need for this to be a function

14 years agoStyle: No need for a function here
Denis Kenzior [Fri, 12 Feb 2010 17:27:02 +0000 (11:27 -0600)]
Style: No need for a function here

14 years agohfp: set timeout to rfcomm establishment procedure
Gustavo F. Padovan [Thu, 11 Feb 2010 22:52:42 +0000 (20:52 -0200)]
hfp: set timeout to rfcomm establishment procedure

If it expires we call org.bluez.HandsfreeGateway.Disconnect()
It also modifies send_method_call and break it down into two functions.
Now we have send_method_call_with_reply, for DBus messages that needs a
reply. It sets a reply and a timeout for the message reply.
The other funcion is called send_method_call without timeout or reply
parameters.

14 years agohfp: avoid crash when hfp is declared on modem.conf
Gustavo F. Padovan [Thu, 11 Feb 2010 22:52:41 +0000 (20:52 -0200)]
hfp: avoid crash when hfp is declared on modem.conf

14 years agohfp: fix copyright notice
Gustavo F. Padovan [Thu, 11 Feb 2010 22:52:40 +0000 (20:52 -0200)]
hfp: fix copyright notice

14 years agoMention Inaky's contributions
Denis Kenzior [Thu, 11 Feb 2010 05:53:37 +0000 (23:53 -0600)]
Mention Inaky's contributions

14 years agoFix: plugin version mismatch warning
Inaky Perez-Gonzalez [Thu, 11 Feb 2010 00:15:10 +0000 (16:15 -0800)]
Fix: plugin version mismatch warning

When complaining about plugin version mismatch, print the
version information

14 years agoClean: no error path needed
Inaky Perez-Gonzalez [Wed, 10 Feb 2010 23:53:05 +0000 (15:53 -0800)]
Clean: no error path needed

Remove unneeded error path and document the rationale behind it in
__ofono_modem_get_list() and manager_get_properties().

14 years agoRename server_io to channel
Zhenhua Zhang [Tue, 9 Feb 2010 14:59:29 +0000 (22:59 +0800)]
Rename server_io to channel

To make it consistent with GAtChat.

14 years agoReplace sprintf with snprintf
Zhenhua Zhang [Tue, 9 Feb 2010 14:59:28 +0000 (22:59 +0800)]
Replace sprintf with snprintf

14 years agoRename buf to read_buf in GAtServer
Zhenhua Zhang [Tue, 9 Feb 2010 14:59:27 +0000 (22:59 +0800)]
Rename buf to read_buf in GAtServer

Because we may introduce write_buf for sever response buffer.

14 years agoStyle: if statement
Denis Kenzior [Wed, 10 Feb 2010 19:14:27 +0000 (13:14 -0600)]
Style: if statement

14 years agoFix: memory leak
Denis Kenzior [Wed, 10 Feb 2010 19:12:25 +0000 (13:12 -0600)]
Fix: memory leak

14 years agoMention the new dynamic debug command line option
Marcel Holtmann [Wed, 10 Feb 2010 05:06:28 +0000 (06:06 +0100)]
Mention the new dynamic debug command line option

14 years agoEnable USSD_STATE_USER_ACTION
Aki Niemi [Tue, 9 Feb 2010 21:19:11 +0000 (23:19 +0200)]
Enable USSD_STATE_USER_ACTION

If the network requests user action in the response to an MO USSD, we
cannot immediately return to USSD_STATE_USER_IDLE. Instead,
USSD_STATE_USER_ACTION is entered.

Note that it is left up to the driver to notify() when the USSD
transaction is closed by the network due to inactivity. Another way to
return to USSD_STATE_IDLE is for the user to cancel() the transaction.

14 years agoAdd isimodem USSD implementation
Aki Niemi [Tue, 9 Feb 2010 18:27:22 +0000 (20:27 +0200)]
Add isimodem USSD implementation

14 years agoAdd USSD codepoints and debugging
Aki Niemi [Tue, 9 Feb 2010 09:16:22 +0000 (11:16 +0200)]
Add USSD codepoints and debugging

14 years agoMove USSD status enum to header
Aki Niemi [Tue, 9 Feb 2010 20:00:46 +0000 (22:00 +0200)]
Move USSD status enum to header

14 years agoAdd Wavecom's quirky CPIN handling
Denis Kenzior [Mon, 8 Feb 2010 22:13:43 +0000 (16:13 -0600)]
Add Wavecom's quirky CPIN handling

14 years agoFix: Tweak gprs attach logic
Denis Kenzior [Mon, 8 Feb 2010 21:33:17 +0000 (15:33 -0600)]
Fix: Tweak gprs attach logic

We use driver_attached to track whether the driver is attached /
attaching.  Unfortunately we only set it when set_attached succeeds.
Instead we should set it right away when calling set_attached, so we
cover pending attaches as well.

14 years agoFix: Add recheck flag to gprs
Denis Kenzior [Mon, 8 Feb 2010 21:32:04 +0000 (15:32 -0600)]
Fix: Add recheck flag to gprs

When a powered is toggled quickly, we ignore the second request.  This
flag tells us that we should recheck what the attach status should be
once the current operation finishes

14 years agoRefactor: Remove atutil dump_response
Denis Kenzior [Mon, 8 Feb 2010 18:28:23 +0000 (12:28 -0600)]
Refactor: Remove atutil dump_response

No longer needed now that we have nice AT command tracing using
OFONO_AT_DEBUG=1

14 years agoFix: Don't use ofono_debug directly in plugins
Denis Kenzior [Mon, 8 Feb 2010 18:09:01 +0000 (12:09 -0600)]
Fix: Don't use ofono_debug directly in plugins

14 years agoFix: Don't use ofono_debug directly in the core
Denis Kenzior [Mon, 8 Feb 2010 17:54:03 +0000 (11:54 -0600)]
Fix: Don't use ofono_debug directly in the core

Use DBG macro which is integrated with the new debug framework.

14 years agoFix: Simplify overly complex error handling
Denis Kenzior [Fri, 5 Feb 2010 23:28:32 +0000 (17:28 -0600)]
Fix: Simplify overly complex error handling

14 years agoStyle: Rename variables to better indicate arrays
Denis Kenzior [Fri, 5 Feb 2010 23:25:53 +0000 (17:25 -0600)]
Style: Rename variables to better indicate arrays

Variables that hold arrays of strings should be named more appropriately
to help indicate this.

14 years agoStyle: No need for void here
Denis Kenzior [Fri, 5 Feb 2010 23:24:18 +0000 (17:24 -0600)]
Style: No need for void here

14 years agoMention Vinicius' contributions
Denis Kenzior [Fri, 5 Feb 2010 23:15:35 +0000 (17:15 -0600)]
Mention Vinicius' contributions

14 years agohfp: Fix memory leak when listing bluetooth devices
Vinicius Costa Gomes [Fri, 5 Feb 2010 23:06:47 +0000 (20:06 -0300)]
hfp: Fix memory leak when listing bluetooth devices

14 years agohfp: wait Disconnect reply to power down the modem
Gustavo F. Padovan [Sat, 14 Jan 2012 20:00:57 +0000 (18:00 -0200)]
hfp: wait Disconnect reply to power down the modem

14 years agoFix: Don't call UnregisterAgent if already Released
Gustavo F. Padovan [Sat, 14 Jan 2012 20:00:56 +0000 (18:00 -0200)]
Fix: Don't call UnregisterAgent if already Released

Prevent to call UnregisterAgent on an already unregistered agent.

14 years agohfp: create modem for new devices paired on runtime
Gustavo F. Padovan [Sat, 14 Jan 2012 20:00:55 +0000 (18:00 -0200)]
hfp: create modem for new devices paired on runtime

It listens the UUIDs property to create a modem from the recently paired
devices. It also renames added_watch to adapter_watch, a more proper
name.

14 years agoUpdate gitignore
Denis Kenzior [Fri, 5 Feb 2010 18:21:34 +0000 (12:21 -0600)]
Update gitignore

14 years agoFix: Send *EIAAUW after CGDCONT for STE and MBM
Denis Kenzior [Fri, 5 Feb 2010 18:20:45 +0000 (12:20 -0600)]
Fix: Send *EIAAUW after CGDCONT for STE and MBM

Otherwise the EIAAUW might fail.

14 years agoFix: Use snprintf instead of sprintf in hsomodem
Denis Kenzior [Fri, 5 Feb 2010 18:01:59 +0000 (12:01 -0600)]
Fix: Use snprintf instead of sprintf in hsomodem

14 years agoFix: Use snprintf instead of sprintf in mbmmodem
Denis Kenzior [Fri, 5 Feb 2010 18:01:45 +0000 (12:01 -0600)]
Fix: Use snprintf instead of sprintf in mbmmodem

14 years agoFix: Use snprintf instead of sprintf in calypso
Denis Kenzior [Fri, 5 Feb 2010 18:01:27 +0000 (12:01 -0600)]
Fix: Use snprintf instead of sprintf in calypso

14 years agoFix: Use snprintf instead of sprintf in stemodem
Denis Kenzior [Fri, 5 Feb 2010 18:01:13 +0000 (12:01 -0600)]
Fix: Use snprintf instead of sprintf in stemodem

14 years agoFix: Use snprintf instead of sprintf in HFP
Denis Kenzior [Fri, 5 Feb 2010 18:00:14 +0000 (12:00 -0600)]
Fix: Use snprintf instead of sprintf in HFP

14 years agoFix: Use snprintf instead of sprintf in atmodem
Denis Kenzior [Fri, 5 Feb 2010 17:59:24 +0000 (11:59 -0600)]
Fix: Use snprintf instead of sprintf in atmodem

14 years agoFix: Use snprintf instead of sprintf in the core
Denis Kenzior [Fri, 5 Feb 2010 16:33:58 +0000 (10:33 -0600)]
Fix: Use snprintf instead of sprintf in the core

14 years agoAdd isimodem radio settings driver
Aki Niemi [Thu, 4 Feb 2010 21:40:36 +0000 (23:40 +0200)]
Add isimodem radio settings driver

14 years agoAdd PN_GSS codepoints and debugging
Aki Niemi [Thu, 4 Feb 2010 21:39:30 +0000 (23:39 +0200)]
Add PN_GSS codepoints and debugging

14 years agoAdd radio settings atom and driver API
Aki Niemi [Wed, 3 Feb 2010 19:55:55 +0000 (21:55 +0200)]
Add radio settings atom and driver API

This interface exposes a read-write property for radio access technology
selection mode.

14 years agoFix: No need to check for handsfree_path now
Denis Kenzior [Thu, 4 Feb 2010 19:16:59 +0000 (13:16 -0600)]
Fix: No need to check for handsfree_path now

14 years agoCleanup: Refactor handling of failed connections
Denis Kenzior [Thu, 4 Feb 2010 19:13:09 +0000 (13:13 -0600)]
Cleanup: Refactor handling of failed connections

14 years agoCleanup: Modem creation
Denis Kenzior [Thu, 4 Feb 2010 18:58:18 +0000 (12:58 -0600)]
Cleanup: Modem creation

14 years agoAdd function to handle SLC handshake failures
Denis Kenzior [Thu, 4 Feb 2010 18:57:26 +0000 (12:57 -0600)]
Add function to handle SLC handshake failures

14 years agoFix: Don't send undefined values to the core
Denis Kenzior [Thu, 4 Feb 2010 06:26:20 +0000 (00:26 -0600)]
Fix: Don't send undefined values to the core

14 years agoFix: Unnecessary initializations
Denis Kenzior [Thu, 4 Feb 2010 06:24:14 +0000 (00:24 -0600)]
Fix: Unnecessary initializations

14 years agoFix: Dead Assignments
Denis Kenzior [Thu, 4 Feb 2010 06:12:50 +0000 (00:12 -0600)]
Fix: Dead Assignments

14 years agoFix: missing break statement
Denis Kenzior [Thu, 4 Feb 2010 06:05:57 +0000 (00:05 -0600)]
Fix: missing break statement

14 years agoFix: Dead Assignment
Denis Kenzior [Thu, 4 Feb 2010 06:00:00 +0000 (00:00 -0600)]
Fix: Dead Assignment

14 years agoFix: Wrong variables use
Denis Kenzior [Thu, 4 Feb 2010 05:58:27 +0000 (23:58 -0600)]
Fix: Wrong variables use

Copy/paste error from above resulted in incorrect variables being used
for comparison.

14 years agoFix: Check for \r in UCS2 alphabets
Denis Kenzior [Thu, 4 Feb 2010 05:28:41 +0000 (23:28 -0600)]
Fix: Check for \r in UCS2 alphabets

14 years agoUpdate overview.txt
Denis Kenzior [Wed, 3 Feb 2010 19:47:52 +0000 (13:47 -0600)]
Update overview.txt

14 years agoRemove dead assignments at gatchat
Gustavo F. Padovan [Tue, 2 Feb 2010 22:08:30 +0000 (20:08 -0200)]
Remove dead assignments at gatchat

14 years agoFix debug dump and unknown codepoint handling
Aki Niemi [Tue, 2 Feb 2010 19:40:04 +0000 (21:40 +0200)]
Fix debug dump and unknown codepoint handling

14 years agoFix change state immediately when meet the slash
Zhenhua Zhang [Tue, 2 Feb 2010 13:23:22 +0000 (21:23 +0800)]
Fix change state immediately when meet the slash

According to V.250 spec section 5.2.4 Repeating a command line, if
the prefix "A/" or "a/" is received, we should execute the last
command immediately. No need to meet \r.

14 years agoFix: Ignore CBM pdus bigger than 88 bytes
Denis Kenzior [Tue, 2 Feb 2010 17:13:06 +0000 (11:13 -0600)]
Fix: Ignore CBM pdus bigger than 88 bytes

14 years agoFix: Remove unused label
Denis Kenzior [Tue, 2 Feb 2010 00:02:40 +0000 (18:02 -0600)]
Fix: Remove unused label

14 years agoFix: Don't leak memory
Denis Kenzior [Mon, 1 Feb 2010 23:59:04 +0000 (17:59 -0600)]
Fix: Don't leak memory

14 years agoFix: Skip whitespace in AT command line
Denis Kenzior [Mon, 1 Feb 2010 23:58:48 +0000 (17:58 -0600)]
Fix: Skip whitespace in AT command line

14 years agoRefactor: Use more flexible parser framework
Denis Kenzior [Mon, 1 Feb 2010 21:00:45 +0000 (15:00 -0600)]
Refactor: Use more flexible parser framework

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