platform/upstream/ofono.git
12 years agoiceramodem: Add special GPRS context driver
Marcel Holtmann [Tue, 22 May 2012 10:05:24 +0000 (12:05 +0200)]
iceramodem: Add special GPRS context driver

12 years agoicera: Add SIM, network registration and GPRS handling
Marcel Holtmann [Tue, 22 May 2012 10:04:13 +0000 (12:04 +0200)]
icera: Add SIM, network registration and GPRS handling

12 years agoatmodem: The Icera modem does not support CIND reporting
Marcel Holtmann [Tue, 22 May 2012 10:03:00 +0000 (12:03 +0200)]
atmodem: The Icera modem does not support CIND reporting

12 years agoatmodem: Add specific quirk for Icera modems
Marcel Holtmann [Tue, 22 May 2012 10:02:30 +0000 (12:02 +0200)]
atmodem: Add specific quirk for Icera modems

12 years agogdbus: do not check signature twice
Lucas De Marchi [Sun, 20 May 2012 05:07:36 +0000 (02:07 -0300)]
gdbus: do not check signature twice

Message signature is already checked in generic_message(), so there's no
need to check again in the callback.

12 years agogdbus: add Method.NoReply annotation in introspection
Lucas De Marchi [Sun, 20 May 2012 05:07:35 +0000 (02:07 -0300)]
gdbus: add Method.NoReply annotation in introspection

12 years agogdbus: add Deprecated annotation in introspection
Lucas De Marchi [Sun, 20 May 2012 05:07:34 +0000 (02:07 -0300)]
gdbus: add Deprecated annotation in introspection

12 years agogdbus: remove signature and reply from tables
Lucas De Marchi [Sun, 20 May 2012 05:07:33 +0000 (02:07 -0300)]
gdbus: remove signature and reply from tables

12 years agoDo not set signature and reply in GDBus tables
Lucas De Marchi [Sun, 20 May 2012 05:07:32 +0000 (02:07 -0300)]
Do not set signature and reply in GDBus tables

Use GDBUS_* macros, so signature and reply fields are not set in each
method/signal.

12 years agogdbus: loop over args to check message signature
Lucas De Marchi [Sun, 20 May 2012 05:07:31 +0000 (02:07 -0300)]
gdbus: loop over args to check message signature

12 years agogdbus: use GDBusArgInfo to generate introspection
Lucas De Marchi [Sun, 20 May 2012 05:07:30 +0000 (02:07 -0300)]
gdbus: use GDBusArgInfo to generate introspection

By using GDBusArgInfo in methods and signals, the introspection
generation is much simpler and we can add each argument name.

12 years agoConvert GDBus methods to use macro helpers
Lucas De Marchi [Sun, 20 May 2012 05:07:29 +0000 (02:07 -0300)]
Convert GDBus methods to use macro helpers

With these macro helpers we can separate in/out arguments and use their
own vector.

12 years agogdbus: add and use helpers for table declarations
Lucas De Marchi [Sun, 20 May 2012 05:07:28 +0000 (02:07 -0300)]
gdbus: add and use helpers for table declarations

12 years agogdbus: add argument info to methods and signals
Lucas De Marchi [Sun, 20 May 2012 05:07:27 +0000 (02:07 -0300)]
gdbus: add argument info to methods and signals

12 years agoConstify GDBus signal tables
Henrique Dante de Almeida [Sun, 20 May 2012 05:07:26 +0000 (02:07 -0300)]
Constify GDBus signal tables

Constify signal tables with the following command:

    find . -name '*.[ch]' -exec \
             sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \;

12 years agoConstify GDBus method tables
Henrique Dante de Almeida [Sun, 20 May 2012 05:07:25 +0000 (02:07 -0300)]
Constify GDBus method tables

Constify method tables with the following command:

find . -name '*.[ch]' -exec \
             sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;

12 years agogdbus: Constify introspection method table
Marcel Holtmann [Fri, 18 May 2012 02:56:27 +0000 (19:56 -0700)]
gdbus: Constify introspection method table

12 years agogdbus: do not call memset for terminating NUL
Lucas De Marchi [Thu, 17 May 2012 18:19:59 +0000 (15:19 -0300)]
gdbus: do not call memset for terminating NUL

