platform/upstream/ofono.git
14 years agoFix: modem _disable needs to send the CFUN
Denis Kenzior [Wed, 18 Nov 2009 18:08:14 +0000 (12:08 -0600)]
Fix: modem _disable needs to send the CFUN

For Huawei driver

14 years agoFix: modem _disable needs to send the CFUN
Denis Kenzior [Wed, 18 Nov 2009 18:07:59 +0000 (12:07 -0600)]
Fix: modem _disable needs to send the CFUN

For HSO driver

14 years agoFix: modem _disable needs to send the CFUN
Denis Kenzior [Wed, 18 Nov 2009 18:07:14 +0000 (12:07 -0600)]
Fix: modem _disable needs to send the CFUN

For G1 Driver

14 years agoAdd test script to deactivate a context
Marcel Holtmann [Wed, 18 Nov 2009 17:05:35 +0000 (18:05 +0100)]
Add test script to deactivate a context

14 years agoImplement CGREG query
Denis Kenzior [Wed, 18 Nov 2009 16:34:23 +0000 (10:34 -0600)]
Implement CGREG query

Some modems do not properly send CGREG notifications when the context is
attached / detached.  We manually query the registration state of GPRS
to make sure that if the modem is indeed attached, the state is
reflected properly

14 years agoRefactor: Move functions up to avoid declaration
Denis Kenzior [Wed, 18 Nov 2009 16:34:00 +0000 (10:34 -0600)]
Refactor: Move functions up to avoid declaration

14 years agoFix: Again, uncross the wires
Denis Kenzior [Wed, 18 Nov 2009 16:33:09 +0000 (10:33 -0600)]
Fix: Again, uncross the wires

14 years agoFix: Uncross the wires
Denis Kenzior [Wed, 18 Nov 2009 16:00:04 +0000 (10:00 -0600)]
Fix: Uncross the wires

14 years agoSupport SonyEricsson MD300
Denis Kenzior [Wed, 18 Nov 2009 15:33:01 +0000 (09:33 -0600)]
Support SonyEricsson MD300

14 years agoShow list of technologies in a simpler format
Marcel Holtmann [Wed, 18 Nov 2009 10:52:39 +0000 (11:52 +0100)]
Show list of technologies in a simpler format

14 years agoSupport Settings property of PrimaryContext
Denis Kenzior [Wed, 18 Nov 2009 00:55:32 +0000 (18:55 -0600)]
Support Settings property of PrimaryContext

14 years agoUpdate the MBM modem driver to the new API
Denis Kenzior [Wed, 18 Nov 2009 00:55:07 +0000 (18:55 -0600)]
Update the MBM modem driver to the new API

14 years agoUpdate the AT modem driver to the new API
Denis Kenzior [Wed, 18 Nov 2009 00:54:46 +0000 (18:54 -0600)]
Update the AT modem driver to the new API

14 years agoSupport returning settings from context activation
Denis Kenzior [Wed, 18 Nov 2009 00:54:21 +0000 (18:54 -0600)]
Support returning settings from context activation

14 years agoAdd ofono_gprs_context_get_modem
Martin Xu [Tue, 17 Nov 2009 21:56:31 +0000 (15:56 -0600)]
Add ofono_gprs_context_get_modem

14 years agoFix: Use Application port instead of Control
Denis Kenzior [Tue, 17 Nov 2009 17:37:21 +0000 (11:37 -0600)]
Fix: Use Application port instead of Control

It seems Control port does not send CGREG unsolicited notifications

14 years agoFix: Don't drop dialing calls when call=0 signaled
Denis Kenzior [Mon, 16 Nov 2009 17:45:03 +0000 (11:45 -0600)]
Fix: Don't drop dialing calls when call=0 signaled

14 years agoFix: Don't double-swap calls when 3-way dialing
Denis Kenzior [Mon, 16 Nov 2009 17:23:48 +0000 (11:23 -0600)]
Fix: Don't double-swap calls when 3-way dialing

