platform/upstream/ofono.git
14 years agoAdd support bringing GPRS interfaces up and down as needed
Marcel Holtmann [Mon, 23 Nov 2009 23:26:09 +0000 (00:26 +0100)]
Add support bringing GPRS interfaces up and down as needed

14 years agoEmit settings signal before active signal
Martin Xu [Sat, 21 Nov 2009 10:56:48 +0000 (18:56 +0800)]
Emit settings signal before active signal

14 years agoAdd mpty field to ofono_call
Zhenhua Zhang [Mon, 23 Nov 2009 06:06:53 +0000 (14:06 +0800)]
Add mpty field to ofono_call

A field 'mpty' is added to ofono_call so that we can know
whether the call belongs to multiparty call or not. According
to 27.007 7.18, it is a defined return value of AT+CLCC.

14 years agoFix: Poll CLCC to replace the code in call_held=1
Zhenhua Zhang [Wed, 18 Nov 2009 06:55:15 +0000 (14:55 +0800)]
Fix: Poll CLCC to replace the code in call_held=1

When using CHLD=2x in multiparty call, call_held is 1 and we
should not swap all active->held. So we cannot save this pull
in private chat.

14 years agoAdd pretty decoding for DomainNameServers settings
Marcel Holtmann [Thu, 19 Nov 2009 03:52:09 +0000 (04:52 +0100)]
Add pretty decoding for DomainNameServers settings

14 years agoFix: warnings
Denis Kenzior [Thu, 19 Nov 2009 00:03:05 +0000 (18:03 -0600)]
Fix: warnings

14 years agoTurn off echo on HSO modems
Denis Kenzior [Wed, 18 Nov 2009 23:58:15 +0000 (17:58 -0600)]
Turn off echo on HSO modems

14 years agoGet rid of a few debugs
Denis Kenzior [Wed, 18 Nov 2009 23:58:07 +0000 (17:58 -0600)]
Get rid of a few debugs

14 years agoMake HSO context driver use OWANCALL/OWANDATA
Denis Kenzior [Wed, 18 Nov 2009 23:43:54 +0000 (17:43 -0600)]
Make HSO context driver use OWANCALL/OWANDATA

14 years agoAdd CALLBACK_WITH_SUCCESS
Denis Kenzior [Wed, 18 Nov 2009 23:43:45 +0000 (17:43 -0600)]
Add CALLBACK_WITH_SUCCESS

14 years agoParse the weird response of _OWANDATA
Denis Kenzior [Wed, 18 Nov 2009 23:13:28 +0000 (17:13 -0600)]
Parse the weird response of _OWANDATA

The strings are unquoted and preceded by space.  Don't these people read
specs?

14 years agoMake HSO modem driver use App & Control ports
Denis Kenzior [Wed, 18 Nov 2009 23:11:43 +0000 (17:11 -0600)]
Make HSO modem driver use App & Control ports

The Application port gets all unsolicited notifications except for
OWANCALL notifications.  In turn only the Control port gets OWANCALL
notifications.

This means that we run GPRS Context control on the Control port and
network registration / sms on the application port

14 years agoMake HSO support detect Application & Control port
Denis Kenzior [Wed, 18 Nov 2009 23:11:13 +0000 (17:11 -0600)]
Make HSO support detect Application & Control port

14 years agoFix: Use none_prefix
Denis Kenzior [Wed, 18 Nov 2009 23:10:25 +0000 (17:10 -0600)]
Fix: Use none_prefix

Do not eat up unsolicited notifications that might arrive as a result of
CFUN=0

14 years agoFix: Properly send & parse _OWANDATA
Denis Kenzior [Wed, 18 Nov 2009 22:34:32 +0000 (16:34 -0600)]
Fix: Properly send & parse _OWANDATA

14 years agoFix: Send username and password properly
Denis Kenzior [Wed, 18 Nov 2009 22:34:06 +0000 (16:34 -0600)]
Fix: Send username and password properly

14 years agoAdd disable-modem script
Denis Kenzior [Wed, 18 Nov 2009 22:28:47 +0000 (16:28 -0600)]
Add disable-modem script

14 years agoAdd initial HSO GPRS context driver
Denis Kenzior [Wed, 18 Nov 2009 21:26:23 +0000 (15:26 -0600)]
Add initial HSO GPRS context driver

14 years agoDecode the settings information of a context
Marcel Holtmann [Wed, 18 Nov 2009 21:37:46 +0000 (22:37 +0100)]
Decode the settings information of a context

14 years agoAdd some extra pretty decoding to monitor script
Marcel Holtmann [Wed, 18 Nov 2009 21:37:25 +0000 (22:37 +0100)]
Add some extra pretty decoding to monitor script

14 years agoUpdate docs with new Errors
Denis Kenzior [Wed, 18 Nov 2009 19:25:35 +0000 (13:25 -0600)]
Update docs with new Errors

14 years agoReport AttachInProgress Error
Denis Kenzior [Wed, 18 Nov 2009 19:24:20 +0000 (13:24 -0600)]
Report AttachInProgress Error

If one tries to activate a context and we're currently attaching or
detaching from GPRS, report the AttachInProgress error

14 years agoRefactor: Send NotAttached error
Denis Kenzior [Wed, 18 Nov 2009 19:23:13 +0000 (13:23 -0600)]
Refactor: Send NotAttached error

If one tries to activate the context and we're currently not attached to
GPRS, report a NotAttached error instead of a failure

14 years agoFix: Report status & tech in hfpmodem
Denis Kenzior [Wed, 18 Nov 2009 19:02:26 +0000 (13:02 -0600)]
Fix: Report status & tech in hfpmodem

14 years agoFix: Report the current operator as current
Denis Kenzior [Wed, 18 Nov 2009 19:02:02 +0000 (13:02 -0600)]
Fix: Report the current operator as current

14 years agoUpdate network API
Denis Kenzior [Wed, 18 Nov 2009 18:52:29 +0000 (12:52 -0600)]
Update network API

14 years agoAdd ProposeScan method
Denis Kenzior [Wed, 18 Nov 2009 18:49:26 +0000 (12:49 -0600)]
Add ProposeScan method

This is the replacement for automatic operator scanning

14 years agoFix: Use a different function for initial register
Denis Kenzior [Wed, 18 Nov 2009 18:28:45 +0000 (12:28 -0600)]
Fix: Use a different function for initial register

Just in case pending variable gets set to something

14 years agoRefactor: Reshuffle bit flags
Denis Kenzior [Wed, 18 Nov 2009 18:21:45 +0000 (12:21 -0600)]
Refactor: Reshuffle bit flags

14 years agoRefactor: Remove period operator scan
Denis Kenzior [Wed, 18 Nov 2009 18:21:30 +0000 (12:21 -0600)]
Refactor: Remove period operator scan

14 years agoRefactor: Get rid of PENDING flag in netreg
Denis Kenzior [Wed, 18 Nov 2009 18:20:39 +0000 (12:20 -0600)]
Refactor: Get rid of PENDING flag in netreg

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

For PalmPre driver

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

For Novatel driver

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

For MBM driver

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

15 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.