12 years agogdbus: return if method signature is malformed
Lucas De Marchi [Thu, 17 May 2012 18:19:58 +0000 (15:19 -0300)]
gdbus: return if method signature is malformed

12 years agobuild: BlueZ version 4.99 is required.
Marko Saukko [Mon, 14 May 2012 19:52:57 +0000 (22:52 +0300)]
build: BlueZ version 4.99 is required.

BlueZ 4.99 introduced key_size to bt_security struct that is used in
oFono, thus the requirement needs to be higher.

12 years agomailmap: Fix up Michael's name
Marcel Holtmann [Tue, 1 May 2012 10:40:09 +0000 (12:40 +0200)]
mailmap: Fix up Michael's name

12 years agomailmap: Fix up Syam's email address
Marcel Holtmann [Mon, 30 Apr 2012 23:17:30 +0000 (01:17 +0200)]
mailmap: Fix up Syam's email address

12 years agocall-forwarding: Remove unneeded variable
Oleg Zhurakivskyy [Tue, 10 Apr 2012 12:17:29 +0000 (15:17 +0300)]
call-forwarding: Remove unneeded variable

12 years agocall-forwarding: Streamline set_query_cf_callback()
Oleg Zhurakivskyy [Tue, 10 Apr 2012 12:17:28 +0000 (15:17 +0300)]
call-forwarding: Streamline set_query_cf_callback()

12 years agocall-forwarding: Refactor cf_find_unconditional()
Oleg Zhurakivskyy [Tue, 10 Apr 2012 12:17:27 +0000 (15:17 +0300)]
call-forwarding: Refactor cf_find_unconditional()

12 years agocall-forwarding: Streamline cf_find_timeout() logic
Oleg Zhurakivskyy [Tue, 10 Apr 2012 12:17:26 +0000 (15:17 +0300)]
call-forwarding: Streamline cf_find_timeout() logic

12 years agocall-forwarding: Get rid of extra variable
Oleg Zhurakivskyy [Tue, 10 Apr 2012 12:17:24 +0000 (15:17 +0300)]
call-forwarding: Get rid of extra variable

12 years agocall-forwarding: Make cf_cond_find more readable
Denis Kenzior [Mon, 23 Apr 2012 20:31:29 +0000 (15:31 -0500)]
call-forwarding: Make cf_cond_find more readable

12 years agocall-forwarding: Refactor cf_condition_find_with_cls()
Oleg Zhurakivskyy [Tue, 10 Apr 2012 12:17:23 +0000 (15:17 +0300)]
call-forwarding: Refactor cf_condition_find_with_cls()

12 years agocall-forwarding: Refactor cf_condition_compare()
Oleg Zhurakivskyy [Tue, 10 Apr 2012 12:17:22 +0000 (15:17 +0300)]
call-forwarding: Refactor cf_condition_compare()

12 years agotest: Add test script for ReleaseAndAnswer
Denis Kenzior [Mon, 23 Apr 2012 20:18:08 +0000 (15:18 -0500)]
test: Add test script for ReleaseAndAnswer

12 years agoRelease 1.6 1.6
Marcel Holtmann [Fri, 20 Apr 2012 19:12:48 +0000 (21:12 +0200)]
Release 1.6

12 years agodoc: Clarify CallRemoved behavior
Denis Kenzior [Thu, 19 Apr 2012 13:58:20 +0000 (08:58 -0500)]
doc: Clarify CallRemoved behavior

12 years agodoc: Clarify Interfaces property
Denis Kenzior [Thu, 19 Apr 2012 13:50:26 +0000 (08:50 -0500)]
doc: Clarify Interfaces property

12 years agohfp_hf: Fix modifying hash table while iterating
Mikel Astiz [Thu, 19 Apr 2012 06:58:58 +0000 (08:58 +0200)]
hfp_hf: Fix modifying hash table while iterating

Calling ofono_remove_modem() while iterating the hash table is not safe
given that it can modify the table in hfp_remove().

A simple way to reproduce the problem is to pair some Bluetooth phones
and remove the Bluetooth adapter, triggering a GLib-CRITICAL assertion.

This patch just removes the update of the hash table inside
hfp_remove(). This can be safe as long as all calls to
ofono_modem_remove() are accompanied by a hash table update. The only
example of this kind right now is hfp_agent_release().

