platform/upstream/ofono.git
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.

15 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

15 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

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

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

15 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

15 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

15 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

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

15 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

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

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

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

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

15 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

15 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

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

15 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

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

15 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

15 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

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

15 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

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

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

15 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

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

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

15 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

15 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

15 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

15 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

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

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

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

15 years agoFix: style issues
Denis Kenzior [Fri, 30 Oct 2009 17:37:23 +0000 (12:37 -0500)]
Fix: style issues

15 years agoFix: Refine the logic for CHLD=1 and CHLD=2
Denis Kenzior [Fri, 30 Oct 2009 17:02:43 +0000 (12:02 -0500)]
Fix: Refine the logic for CHLD=1 and CHLD=2

15 years agoFix: Properly update technologies
Denis Kenzior [Thu, 29 Oct 2009 21:38:25 +0000 (16:38 -0500)]
Fix: Properly update technologies

When current operator is reported, update the technology list if the
tech information is available

15 years agoCompress the operator list before processing
Denis Kenzior [Thu, 29 Oct 2009 21:33:29 +0000 (16:33 -0500)]
Compress the operator list before processing

15 years agoUpdate the network API
Denis Kenzior [Thu, 29 Oct 2009 21:09:32 +0000 (16:09 -0500)]
Update the network API

15 years agoAdd utility to compress plmns that vary by tech
Denis Kenzior [Thu, 29 Oct 2009 20:58:32 +0000 (15:58 -0500)]
Add utility to compress plmns that vary by tech

15 years agoRefactor: Get rid of useless netreg parameter
Denis Kenzior [Thu, 29 Oct 2009 20:58:09 +0000 (15:58 -0500)]
Refactor: Get rid of useless netreg parameter

15 years agoRefactor: Use Technologies instead of Technology
Denis Kenzior [Thu, 29 Oct 2009 20:57:02 +0000 (15:57 -0500)]
Refactor: Use Technologies instead of Technology

15 years agoAdd utility to create a list of supported techs
Denis Kenzior [Thu, 29 Oct 2009 20:54:23 +0000 (15:54 -0500)]
Add utility to create a list of supported techs

15 years agoRefactor: Operator registration to DBUS
Denis Kenzior [Thu, 29 Oct 2009 20:48:37 +0000 (15:48 -0500)]
Refactor: Operator registration to DBUS

15 years agoRefactor: Internal data structures
Denis Kenzior [Thu, 29 Oct 2009 20:33:57 +0000 (15:33 -0500)]
Refactor: Internal data structures

This is in preparation to coalescing multiple operators reported by the
driver that vary only by technology into a single operator with multiple
technologies

15 years agoUpdate the isimodem driver to the new API
Denis Kenzior [Thu, 29 Oct 2009 20:29:55 +0000 (15:29 -0500)]
Update the isimodem driver to the new API

15 years agoUpdate the atmodem driver to the new API
Denis Kenzior [Thu, 29 Oct 2009 20:29:41 +0000 (15:29 -0500)]
Update the atmodem driver to the new API

15 years agoUpdate the netreg driver to use mcc/mnc
Denis Kenzior [Thu, 29 Oct 2009 20:29:12 +0000 (15:29 -0500)]
Update the netreg driver to use mcc/mnc

Don't use the ofono_network_operator structure anymore

15 years agoFix: Don't pass ofono_network_operator structures
Denis Kenzior [Thu, 29 Oct 2009 20:28:26 +0000 (15:28 -0500)]
Fix: Don't pass ofono_network_operator structures

15 years agoFix: Also auto register when status is unknown
Denis Kenzior [Thu, 29 Oct 2009 19:21:04 +0000 (14:21 -0500)]
Fix: Also auto register when status is unknown

15 years agoFix: Quiet compiler warning
Denis Kenzior [Thu, 29 Oct 2009 19:18:19 +0000 (14:18 -0500)]
Fix: Quiet compiler warning

15 years agoRefactor: Make MBM driver actually use EMRDY
Denis Kenzior [Thu, 29 Oct 2009 17:50:52 +0000 (12:50 -0500)]
Refactor: Make MBM driver actually use EMRDY

15 years agoFix: Return EINPROGRESS as intended
Denis Kenzior [Thu, 29 Oct 2009 17:50:28 +0000 (12:50 -0500)]
Fix: Return EINPROGRESS as intended

15 years agoFix message handling for autostart.
Claudio Takahasi [Tue, 27 Oct 2009 20:24:11 +0000 (18:24 -0200)]
Fix message handling for autostart.