14 years agoFix: Update the status to held properly
Denis Kenzior [Mon, 16 Nov 2009 17:19:23 +0000 (11:19 -0600)]
Fix: Update the status to held properly

14 years agoRefactor: Move repeated code to a function
Denis Kenzior [Mon, 16 Nov 2009 17:15:31 +0000 (11:15 -0600)]
Refactor: Move repeated code to a function

14 years agoFix: Handle callsetup=0 when no waiting or dialing call
Zhenhua Zhang [Mon, 16 Nov 2009 14:10:54 +0000 (22:10 +0800)]
Fix: Handle callsetup=0 when no waiting or dialing call

When call=1 and callsetup=0, if no waiting or dialing call, the call
is active and no need to notify status change.

14 years agoFix: Typo
Denis Kenzior [Mon, 16 Nov 2009 17:06:12 +0000 (11:06 -0600)]
Fix: Typo

14 years agoFix: Ignore repeated CCWAs in atmodem as well
Denis Kenzior [Mon, 16 Nov 2009 16:17:12 +0000 (10:17 -0600)]
Fix: Ignore repeated CCWAs in atmodem as well

14 years agoFix: Ignore repeated CCWA notify if have
Zhenhua Zhang [Mon, 16 Nov 2009 14:12:43 +0000 (22:12 +0800)]
Fix: Ignore repeated CCWA notify if have

Some phone like iPhone repeats CCWA notify. So we need to ignore
it when we already have waiting call.

14 years agoFix: Set current element properly
Denis Kenzior [Mon, 16 Nov 2009 16:09:48 +0000 (10:09 -0600)]
Fix: Set current element properly

When removing an element from the list, the current iterator was not
being updated properly.  Most likely leading to double free.

14 years agoStyle: Spacing
Denis Kenzior [Mon, 16 Nov 2009 16:02:52 +0000 (10:02 -0600)]
Style: Spacing

14 years agoadd Settings property description to dataconnectionmanger-api.txt
Martin Xu [Mon, 16 Nov 2009 04:05:04 +0000 (12:05 +0800)]
add Settings property description to dataconnectionmanger-api.txt

14 years agoRelease 0.10 0.10
Marcel Holtmann [Sat, 14 Nov 2009 09:23:14 +0000 (10:23 +0100)]
Release 0.10

14 years agoAdd three-way calling support to HFP voice driver
Denis Kenzior [Sat, 14 Nov 2009 04:47:10 +0000 (22:47 -0600)]
Add three-way calling support to HFP voice driver

14 years agoFix: Make sure we don't dial with an incoming call
Denis Kenzior [Fri, 13 Nov 2009 22:04:45 +0000 (16:04 -0600)]
Fix: Make sure we don't dial with an incoming call

14 years agoRefactor: Simplify code and add have_incoming
Denis Kenzior [Fri, 13 Nov 2009 22:03:33 +0000 (16:03 -0600)]
Refactor: Simplify code and add have_incoming

14 years agoMake sure the atmodem handles ATD properly
Denis Kenzior [Fri, 13 Nov 2009 21:34:41 +0000 (15:34 -0600)]
Make sure the atmodem handles ATD properly

The driver must set any existing active calls to held

14 years agoUpdate some internal documentation
Denis Kenzior [Fri, 13 Nov 2009 21:34:20 +0000 (15:34 -0600)]
Update some internal documentation

14 years agoRevert: Go back to the old dial behavior
Denis Kenzior [Fri, 13 Nov 2009 21:29:30 +0000 (15:29 -0600)]
Revert: Go back to the old dial behavior

The driver has a better idea of how to handle ATD being invoked when
a waiting/held/active call(s) is/are already present.  Generally most
modems will swap the call automatically preserving the state of the
waiting call.

We do block dialing another call while a dial is still in progress.

14 years agoFix: Fill in the phone number info for outgoing call
Zhenhua Zhang [Fri, 13 Nov 2009 11:28:32 +0000 (19:28 +0800)]
Fix: Fill in the phone number info for outgoing call