12 years agoatmodem: Poll SIM state after having entered PIN
Guillaume Zajac [Wed, 18 Apr 2012 12:39:48 +0000 (14:39 +0200)]
atmodem: Poll SIM state after having entered PIN

We encountered the problem of CME ERROR 14: SIM busy on ZTE modems.
ZTE modems don't use SIM notification to check SIM state.
We poll SIM ready state before confirming PIN is entered.

12 years agozte: Update to new sim_state_query API
Guillaume Zajac [Wed, 18 Apr 2012 12:16:09 +0000 (14:16 +0200)]
zte: Update to new sim_state_query API

12 years agospeedup: Update to new sim_state_query API
Guillaume Zajac [Wed, 18 Apr 2012 12:16:09 +0000 (14:16 +0200)]
speedup: Update to new sim_state_query API

12 years agosamsung: Update to new sim_state_query API
Guillaume Zajac [Wed, 18 Apr 2012 12:16:09 +0000 (14:16 +0200)]
samsung: Update to new sim_state_query API

12 years agombm: Update to new sim_state_query API
Guillaume Zajac [Wed, 18 Apr 2012 12:16:09 +0000 (14:16 +0200)]
mbm: Update to new sim_state_query API

12 years agoalcatel: Update to new sim_state_query API
Guillaume Zajac [Wed, 18 Apr 2012 12:16:09 +0000 (14:16 +0200)]
alcatel: Update to new sim_state_query API

12 years agoatutil: Add destroy notify to sim_state_query
Guillaume Zajac [Wed, 18 Apr 2012 12:16:08 +0000 (14:16 +0200)]
atutil: Add destroy notify to sim_state_query

12 years agospeedup: enable online/offline support
Bertrand Aygon [Mon, 16 Apr 2012 13:10:08 +0000 (15:10 +0200)]
speedup: enable online/offline support

Add speedup_set_online.
Add a polling mechanism since most speedup dongles failed in couple of
AT commands following the CFUN=1 when they are offline.
Cleanup online polling in case modem is removed during online process.

12 years agospeedup: Use speedup specific driver for ussd
Nicolas Bertrand [Tue, 17 Apr 2012 12:17:31 +0000 (14:17 +0200)]
speedup: Use speedup specific driver for ussd

12 years agospeedup: No need to parse error
Denis Kenzior [Mon, 16 Apr 2012 18:15:15 +0000 (13:15 -0500)]
speedup: No need to parse error

12 years agospeedup: Remove ussd atom in case we fail to init
Denis Kenzior [Mon, 16 Apr 2012 18:12:18 +0000 (13:12 -0500)]
speedup: Remove ussd atom in case we fail to init

12 years agoatmodem: Remove ussd atom in case we fail to init
Denis Kenzior [Mon, 16 Apr 2012 18:11:37 +0000 (13:11 -0500)]
atmodem: Remove ussd atom in case we fail to init

12 years agoMakefile: Add speedup modem target
Nicolas Bertrand [Mon, 16 Apr 2012 15:10:23 +0000 (17:10 +0200)]
Makefile: Add speedup modem target

12 years agospeedup: Add speedup driver to handle USSD
Nicolas Bertrand [Mon, 16 Apr 2012 15:10:21 +0000 (17:10 +0200)]
speedup: Add speedup driver to handle USSD

12 years agogdbus: Remove unneeded NEED_DBUS_WATCH_GET_UNIX_FD check
Marcel Holtmann [Mon, 16 Apr 2012 15:57:08 +0000 (17:57 +0200)]
gdbus: Remove unneeded NEED_DBUS_WATCH_GET_UNIX_FD check

12 years agobuild: Require D-Bus 1.4 or later
Marcel Holtmann [Mon, 16 Apr 2012 15:56:45 +0000 (17:56 +0200)]
build: Require D-Bus 1.4 or later

12 years agomodem: Add missing empty line
Marcel Holtmann [Thu, 12 Apr 2012 10:09:32 +0000 (12:09 +0200)]
modem: Add missing empty line

12 years agoAUTHORS: Mention Michael's contributions
Denis Kenzior [Thu, 12 Apr 2012 04:55:29 +0000 (23:55 -0500)]
AUTHORS: Mention Michael's contributions

