Denis Kenzior [Mon, 27 Jan 2014 17:56:44 +0000 (11:56 -0600)]
hfp: Notify core of HF indicators supported by AG
This information was obtained from SLC negotiation
Denis Kenzior [Mon, 27 Jan 2014 17:54:21 +0000 (11:54 -0600)]
hfp: Track supported / active indicators
This information is obtained during SLC establishment
Denis Kenzior [Mon, 27 Jan 2014 17:53:45 +0000 (11:53 -0600)]
handsfree: Implement new HF indicators API
Denis Kenzior [Mon, 27 Jan 2014 17:52:21 +0000 (11:52 -0600)]
include: Add HF Indicators related API
Denis Kenzior [Wed, 22 Jan 2014 16:16:01 +0000 (10:16 -0600)]
hfp: Add implementation of +BIEV
Denis Kenzior [Wed, 22 Jan 2014 16:10:44 +0000 (10:10 -0600)]
emulator: Refactor data types
Denis Kenzior [Tue, 21 Jan 2014 03:43:37 +0000 (21:43 -0600)]
hfp: Add HF Indicators BRSF feature for 1.7
If HFP 1.7 client is used, enable the right BRSF feature
Denis Kenzior [Mon, 20 Jan 2014 04:06:21 +0000 (22:06 -0600)]
handsfree: Skeleton implementation of DDR
Distracted Driving Reduction or Enhanced Safety is implemented using HF
indicator 0x0001
Denis Kenzior [Mon, 20 Jan 2014 04:06:03 +0000 (22:06 -0600)]
handsfree: Add new driver method for HF indicators
Denis Kenzior [Mon, 20 Jan 2014 03:39:26 +0000 (21:39 -0600)]
hfp: Add initial SLC negotiation for HFP 1.7
Denis Kenzior [Mon, 20 Jan 2014 04:05:49 +0000 (22:05 -0600)]
doc: Add Distracted Driving Reduction to Handsfree
Denis Kenzior [Mon, 20 Jan 2014 04:05:15 +0000 (22:05 -0600)]
handsfree: Implement new Features property value
Denis Kenzior [Mon, 20 Jan 2014 04:04:53 +0000 (22:04 -0600)]
doc: Add 'hf-indicators' feature to Handsfree API
Denis Kenzior [Tue, 21 Jan 2014 03:42:58 +0000 (21:42 -0600)]
emulator: Enable HF Indicator feature
Denis Kenzior [Tue, 21 Jan 2014 03:41:23 +0000 (21:41 -0600)]
emulator: Extend BRSF bitmap
The current check of 8 bits is not enough with HFP 1.7
Denis Kenzior [Fri, 17 Jan 2014 20:38:56 +0000 (14:38 -0600)]
emulator: Add +BIEV implementation
Denis Kenzior [Fri, 17 Jan 2014 20:38:39 +0000 (14:38 -0600)]
emulator: Add +BIND implementation
Denis Kenzior [Tue, 21 Jan 2014 03:42:13 +0000 (21:42 -0600)]
emulator: Fix CHLD=? not treated as part of SLC
Denis Kenzior [Fri, 17 Jan 2014 20:37:41 +0000 (14:37 -0600)]
emulator: Improve SLC establishment logic
Denis Kenzior [Fri, 17 Jan 2014 20:36:28 +0000 (14:36 -0600)]
hfp: Add enum for known HF Indicators
Denis Kenzior [Fri, 17 Jan 2014 05:04:30 +0000 (23:04 -0600)]
hfp: Update for new HFP 1.7 values
Denis Kenzior [Mon, 20 Jan 2014 04:03:53 +0000 (22:03 -0600)]
doc: Fixup Handsfree API
Marcel Holtmann [Sat, 20 Sep 2014 14:13:45 +0000 (16:13 +0200)]
handsfree-audio: Fix broken coding style in switch statement
Alban Crequy [Tue, 15 Jul 2014 10:29:41 +0000 (11:29 +0100)]
gdbus: Fix match rule for NameOwnerChanged
When subscribing to the D-Bus signal NameOwnerChanged from the bus driver,
specify the object path and the sender in the match rule. Otherwise, random
connections on the bus could impersonate the bus driver.
Luiz Augusto von Dentz [Tue, 12 Aug 2014 12:31:24 +0000 (15:31 +0300)]
gdbus: Fix crash when watch is toggled or disconnected
This partially reverts
510b32b7156625b9df737c916b7a7a5c6fb285b9 since it
still necessary to take a reference before calling dbus_watch_handle
since internally it can call watch_info_free as in the following trace:
Invalid read of size 8
at 0x121085: watch_func (mainloop.c:105)
by 0x4C72694: g_main_context_dispatch (gmain.c:2539)
by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146)
by 0x4C72DC1: g_main_loop_run (gmain.c:3340)
by 0x120541: main (main.c:551)
Address 0x5bbcd90 is 16 bytes inside a block of size 24 free'd
at 0x4A079AE: free (vg_replace_malloc.c:427)
by 0x4C7837E: g_free (gmem.c:252)
by 0x4F708BF: dbus_watch_set_data (dbus-watch.c:614)
by 0x4F70938: _dbus_watch_unref (dbus-watch.c:132)
by 0x4F6E9A7: _dbus_transport_handle_watch (dbus-transport.c:884)
by 0x4F59AFB: _dbus_connection_handle_watch (dbus-connection.c:1497)
by 0x4F70AF9: dbus_watch_handle (dbus-watch.c:683)
by 0x121084: watch_func (mainloop.c:103)
by 0x4C72694: g_main_context_dispatch (gmain.c:2539)
by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146)
by 0x4C72DC1: g_main_loop_run (gmain.c:3340)
by 0x120541: main (main.c:551)
Luiz Augusto von Dentz [Tue, 12 Aug 2014 12:11:29 +0000 (15:11 +0300)]
gdbus: Fix crash when calling g_dbus_add_service_watch
If g_dbus_add_service_watch is called for service which bus name is
already known the following crash can happen:
invalid read of size 1
at 0x4C2A2F2: strlen (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4E97722: g_strdup (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x405B0C: update_name_cache (watch.c:435)
by 0x405C37: update_service (watch.c:593)
by 0x4E7A2A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4038EA: client_ready (test-gdbus-client.c:1014)
by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x403614: main (test-gdbus-client.c:1058)
Address 0x5dbe5d0 is 0 bytes inside a block of size 7 free'd
at 0x4C28577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4E7FF7E: g_free (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x405B04: update_name_cache (watch.c:434)
by 0x405C37: update_service (watch.c:593)
by 0x4E7A2A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4038EA: client_ready (test-gdbus-client.c:1014)
by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x403614: main (test-gdbus-client.c:1058)
Luiz Augusto von Dentz [Mon, 11 Aug 2014 14:58:37 +0000 (17:58 +0300)]
Revert "gdbus: Don't include just added interfaces in GetManagedObjects"
This actually creates a problem since the code now does flush any pending
message on the queue any signal will be send right away before the
actual reply to GetManagedObjects which will not contain those interfaces.
Andrei Emeltchenko [Mon, 11 Aug 2014 07:50:44 +0000 (10:50 +0300)]
gdbus: Fix use after free
Refactor filter_data_remove_callback so that we do not iterate over
freed pointer.
Claudio Takahasi [Wed, 2 Apr 2014 18:30:21 +0000 (15:30 -0300)]
gdbus: Avoid reporting GDBusClient disconnect twice
No matter if disconnection was reported previously, g_dbus_client_unref()
was always calling service disconnect callback. This patch fix the
following scenario:
1) service disconnects from the bus
2) disconnect callback gets called
3) client calls g_dbus_client_unref(), disconnect callback is called
again.
Denis Kenzior [Fri, 1 Aug 2014 14:29:40 +0000 (09:29 -0500)]
build: Avoid warnings about _FORTIFY_SOURCE
Gentoo (and others) define _FORTIFY_SOURCE=2 by default. We redefine
it, resulting in an error / configure failure.
Denis Kenzior [Tue, 8 Jul 2014 13:58:48 +0000 (08:58 -0500)]
ublox: Minor style cleanup
Denis Kenzior [Tue, 8 Jul 2014 13:56:55 +0000 (08:56 -0500)]
ublox: Remove unneeded VENDOR flags
devinfo and netreg atoms don't use vendor specific behavior
Philip Paeps [Thu, 3 Jul 2014 10:32:04 +0000 (12:32 +0200)]
plugins: new driver for u-blox SARA-U270 modems
This driver may also work (perhaps with more or less trivial changes)
with other u-blox modems (SARA, LISA, LEON) but this hasn't been tested.
Philip Paeps [Thu, 3 Jul 2014 10:32:06 +0000 (12:32 +0200)]
atmodem: set the auth method for u-blox modems
Philip Paeps [Thu, 3 Jul 2014 10:32:05 +0000 (12:32 +0200)]
sim: query u-blox PIN retries with AT+UPINCNT
Philip Paeps [Thu, 3 Jul 2014 10:32:03 +0000 (12:32 +0200)]
udevng: add detection logic for u-blox modems
Denis Kenzior [Tue, 8 Jul 2014 13:44:21 +0000 (08:44 -0500)]
quectel: Minor style cleanup
Denis Kenzior [Tue, 8 Jul 2014 13:43:01 +0000 (08:43 -0500)]
quectel: Remove unneeded VENDOR flags
Only the sim atom has QUECTEL specific code
Philip Paeps [Mon, 7 Jul 2014 09:54:47 +0000 (11:54 +0200)]
plugins: add a new driver for Quectel UC15 modems
Philip Paeps [Thu, 26 Jun 2014 18:28:17 +0000 (20:28 +0200)]
gprs: add support for u-blox +UREG URCs
Philip Paeps [Thu, 26 Jun 2014 18:28:13 +0000 (20:28 +0200)]
atmodem: add vendor u-blox
Denis Kenzior [Mon, 30 Jun 2014 18:44:40 +0000 (13:44 -0500)]
atmodem: Minor style fixups
Philip Paeps [Thu, 26 Jun 2014 17:08:14 +0000 (19:08 +0200)]
sim: query Quectel UC15 PIN retries with AT+QPINC?
Philip Paeps [Thu, 26 Jun 2014 17:08:12 +0000 (19:08 +0200)]
udevng: add detection logic for Quectel modems
Philip Paeps [Thu, 26 Jun 2014 17:08:11 +0000 (19:08 +0200)]
atmodem: add vendor Quectel
Sergio Checa Blanco [Fri, 27 Jun 2014 07:56:07 +0000 (09:56 +0200)]
hfpmodem: Fix crash with more than two calls
A periodic CLCC polling is started when there is an ongoing multiparty
call and a new call appears in the system. A simple way to reproduce
the crashing scenario is:
1. Place a call.
2. Place a second call.
3. Create a multiparty call with both calls.
4. Place a third call (incoming or outgoing does not matter).
5. Disconnect HFP from the modem.
Within the function ciev_callheld_notify, the AT+CLCC command is also
invoked, thus a new cyclic CLCC polling is started, and it overwrites
the timer resource identifier stored in voicecall_data.clcc_source.
This means that there are several timers doing the CLCC polling, but
only one of those is under control, i.e. it can be removed through its
source identifier, hence a timer source leak.
This has a fatal consequence when the HFP modem is disconnected. The
function hfp_voicecall_remove stops the timer that is under control
before freeing the voicecall_data struct. However there are other timers
that are still active and will execute its handler poll_clcc afterwards.
Inside poll_clcc the driver_data is accessed, which is already NULL.
A solution for this is to avoid starting a CLCC polling if there is
already one active, i.e. clcc_source is not 0. By doing this the
uncontrolled timers will not cycle forever.
Marcel Holtmann [Sun, 29 Jun 2014 20:20:08 +0000 (22:20 +0200)]
Release 1.15
Philip Paeps [Tue, 24 Jun 2014 09:57:06 +0000 (11:57 +0200)]
gprs: provision the authentication method
Philip Paeps [Tue, 24 Jun 2014 09:57:05 +0000 (11:57 +0200)]
mbpi: add support for provisioning the auth method
Use the authentication method from the mobile-broadband-provider-info
database if it is specified and supported (we support CHAP and PAP).
Default to CHAP if the database does not specify a method (i.e.: the
previous behaviour).
Philip Paeps [Tue, 24 Jun 2014 09:57:04 +0000 (11:57 +0200)]
include: add auth method to the provisioning API
Denis Kenzior [Sat, 21 Jun 2014 17:05:43 +0000 (12:05 -0500)]
AUTHORS: Mention Philip's contributions
Philip Paeps [Thu, 19 Jun 2014 10:07:07 +0000 (12:07 +0200)]
atmodem: set the PPP authentication method to use
Denis Kenzior [Sat, 21 Jun 2014 17:02:05 +0000 (12:02 -0500)]
gprs: Make the code a bit easier to read
Philip Paeps [Thu, 19 Jun 2014 10:07:08 +0000 (12:07 +0200)]
gprs: make PPP authentication method configurable
Add a new "AuthenticationMethod" property to select between "pap"
and "chap" PPP authentication, defaulting to "chap" (i.e.: previous
behaviour).
Philip Paeps [Thu, 19 Jun 2014 10:07:06 +0000 (12:07 +0200)]
include: add auth method to the gprs context API
Philip Paeps [Thu, 19 Jun 2014 10:07:09 +0000 (12:07 +0200)]
doc: describe the AuthenticationMethod property
Denis Kenzior [Sat, 21 Jun 2014 16:54:26 +0000 (11:54 -0500)]
gatchat: Fix up minor coding style issues
Philip Paeps [Thu, 19 Jun 2014 10:07:05 +0000 (12:07 +0200)]
gatchat: implement PAP authentication
Make the authentication method configurable, CHAP or PAP, defaulting to
CHAP (i.e.: previous behaviour).
Implementation details:
o If PAP is configured, we NAK the CHAP authentication protocol option
in LCP configuration requests and suggest PAP instead. This works
around the amusing requirement of 3GPP TS 29.061 that modems must
send a forced positive acknowledgement of the authentication method
tried (i.e.: the modem will successfully accept any CHAP handshake,
but if the network only supports PAP, the modem will hang up
when it tries and fails to activate the PDP context)
o The PAP Authenticate-Request is resent a hard-coded three times at
ten-second intervals. This may be a bit too persistent. Chances
are if it doesn't work the first time, it'll never work, but the
RFC insists that we MUST retry.
Denis Kenzior [Sat, 21 Jun 2014 16:46:28 +0000 (11:46 -0500)]
AUTHORS: Mention Sergio's contributions
Sergio Checa Blanco [Fri, 20 Jun 2014 08:03:51 +0000 (10:03 +0200)]
hfpmodem: Split AT+VTS command into multiple +VTS
According to the standard "3GPP 27.007 v6.8.0" Appendix C.2.11,
when sending multiple DTMF characters, these must go in individual
+VTS commands for each tone. This adopts the AT modem approach.
Before: AT+VTS=1234\r
After: AT+VTS=1;+VTS=2;+VTS=3;+VTS=4\r
Alfonso Sanchez-Beato [Tue, 10 Jun 2014 08:27:17 +0000 (10:27 +0200)]
test: Adapt data test scripts to multi-modem
Some tests scripts were not ready to handle situations with more than
one modem present. This change fixes the data context scripts.
Alfonso Sanchez-Beato [Tue, 10 Jun 2014 08:27:16 +0000 (10:27 +0200)]
test: Adapt voice call test scripts to multi-modem
Some tests scripts were not ready to handle situations with more than
one modem present. This change fixes the scripts that handle voice
calls.
Denis Kenzior [Fri, 30 May 2014 17:25:23 +0000 (12:25 -0500)]
hfp: Fix case where RING never arrives
Denis Kenzior [Wed, 21 May 2014 17:08:37 +0000 (12:08 -0500)]
hfp: Use proper prefix
Otherwise the BCS command can consume unsolicited notifications.
ofonod[3270]: < \r\n+BCS: 2\r\n
ofonod[3270]: > AT+BCS=2\r
ofonod[3270]: < \r\n+CIEV: 1,1\r\n
ofonod[3270]: < \r\n+CIEV: 2,0\r\n
ofonod[3270]: < \r\nOK\r\n
Andrew Earl [Tue, 22 Apr 2014 15:22:40 +0000 (16:22 +0100)]
handsfree: correct crash on connect of hfp
Denis Kenzior [Thu, 10 Apr 2014 15:04:36 +0000 (10:04 -0500)]
handsfree: Rename driver function
To be more consistent with others in the same file
Denis Kenzior [Thu, 10 Apr 2014 15:04:12 +0000 (10:04 -0500)]
handsfree: Simplify logic
Andrew Earl [Tue, 8 Apr 2014 08:21:47 +0000 (09:21 +0100)]
hfp: Add CNUM query to handsfree interface for subscriber number
Denis Kenzior [Thu, 10 Apr 2014 14:40:57 +0000 (09:40 -0500)]
handsfree: Rename variable
Denis Kenzior [Thu, 10 Apr 2014 14:36:11 +0000 (09:36 -0500)]
handsfree: Reflow logic
Denis Kenzior [Thu, 10 Apr 2014 14:33:25 +0000 (09:33 -0500)]
handsfree: Remove function
No need for one line functions that are only used once
Denis Kenzior [Thu, 10 Apr 2014 14:31:58 +0000 (09:31 -0500)]
handsfree: Rename function
No need for the ofono_ prefix here
Denis Kenzior [Thu, 10 Apr 2014 14:29:32 +0000 (09:29 -0500)]
handsfree: Remove unneeded variable
Denis Kenzior [Thu, 10 Apr 2014 14:29:11 +0000 (09:29 -0500)]
handsfree: Remove unneeded variable i
Denis Kenzior [Thu, 10 Apr 2014 14:25:30 +0000 (09:25 -0500)]
handsfree: style fixes for previous commit
Andrew Earl [Tue, 8 Apr 2014 08:21:46 +0000 (09:21 +0100)]
hfp: Add subscriber number to handsfree properties
Andrew Earl [Tue, 8 Apr 2014 08:21:45 +0000 (09:21 +0100)]
include: Add subscriber number to handsfree API
Andrew Earl [Tue, 8 Apr 2014 08:21:44 +0000 (09:21 +0100)]
doc: Add subscriber number to handsfree-api
Denis Kenzior [Thu, 27 Mar 2014 14:51:26 +0000 (09:51 -0500)]
AUTHORS: Mention Jussi's contributions
Denis Kenzior [Thu, 27 Mar 2014 14:50:56 +0000 (09:50 -0500)]
phonesim: Fixup whitespace
Jussi Pakkanen [Thu, 27 Mar 2014 13:08:56 +0000 (15:08 +0200)]
phonesim: Add conf file override
OFONO_PHONESIM_CONFIG allows the configuration file location to be
overriden from the default $CONFIGDIR/phonesim.conf (typically /etc)
Claudio Takahasi [Fri, 21 Mar 2014 19:16:36 +0000 (16:16 -0300)]
gdbus: Add g_dbus_proxy_set_property_array
This patch adds a new gdbus utility function to allow setting a property
of fixed, and non-fixed values array.
Denis Kenzior [Thu, 20 Mar 2014 17:55:20 +0000 (12:55 -0500)]
he910: Fix unused variable warning
plugins/he910.c: In function ‘qss_query_cb’:
plugins/he910.c:174:21: error: unused variable ‘data’
[-Werror=unused-variable]
Denis Kenzior [Wed, 5 Mar 2014 18:26:04 +0000 (12:26 -0600)]
he910: Switch to permissive parser
Seems the CCFC implementation on Telit firmware is not v.250 compliant:
ofonod[445]: Aux: > AT+CCFC=0,2\r
ofonod[445]: Aux: < \r\n\r\n+CCFC:0,7\r\n\r\nOK\r\n
Denis Kenzior [Wed, 5 Mar 2014 18:48:21 +0000 (12:48 -0600)]
he910: Fixup SIM detection
In certain cases the #QSS notification is never sent, or sent too early.
Make sure that we enable #QSS notification only after the modem has been
set as powered. Also make sure that we explicitly query #QSS in case we
missed the earlier #QSS notification.
Denis Kenzior [Wed, 19 Mar 2014 15:24:57 +0000 (10:24 -0500)]
hfp: Use enum from hfp.h
Denis Kenzior [Wed, 19 Mar 2014 15:20:28 +0000 (10:20 -0500)]
hfp: Fixup variable names
Krzysztof Wilk [Mon, 17 Mar 2014 15:47:29 +0000 (16:47 +0100)]
hfp: Add CHLD features to drver data
Denis Kenzior [Wed, 19 Mar 2014 15:19:35 +0000 (10:19 -0500)]
handsfree: Fixup variable names
Krzysztof Wilk [Mon, 17 Mar 2014 15:47:30 +0000 (16:47 +0100)]
hfp: extend Features to three way calling and CHLD
Krzysztof Wilk [Mon, 17 Mar 2014 15:47:28 +0000 (16:47 +0100)]
include: Declaration function to set CHLD features
Krzysztof Wilk [Mon, 17 Mar 2014 15:47:27 +0000 (16:47 +0100)]
hfp: Define hfp_ag_chld_feature
Krzysztof Wilk [Mon, 17 Mar 2014 15:47:26 +0000 (16:47 +0100)]
doc: Extend Features property
Denis Kenzior [Fri, 14 Mar 2014 17:24:54 +0000 (12:24 -0500)]
AUTHORS: Mention Alfonso's contributions
Alfonso Sanchez-Beato [Fri, 14 Mar 2014 16:23:44 +0000 (17:23 +0100)]
unit: Fix test to use valid EF_PNN
test-simutil was not using EF_PNN files with a valid format.
Alfonso Sanchez-Beato [Fri, 14 Mar 2014 16:23:43 +0000 (17:23 +0100)]
simutil: Fix EF_PNN access
EF_PNN was not being read properly (see TS 24.008, section 10.5.3.5a,
for network names format), which affected the displayed PLMN name for
some MVNOs. Some modems already read the file and return the right
string: these do not show the problem.
Denis Kenzior [Fri, 14 Mar 2014 15:32:32 +0000 (10:32 -0500)]
stktest: Remove some unneeded output
Denis Kenzior [Fri, 14 Mar 2014 15:32:06 +0000 (10:32 -0500)]
test: Make sure test-stk-menu works with python3
Denis Kenzior [Wed, 12 Mar 2014 00:34:45 +0000 (19:34 -0500)]
AUTHORS: Mention Martin's contributions
Martin Pitt [Tue, 11 Mar 2014 16:39:22 +0000 (17:39 +0100)]
test: Convert to Python 3
Change raw_input() to input() and unicode to str. This is *not*
compatible with Python 2. Update the hashbangs to run with Python 3.