There're two cases of outgoing call: dial from HF or dial from
phone. We could receive callsetup=2 indicator in both case. So
adding AT+CLCC query to sync the outgoing call.

In the first case, we only need to sync the phone number.  In
the second case, the phone is dialing from phone and we know
nothing. Create a new call and notify the core.

If phone does not support AT+CLCC and there's no call dialing
from HF, we fake a new call for it.

14 years agoFix: Add support for Option Icon 401
Denis Kenzior [Fri, 13 Nov 2009 15:12:47 +0000 (09:12 -0600)]
Fix: Add support for Option Icon 401

14 years agoFix: Remove yet another duplicate atom
Denis Kenzior [Fri, 13 Nov 2009 15:12:35 +0000 (09:12 -0600)]
Fix: Remove yet another duplicate atom

14 years agoFix: Remove duplicate SMS atom from HSO plugin
Denis Kenzior [Fri, 13 Nov 2009 06:23:19 +0000 (00:23 -0600)]
Fix: Remove duplicate SMS atom from HSO plugin

14 years agoStyle: add new line
Denis Kenzior [Fri, 13 Nov 2009 06:05:42 +0000 (00:05 -0600)]
Style: add new line

14 years agoFix issue with missing masking of AT%CHLD
Marcel Holtmann [Fri, 13 Nov 2009 03:33:29 +0000 (04:33 +0100)]
Fix issue with missing masking of AT%CHLD

drivers/calypsomodem/voicecall.c: In function ‘calypso_release_specific’:
drivers/calypsomodem/voicecall.c:162: error: too few arguments for format

14 years agoFix: On calypso use proprietory %CHLD=7X command
Denis Kenzior [Fri, 13 Nov 2009 01:16:01 +0000 (19:16 -0600)]
Fix: On calypso use proprietory %CHLD=7X command

14 years agoUse release_all_held to release a single held call
Denis Kenzior [Thu, 12 Nov 2009 23:54:49 +0000 (17:54 -0600)]
Use release_all_held to release a single held call

14 years agoRemove Voicecall.Busy method
Denis Kenzior [Thu, 12 Nov 2009 23:54:26 +0000 (17:54 -0600)]
Remove Voicecall.Busy method

According to 22.030, UDUB or CHLD=0 can only be invoked on waiting
calls.  Most AT command based modems do not support using CHLD=0 on an
incoming call.  So we remove the Busy method and invoke set_udub on
a call that is in the waiting state.

14 years agoUse at_util_parse_clcc in atmodem
Zhenhua Zhang [Thu, 12 Nov 2009 16:32:19 +0000 (00:32 +0800)]
Use at_util_parse_clcc in atmodem

Replace parse_clcc by at_util_parse_clcc in atmodem voicecall.

14 years agoAdd parse_clcc into atutil.c
Zhenhua Zhang [Thu, 12 Nov 2009 16:31:38 +0000 (00:31 +0800)]
Add parse_clcc into atutil.c

So that it could be shared by atmodem and hfpmodem.

14 years agoFix: Set data to NULL in hfpmodem drivers
Zhenhua Zhang [Thu, 12 Nov 2009 16:31:03 +0000 (00:31 +0800)]
Fix: Set data to NULL in hfpmodem drivers

14 years agoFix: Emit Manufacturer, not Serial
Denis Kenzior [Thu, 12 Nov 2009 04:09:36 +0000 (22:09 -0600)]
Fix: Emit Manufacturer, not Serial

14 years agoFix: Capitalize modem options in calypso driver
Ryan M. Raasch [Wed, 11 Nov 2009 22:44:57 +0000 (23:44 +0100)]
Fix: Capitalize modem options in calypso driver

This patch fixes the calypso driver when setting the g_at_tty
variables.

14 years agoStyle: Use 1 instead of 0x1
Zhenhua Zhang [Sat, 7 Nov 2009 07:22:59 +0000 (15:22 +0800)]
Style: Use 1 instead of 0x1