12 years agohfpmodem: use full CLCC handling in dialing case
Michael Brudevold [Wed, 11 Apr 2012 19:36:38 +0000 (14:36 -0500)]
hfpmodem: use full CLCC handling in dialing case

A call that moves from the dialing to active state before the +CLCC response
will not properly be added as a voicecall. This is because the dialing callback
was using simplified handling and only looked for calls in the dialing or
alerting state.

AT sequence that exhibited the failure (AG device was an iPhone accessing
visual voicemail):

> +CIND: ("service",(0-1)),("call",(0-1)),("callsetup",(0-3)),
("battchg",(0-5)),("signal",(0-5)),("roam",(0-1)),("callheld",(0-2))
...
> +CIEV: 3,2
< AT+CLCC
> +CIEV: 2,1
> +CIEV: 3,0
> +CLCC: 1,0,0,0,0,"**21153**",129,"Voicemail"

12 years agosms: Add ZTE quirk for CDS notifications
Philippe Nunes [Fri, 6 Apr 2012 09:47:32 +0000 (11:47 +0200)]
sms: Add ZTE quirk for CDS notifications

12 years agoAdd udev rules for SpeedUp U3501
Bertrand Aygon [Fri, 6 Apr 2012 13:30:32 +0000 (15:30 +0200)]
Add udev rules for SpeedUp U3501

12 years agoicera: Add skeleton for Icera modem plugin
Marcel Holtmann [Fri, 6 Apr 2012 14:28:35 +0000 (16:28 +0200)]
icera: Add skeleton for Icera modem plugin

12 years agoudev: Add detection support for Icera based devices
Marcel Holtmann [Fri, 6 Apr 2012 14:19:36 +0000 (16:19 +0200)]
udev: Add detection support for Icera based devices

12 years agogdbus: Use destroy callback for service watch
Anderson Lizardo [Tue, 3 Apr 2012 16:14:58 +0000 (12:14 -0400)]
gdbus: Use destroy callback for service watch

Even though service watches accepted a "destroy" callback, they were
being ignored. This fix properly pass them along so they are called when
the watch is removed.

12 years agogdbus: Fix white space coding style issue
Syam Sidhardhan [Sun, 26 Jun 2011 21:56:04 +0000 (03:26 +0530)]
gdbus: Fix white space coding style issue

- corrected the space before '{'

12 years agoupdate Gustavo's email address
Gustavo Padovan [Wed, 4 Apr 2012 03:53:51 +0000 (00:53 -0300)]
update Gustavo's email address

The old one is not valid anymore

12 years agozte: Add support for radio settings
Bertrand Aygon [Fri, 23 Mar 2012 11:01:10 +0000 (12:01 +0100)]
zte: Add support for radio settings

12 years agonwmodem: Remove atom if driver fails to init
Denis Kenzior [Mon, 26 Mar 2012 21:50:59 +0000 (16:50 -0500)]
nwmodem: Remove atom if driver fails to init

12 years agoifxmodem: Remove atom if driver fails to init
Denis Kenzior [Mon, 26 Mar 2012 21:50:46 +0000 (16:50 -0500)]
ifxmodem: Remove atom if driver fails to init

12 years agohsomodem: Remove atom if driver fails to init
Denis Kenzior [Mon, 26 Mar 2012 21:50:36 +0000 (16:50 -0500)]
hsomodem: Remove atom if driver fails to init

12 years agoztemodem: Remove atom if driver fails to init
Denis Kenzior [Mon, 26 Mar 2012 21:50:11 +0000 (16:50 -0500)]
ztemodem: Remove atom if driver fails to init

12 years agoztemodem: Fix compile error
Denis Kenzior [Mon, 26 Mar 2012 21:49:38 +0000 (16:49 -0500)]
ztemodem: Fix compile error

drivers/ztemodem/radio-settings.c:129: error: ‘value’ may be used
uninitialized in this function

12 years agoztemodem: Add radio settings support
Bertrand Aygon [Fri, 23 Mar 2012 11:01:09 +0000 (12:01 +0100)]
ztemodem: Add radio settings support

12 years agoAdd ZTE modem driver
Bertrand Aygon [Fri, 23 Mar 2012 11:01:08 +0000 (12:01 +0100)]
Add ZTE modem driver