Current implementation of libdbus Request name is blocking, consequently
the first incomming message that triggered the service autostart is not
being processed properly.

15 years agoFix: Refine logic for hangup
Denis Kenzior [Thu, 29 Oct 2009 05:10:03 +0000 (00:10 -0500)]
Fix: Refine logic for hangup

15 years agoFix: This hack is no longer necessary
Denis Kenzior [Thu, 29 Oct 2009 04:40:04 +0000 (23:40 -0500)]
Fix: This hack is no longer necessary

15 years agoIn the simple single active call case, use hangup
Denis Kenzior [Thu, 29 Oct 2009 04:39:15 +0000 (23:39 -0500)]
In the simple single active call case, use hangup

15 years agoFix: Don't pass the indexes
Denis Kenzior [Thu, 29 Oct 2009 00:23:25 +0000 (19:23 -0500)]
Fix: Don't pass the indexes

These can be obtained inside the function anyway

15 years agoFix: No need to set this to NULL
Denis Kenzior [Wed, 28 Oct 2009 22:40:35 +0000 (17:40 -0500)]
Fix: No need to set this to NULL

15 years agoCleanup: Fixup style
Denis Kenzior [Wed, 28 Oct 2009 22:40:06 +0000 (17:40 -0500)]
Cleanup: Fixup style

15 years agoAdd voicecall driver for Bluetooth HFP
Zhenhua Zhang [Wed, 28 Oct 2009 11:01:24 +0000 (19:01 +0800)]
Add voicecall driver for Bluetooth HFP

HFP voicecall driver uses AT+CIEV indicator to notify call status
update according to Bluetooth HFP spec v1.5. This patch only adds single
call support.

15 years agoRefactor: Move alloc/release id to atutil.c
Zhenhua Zhang [Wed, 28 Oct 2009 17:42:39 +0000 (01:42 +0800)]
Refactor: Move alloc/release id to atutil.c

15 years agoRefactor: Move & Rename functions to atutil.c
Zhenhua Zhang [Wed, 28 Oct 2009 17:22:06 +0000 (01:22 +0800)]
Refactor: Move & Rename functions to atutil.c

Move and rename call_compare and call_compare_by_status to atutil.c.
These will be utilized by other drivers, including hfpmodem.

15 years agoCleanup previous patch
Denis Kenzior [Wed, 28 Oct 2009 21:56:45 +0000 (16:56 -0500)]
Cleanup previous patch

15 years agoAdd serial settings parser to modemconf plugin
Ryan Raasch [Tue, 27 Oct 2009 12:55:16 +0000 (13:55 +0100)]
Add serial settings parser to modemconf plugin

15 years agoCleanup previous patch and update docs
Denis Kenzior [Wed, 28 Oct 2009 21:38:55 +0000 (16:38 -0500)]
Cleanup previous patch and update docs

15 years agoRefactor: Capitalize g_at_tty option names
Ryan Raasch [Tue, 27 Oct 2009 12:54:31 +0000 (13:54 +0100)]
Refactor: Capitalize g_at_tty option names

15 years agoFix: Take care of the logic for Dialing
Denis Kenzior [Wed, 28 Oct 2009 19:36:14 +0000 (14:36 -0500)]
Fix: Take care of the logic for Dialing

The logic for dialing a call while other calls are in the system is a
bit more complicated than what was implemented.

There are several cases to consider:

- Active Call and Held Call
In this situation we cannot dial, the user must drop one of the
calls.
- Active Call and Waiting Call -> We have to put the active call on
  hold, unfortunately there is no standard command to do so without
  affecting the waiting call.  If the modem has a vendor specific
  implementation, then try to use that.

- Active Call only -> Put the active call on hold.  We use the
  swap_without_accept implementation (if exists) to be safe, otherwise
  we fall back to hold active calls.

- No Active calls -> Simply dial

15 years agoRefactor: Avoid unnecessary forward declarations
Denis Kenzior [Wed, 28 Oct 2009 19:28:51 +0000 (14:28 -0500)]
Refactor: Avoid unnecessary forward declarations

15 years agoRefactor: Move more code around
Denis Kenzior [Wed, 28 Oct 2009 19:27:39 +0000 (14:27 -0500)]
Refactor: Move more code around

Avoid unnecessary forward declarations

15 years agoRefactor: Move code to avoid forward declaration
Denis Kenzior [Wed, 28 Oct 2009 19:23:51 +0000 (14:23 -0500)]
Refactor: Move code to avoid forward declaration