14 years agoAdd call_compare_by_phone_number utility function
Zhenhua Zhang [Sat, 7 Nov 2009 07:21:25 +0000 (15:21 +0800)]
Add call_compare_by_phone_number utility function

This utility will be used by HFP voicecall driver to compare
two calls. In some hardware, the call index may be shift when
a call transitions from waiting to incoming state (e.g. all other
held and active calls are released)

14 years agoFix: Set data to NULL in drivers
Denis Kenzior [Wed, 11 Nov 2009 21:59:01 +0000 (15:59 -0600)]
Fix: Set data to NULL in drivers

14 years agoFix: Don't leak data in SIM atom driver
Denis Kenzior [Wed, 11 Nov 2009 21:58:45 +0000 (15:58 -0600)]
Fix: Don't leak data in SIM atom driver

14 years agoAdd call volume support for hfpmodem
Zhenhua Zhang [Sun, 8 Nov 2009 17:15:59 +0000 (01:15 +0800)]
Add call volume support for hfpmodem

The call volume driver listens the speaker volume and microphone
gain from the AG. It also allow to synchronze the speaker and
microphone volume changes with the AG through AT+VGS and AT+VGM.

Volume level synchronization from HFP spec 1.5 Section 4.28.2
is performed on startup.

14 years agoFix: Invoke microphone_volume, not speaker
Zhenhua Zhang [Wed, 11 Nov 2009 13:32:07 +0000 (21:32 +0800)]
Fix: Invoke microphone_volume, not speaker

14 years agoAdd SMS support to PalmPre plugin
Denis Kenzior [Tue, 10 Nov 2009 22:28:27 +0000 (16:28 -0600)]
Add SMS support to PalmPre plugin

14 years agoAdd Palm Pre plugin
Andrzej Zaborowski [Tue, 10 Nov 2009 06:30:23 +0000 (07:30 +0100)]
Add Palm Pre plugin

14 years agoFix: Rename G1 quirk to QUALCOMM_MSM
Denis Kenzior [Tue, 10 Nov 2009 22:22:27 +0000 (16:22 -0600)]
Fix: Rename G1 quirk to QUALCOMM_MSM

14 years agoWork around Palm Pre SIM file reading quirk.
Andrzej Zaborowski [Tue, 10 Nov 2009 06:30:10 +0000 (07:30 +0100)]
Work around Palm Pre SIM file reading quirk.

I'm not sure if MSM is not a too generic name but it seems the G1's
Qualcomm MSM suffers from similar problems.

14 years agoRemove GTHREAD_CFLAGS and GTHREAD_LIBS usage
Marcel Holtmann [Tue, 10 Nov 2009 19:43:47 +0000 (20:43 +0100)]
Remove GTHREAD_CFLAGS and GTHREAD_LIBS usage

14 years agoProperly skip over quoted values
Andrzej Zaborowski [Tue, 10 Nov 2009 06:31:31 +0000 (07:31 +0100)]
Properly skip over quoted values

Otherwise a left paren in a string can bring an obscure segfault.

14 years agoUpdate test script to newer api.
Andrzej Zaborowski [Tue, 10 Nov 2009 06:31:20 +0000 (07:31 +0100)]
Update test script to newer api.

Also remove an unused "import".

14 years agoFix +CGEV: parsing
Andrzej Zaborowski [Tue, 10 Nov 2009 06:31:07 +0000 (07:31 +0100)]
Fix +CGEV: parsing

14 years agoAccept ranges in +CSMS responses.
Andrzej Zaborowski [Tue, 10 Nov 2009 06:30:55 +0000 (07:30 +0100)]
Accept ranges in +CSMS responses.

14 years agoFix: Don't bail if CREG/CGREG mode=2 is unsupported
Andrzej Zaborowski [Tue, 10 Nov 2009 06:29:56 +0000 (07:29 +0100)]
Fix: Don't bail if CREG/CGREG mode=2 is unsupported

14 years agoUpdate network-api.txt to match implementation
Denis Kenzior [Mon, 9 Nov 2009 21:42:36 +0000 (15:42 -0600)]
Update network-api.txt to match implementation