12 years agohuaweimodem: Fix AT^DDSETEX=2 timing for voice calls
Jarkko Lehtoranta [Sat, 24 Mar 2012 14:03:44 +0000 (16:03 +0200)]
huaweimodem: Fix AT^DDSETEX=2 timing for voice calls

Voice output serial port is enabled on some Huawei models (e.g. E169)
without problems, but for example on E173u-2 it is never enabled
during an incoming call. There might also be other Huawei models
having the same issue.

I traced the issue down to "^DDSETEX" AT command, which is used
to notify the device to start streaming audio. It seems that Ofono
sends this command too early on incoming calls. The command should
always be sent *after* the dial "D" or answer "A" command. The patch
fixes this behavior and afterwards voice will also work on E173u-2.

12 years agosim: Don't use sprintf unnecessarily
Denis Kenzior [Fri, 23 Mar 2012 13:28:37 +0000 (08:28 -0500)]
sim: Don't use sprintf unnecessarily

Using sprintf for a single quote is quite wasteful

12 years agosim: Fix up various coding style violations
Denis Kenzior [Fri, 23 Mar 2012 13:12:03 +0000 (08:12 -0500)]
sim: Fix up various coding style violations

12 years agosim: Use quoted string with AT+CRSM data parameter
Nicolas Bertrand [Thu, 22 Mar 2012 17:28:10 +0000 (18:28 +0100)]
sim: Use quoted string with AT+CRSM data parameter

Fix issue with some modems preventing to update elementary files
(speedup, ZTE, huawei, MBM)

12 years agoswmodem: Add support for IPv6 and IPv4v6 contexts
Marcel Holtmann [Thu, 22 Mar 2012 05:09:03 +0000 (22:09 -0700)]
swmodem: Add support for IPv6 and IPv4v6 contexts

12 years agoudev: Only detect Sierra Wireless devices with DirectIP
Marcel Holtmann [Thu, 22 Mar 2012 04:17:33 +0000 (21:17 -0700)]
udev: Only detect Sierra Wireless devices with DirectIP

12 years agosierra: Add support for DirectIP connections
Marcel Holtmann [Thu, 22 Mar 2012 04:13:52 +0000 (21:13 -0700)]
sierra: Add support for DirectIP connections

12 years agoswmodem: Add Sierra Wireless DirectIP support
Marcel Holtmann [Thu, 22 Mar 2012 04:13:13 +0000 (21:13 -0700)]
swmodem: Add Sierra Wireless DirectIP support

12 years agoswmodem: Add Sierra Wireless modem driver
Marcel Holtmann [Thu, 22 Mar 2012 04:10:30 +0000 (21:10 -0700)]
swmodem: Add Sierra Wireless modem driver

12 years agobuild: Require glib 2.28
Denis Kenzior [Wed, 21 Mar 2012 11:08:03 +0000 (06:08 -0500)]
build: Require glib 2.28

12 years agovoicecall: Force callheld update after calls swap
Frédéric Danis [Wed, 14 Mar 2012 16:00:53 +0000 (17:00 +0100)]
voicecall: Force callheld update after calls swap

In HFP spec, a callheld indicator update should be sent after swapping
calls, even if it stays to 1 (AG has both active and held calls).

12 years agoemulator: Force indicator event implementation
Frédéric Danis [Wed, 14 Mar 2012 16:00:52 +0000 (17:00 +0100)]
emulator: Force indicator event implementation

12 years agoisimodem: Remove includes of <glib/gtypes.h>
Marcel Holtmann [Mon, 19 Mar 2012 23:12:36 +0000 (16:12 -0700)]
isimodem: Remove includes of <glib/gtypes.h>

12 years agogisi: Remove includes of <glib/gtypes.h>
Marcel Holtmann [Mon, 19 Mar 2012 23:12:12 +0000 (16:12 -0700)]
gisi: Remove includes of <glib/gtypes.h>

12 years agocall-forwarding: Inline get_query_next_cf_cond()
Oleg Zhurakivskyy [Tue, 13 Mar 2012 13:46:23 +0000 (15:46 +0200)]
call-forwarding: Inline get_query_next_cf_cond()