15 years agoRefactor: Get rid of PENDING_FLAG in voicecalls
Denis Kenzior [Wed, 28 Oct 2009 19:12:21 +0000 (14:12 -0500)]
Refactor: Get rid of PENDING_FLAG in voicecalls

the pending variable was enough already.  Also refactor to use
__ofono_dbus_pending_reply to make the code much more readable.

15 years agoAdd utility to parse CLIR option
Denis Kenzior [Wed, 28 Oct 2009 18:06:34 +0000 (13:06 -0500)]
Add utility to parse CLIR option

15 years agoRefactor: replace netreg get_operator with mcc/mnc
Denis Kenzior [Wed, 28 Oct 2009 00:47:52 +0000 (19:47 -0500)]
Refactor: replace netreg get_operator with mcc/mnc

The full operator information is useless as only mcc/mnc are really
required.  The internal structures will be changing soon

15 years agoFix: Don't emit spurious Base Station Name signal
Denis Kenzior [Tue, 27 Oct 2009 19:41:43 +0000 (14:41 -0500)]
Fix: Don't emit spurious Base Station Name signal

15 years agoFix: Skip empty emergency numbers
Denis Kenzior [Tue, 27 Oct 2009 17:47:42 +0000 (12:47 -0500)]
Fix: Skip empty emergency numbers

15 years agoFix: Obscure crash when GPRS is not supported
Denis Kenzior [Tue, 27 Oct 2009 17:39:20 +0000 (12:39 -0500)]
Fix: Obscure crash when GPRS is not supported

15 years agoFix: Properly unregister context on exit
Denis Kenzior [Tue, 27 Oct 2009 17:39:09 +0000 (12:39 -0500)]
Fix: Properly unregister context on exit

15 years agoFix: Use driver_attached instead of attached
Denis Kenzior [Mon, 26 Oct 2009 23:30:41 +0000 (18:30 -0500)]
Fix: Use driver_attached instead of attached

15 years agoMake netreg_update based on CREG, not CGREG
Denis Kenzior [Mon, 26 Oct 2009 22:26:19 +0000 (17:26 -0500)]
Make netreg_update based on CREG, not CGREG

15 years agoSimplify logic in netreg_update
Denis Kenzior [Mon, 26 Oct 2009 22:25:52 +0000 (17:25 -0500)]
Simplify logic in netreg_update

15 years agoFix unused variable warning
Denis Kenzior [Mon, 26 Oct 2009 22:00:35 +0000 (17:00 -0500)]
Fix unused variable warning

15 years agoDon't cause an infinite loop
Denis Kenzior [Mon, 26 Oct 2009 21:59:22 +0000 (16:59 -0500)]
Don't cause an infinite loop

15 years agoGet rid of the AFTER_ROAMING stuff
Denis Kenzior [Mon, 26 Oct 2009 21:58:24 +0000 (16:58 -0500)]
Get rid of the AFTER_ROAMING stuff

15 years agoIgnore gprs status when not attached/attaching
Denis Kenzior [Mon, 26 Oct 2009 21:57:21 +0000 (16:57 -0500)]
Ignore gprs status when not attached/attaching

15 years agoUpdate attached status when gprs status changes
Denis Kenzior [Mon, 26 Oct 2009 21:56:52 +0000 (16:56 -0500)]
Update attached status when gprs status changes

15 years agoFix: notify_attached was only used when detached
Denis Kenzior [Mon, 26 Oct 2009 21:55:03 +0000 (16:55 -0500)]
Fix: notify_attached was only used when detached

The standard only specifies that the context might have been detached by
the network / mobile equipment.  Not attached.

15 years agoAdd a master function for updating attached state
Denis Kenzior [Mon, 26 Oct 2009 21:54:18 +0000 (16:54 -0500)]
Add a master function for updating attached state

15 years agoFixup initialization logic
Denis Kenzior [Mon, 26 Oct 2009 21:20:36 +0000 (16:20 -0500)]
Fixup initialization logic

15 years agoFix: Initialize registration statuses
Denis Kenzior [Mon, 26 Oct 2009 21:19:54 +0000 (16:19 -0500)]
Fix: Initialize registration statuses

15 years agoFix: Reset netreg to 0 when unregistered
Denis Kenzior [Mon, 26 Oct 2009 21:18:17 +0000 (16:18 -0500)]
Fix: Reset netreg to 0 when unregistered