14 years agoAdd basic state saving for SMS atom
Denis Kenzior [Thu, 5 Nov 2009 23:06:21 +0000 (17:06 -0600)]
Add basic state saving for SMS atom

Message ID and Reference number for concatenated messages should be
persisted.

14 years agoAdd sample implementation of SMS history
Denis Kenzior [Thu, 5 Nov 2009 22:47:38 +0000 (16:47 -0600)]
Add sample implementation of SMS history

14 years agoAdd hooks to call into sms history for SMS atom
Denis Kenzior [Thu, 5 Nov 2009 22:47:12 +0000 (16:47 -0600)]
Add hooks to call into sms history for SMS atom

14 years agoAdd SMS history capability
Denis Kenzior [Thu, 5 Nov 2009 22:46:43 +0000 (16:46 -0600)]
Add SMS history capability

14 years agoRefactor: Make SendMessage async
Denis Kenzior [Thu, 5 Nov 2009 22:44:22 +0000 (16:44 -0600)]
Refactor: Make SendMessage async

This commit does two things.  First it makes SendMessage an async
method, which returns only when the SMS message has been successfully
sent or failed.

This also adds a set number of tries that oFono will resubmit the PDU to
the SMSC.  If any fragment fails to be submitted, the entire send
message attempt is deemed a failure and an error is returned to the caller.

14 years agoRename sms assembly path to sms_assembly from sms
Denis Kenzior [Thu, 5 Nov 2009 22:42:15 +0000 (16:42 -0600)]
Rename sms assembly path to sms_assembly from sms

Not to interfere with sms settings storage

14 years agoUse localtime_r instead of localtime
Denis Kenzior [Thu, 5 Nov 2009 22:00:34 +0000 (16:00 -0600)]
Use localtime_r instead of localtime

14 years agoFix: Update send-sms to the new API
Denis Kenzior [Thu, 5 Nov 2009 17:51:54 +0000 (11:51 -0600)]
Fix: Update send-sms to the new API

14 years agoFix: Handle MBM hardware that fails on EMRDY?
Denis Kenzior [Thu, 5 Nov 2009 17:00:57 +0000 (11:00 -0600)]
Fix: Handle MBM hardware that fails on EMRDY?

14 years agoRefactor: Move SMS SendMessage to 1 recipient only
Denis Kenzior [Thu, 5 Nov 2009 16:27:25 +0000 (10:27 -0600)]
Refactor: Move SMS SendMessage to 1 recipient only

14 years agoFix: Load GPRS settings before finding netreg
Denis Kenzior [Thu, 5 Nov 2009 16:25:59 +0000 (10:25 -0600)]
Fix: Load GPRS settings before finding netreg

GPRS Settings should be loaded before we try to find netreg atom and
potentially try to make the attach/detach decisions.

14 years agoFix: Handle the case where only PLMN name is given
Denis Kenzior [Wed, 4 Nov 2009 17:43:57 +0000 (11:43 -0600)]
Fix: Handle the case where only PLMN name is given

HFP does not allow the use of register / unregister or scan for operator
functionality.  It only allows the name of the operator to be given, not
even an MCC/MNC.  Handle this situation inside netreg atom.

14 years agoFix: Minor style issues
Denis Kenzior [Tue, 3 Nov 2009 17:57:43 +0000 (11:57 -0600)]
Fix: Minor style issues

14 years agoCreate network registration driver for hfpmodem
Gustavo F. Padovan [Tue, 3 Nov 2009 17:44:36 +0000 (15:44 -0200)]
Create network registration driver for hfpmodem

This driver handles phone informations about registration status, signal
strength and roaming status listening +CIEV commands.  It also gets the
Network Operator name with +COPS commands.

14 years agoFix: The use of cind_val / cind_pos was wrong
Zhenhua Zhang [Tue, 3 Nov 2009 17:26:08 +0000 (11:26 -0600)]
Fix: The use of cind_val / cind_pos was wrong