12 years agocall-forwarding: Remove cf_list_clear()
Oleg Zhurakivskyy [Tue, 13 Mar 2012 13:46:22 +0000 (15:46 +0200)]
call-forwarding: Remove cf_list_clear()

Use g_slist_free_full() instead.

12 years agovoicecall: Improve transitions check
Frédéric Danis [Fri, 9 Mar 2012 15:26:52 +0000 (16:26 +0100)]
voicecall: Improve transitions check

Indicators should not be updated if:
- multiple separate calls are active at same time
- a conf call and a call are active at same time
- multiple separate calls are held at same time
- a conf call and a call are held at same time
- a conf call has call in active and held state

12 years agosim900: Add ussd and voice call support
Renat Zaripov [Sun, 11 Mar 2012 06:08:38 +0000 (10:08 +0400)]
sim900: Add ussd and voice call support

12 years agovoicecall: Don't set indicators during transitions
Denis Kenzior [Tue, 6 Mar 2012 15:24:54 +0000 (09:24 -0600)]
voicecall: Don't set indicators during transitions

12 years agoemulator: fix notify_ring
Frédéric Danis [Thu, 8 Mar 2012 15:02:30 +0000 (16:02 +0100)]
emulator: fix notify_ring

notify_ring should not use information from waiting call

12 years agovoicecall: Fix strange GTA04 modem CLCC behavior
Denis Kenzior [Tue, 6 Mar 2012 16:12:31 +0000 (10:12 -0600)]
voicecall: Fix strange GTA04 modem CLCC behavior

12 years agoRelease 1.5 1.5
Marcel Holtmann [Fri, 2 Mar 2012 01:37:06 +0000 (17:37 -0800)]
Release 1.5

12 years agosim900: Use SIMCOM quirk for SMS atom
Renat Zaripov [Mon, 27 Feb 2012 07:19:43 +0000 (11:19 +0400)]
sim900: Use SIMCOM quirk for SMS atom

12 years agosms: Disable sending AT+CNMA with SIMCOM quirk
Renat Zaripov [Mon, 27 Feb 2012 07:19:44 +0000 (11:19 +0400)]
sms: Disable sending AT+CNMA with SIMCOM quirk

SIMCOM SIM900 modem module not support AT+CNMA command

12 years agoatutil: Ignore invalid CLCC results
Denis Kenzior [Fri, 24 Feb 2012 05:14:08 +0000 (23:14 -0600)]
atutil: Ignore invalid CLCC results

Some phones report CLCC calls with out-of-range info.  E.g. call index
being 0 (it is 1 based according to 27.007) and call states being
reported as '6' (valid call states are 0-5.)

12 years agohso: Don't access freed data, in hso_set_online
Neil Jerram [Mon, 27 Feb 2012 20:04:43 +0000 (20:04 +0000)]
hso: Don't access freed data, in hso_set_online

12 years agocall-forwarding: Fix various style issues
Denis Kenzior [Wed, 22 Feb 2012 13:17:27 +0000 (07:17 -0600)]
call-forwarding: Fix various style issues

12 years agocall-forwarding: Minor code refactoring
Oleg Zhurakivskyy [Mon, 6 Feb 2012 12:33:59 +0000 (14:33 +0200)]
call-forwarding: Minor code refactoring

12 years agocall-forwarding: Emit signals when cfu is toggled
Oleg Zhurakivskyy [Mon, 6 Feb 2012 12:33:58 +0000 (14:33 +0200)]
call-forwarding: Emit signals when cfu is toggled

Emit signals to mask/unmask conditional cfs on cfu
activation/deactivation.

12 years agocall-forwarding: Update conditional reporting logic
Oleg Zhurakivskyy [Mon, 6 Feb 2012 12:33:57 +0000 (14:33 +0200)]
call-forwarding: Update conditional reporting logic

Don't report conditional cfs when cfu is active

12 years agocall-forwarding: Update conditional setting logic
Oleg Zhurakivskyy [Mon, 6 Feb 2012 12:33:56 +0000 (14:33 +0200)]
call-forwarding: Update conditional setting logic

Due to how the quiescent behavior of conditional call forwarding rules
when CFU is active, do not allow the user to try and set conditional
rules.  This will fail at the network level anyway.