14 years agoRefactor: Get rid of mpty_call variable
Zhenhua Zhang [Tue, 3 Nov 2009 17:22:23 +0000 (11:22 -0600)]
Refactor: Get rid of mpty_call variable

14 years agoFix: Remove some dead code
Zhenhua Zhang [Tue, 3 Nov 2009 17:19:39 +0000 (11:19 -0600)]
Fix: Remove some dead code

14 years agoAdd ability to restore GPRS contexts from settings
Denis Kenzior [Mon, 2 Nov 2009 21:59:38 +0000 (15:59 -0600)]
Add ability to restore GPRS contexts from settings

14 years agoSave GPRS context settings
Denis Kenzior [Mon, 2 Nov 2009 20:43:15 +0000 (14:43 -0600)]
Save GPRS context settings

14 years agoAdd Basic save/restore code for GPRS setting
Denis Kenzior [Mon, 2 Nov 2009 20:42:10 +0000 (14:42 -0600)]
Add Basic save/restore code for GPRS setting

14 years agoLimit the number of contexts that we manage
Denis Kenzior [Mon, 2 Nov 2009 17:31:29 +0000 (11:31 -0600)]
Limit the number of contexts that we manage

14 years agoUpdate CreateContext API
Denis Kenzior [Mon, 2 Nov 2009 17:24:59 +0000 (11:24 -0600)]
Update CreateContext API

14 years agoAdd utility to convert strings to context type
Denis Kenzior [Mon, 2 Nov 2009 17:22:35 +0000 (11:22 -0600)]
Add utility to convert strings to context type

14 years agoFix: Default to type internet
Denis Kenzior [Fri, 30 Oct 2009 22:19:32 +0000 (17:19 -0500)]
Fix: Default to type internet

14 years agoRelease 0.9 0.9
Marcel Holtmann [Sun, 1 Nov 2009 14:49:40 +0000 (23:49 +0900)]
Release 0.9

14 years agoUse ofono_info() for AT command debugging
Marcel Holtmann [Sun, 1 Nov 2009 14:42:18 +0000 (23:42 +0900)]
Use ofono_info() for AT command debugging

14 years agoInserted the GSM syntax option in modem.conf
Ryan M. Raasch [Fri, 30 Oct 2009 13:18:00 +0000 (14:18 +0100)]
Inserted the GSM syntax option in modem.conf

This is patch to allow the gsm syntax to be specified in the
modem.conf file. It is a 2nd version based on code change requests.

14 years agoFix: Quiet compiler warnings
Denis Kenzior [Fri, 30 Oct 2009 21:09:59 +0000 (16:09 -0500)]
Fix: Quiet compiler warnings

14 years agoAdd checking for valid APN format
Denis Kenzior [Fri, 30 Oct 2009 20:54:32 +0000 (15:54 -0500)]
Add checking for valid APN format

14 years agoAdd unit test for valid APN names
Denis Kenzior [Fri, 30 Oct 2009 20:52:38 +0000 (15:52 -0500)]
Add unit test for valid APN names

14 years agoAdd utility to test for valid APN names
Denis Kenzior [Fri, 30 Oct 2009 20:52:29 +0000 (15:52 -0500)]
Add utility to test for valid APN names

14 years agoAdd saving / restoring of netreg settings
Denis Kenzior [Fri, 30 Oct 2009 20:23:27 +0000 (15:23 -0500)]
Add saving / restoring of netreg settings

14 years agoAdd utilities for settings management
Denis Kenzior [Fri, 30 Oct 2009 20:22:06 +0000 (15:22 -0500)]
Add utilities for settings management

14 years agoFix: Remove unused header include
Denis Kenzior [Fri, 30 Oct 2009 18:20:31 +0000 (13:20 -0500)]
Fix: Remove unused header include

14 years agoAdd Mode property to NetworkRegistration
Denis Kenzior [Fri, 30 Oct 2009 17:38:12 +0000 (12:38 -0500)]
Add Mode property to NetworkRegistration