platform/upstream/ofono.git
8 years agopackaging: Bump to 1.17 accepted/tizen_3.0_common accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable sandbox/pcoval/latest tizen tizen_3.0.m2 accepted/tizen/3.0/common/20161114.111355 accepted/tizen/common/20160208.162656 accepted/tizen/ivi/20160218.025158 accepted/tizen/mobile/20160125.011623 accepted/tizen/tv/20160125.011636 accepted/tizen/unified/20170313.062521 accepted/tizen/wearable/20160125.011641 submit/tizen/20160122.105647 submit/tizen_3.0_common/20161104.104000 submit/tizen_common/20160125.110904 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000006 submit/tizen_unified/20170313.062154
Philippe Coval [Tue, 12 Jan 2016 10:51:14 +0000 (11:51 +0100)]
packaging: Bump to 1.17

Change-Id: If60f26467c1d59a3ecaebec95ff9fa8b1cdf3732
Bug-Tizen: TC-2538
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
8 years agochanges: drop this change file
Philippe Coval [Tue, 12 Jan 2016 14:56:54 +0000 (15:56 +0100)]
changes: drop this change file

There is no real gain to use it, many other projects don't

Change-Id: I6978d2f682dc487712c1b0034d84c2e9b1c22a35
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
8 years agochange: fix date
Philippe Coval [Tue, 12 Jan 2016 14:56:39 +0000 (15:56 +0100)]
change: fix date

Change-Id: Ie5382994562c09e1b78520f9a13c8d47dd12a3a6
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
8 years agopackaging: Update to version 1.16
Leon Anavi [Thu, 26 Nov 2015 10:07:58 +0000 (12:07 +0200)]
packaging: Update to version 1.16

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Change-Id: I2d38ed40dedefff9435921fd661c52a7172db063
Bug-Tizen: TC-2538
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
8 years agopackaging: gbs: Use tags from upstream
Philippe Coval [Tue, 12 Jan 2016 09:58:41 +0000 (10:58 +0100)]
packaging: gbs: Use tags from upstream

Change-Id: I8683fa093eeac6d2ad7395e8ee55c36289797625
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
8 years agoChange SmackExecLabel to SmackProcessLabel
Maciej Wereski [Fri, 24 Apr 2015 11:41:35 +0000 (13:41 +0200)]
Change SmackExecLabel to SmackProcessLabel

Since systemd v219 Tizen-specific SmackExecLabel option was dropped in
favour of SmackProcessLabel option from upstream.

Change-Id: Ie0bef9c21ae163008bdea8cb5dafb305ec0f058c
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
8 years agoUpdate to version 1.15
Caiwen Zhang [Tue, 13 Jan 2015 03:13:42 +0000 (11:13 +0800)]
Update to version 1.15

8 years agohe910: Fixup SIM status switching
Caiwen Zhang [Fri, 7 Mar 2014 14:37:56 +0000 (22:37 +0800)]
he910: Fixup SIM status switching

SIM inserted notification may be missed, when get SIM status is ready,
make sure SIM inserted is set.

Change-Id: Iad752d39af544c2f177015b5e2530018e8947d40

8 years agoUpgrade to version 1.14
Caiwen Zhang [Thu, 27 Feb 2014 17:32:19 +0000 (01:32 +0800)]
Upgrade to version 1.14

8 years agoAdd the SmackExecLabel=User to allow rw for userspace apps
Michael Demeter [Tue, 14 Jan 2014 19:04:16 +0000 (11:04 -0800)]
Add the SmackExecLabel=User to allow rw for userspace apps

Change-Id: I35aad4dcd50d0c7025a15ec184d481540add1294
Signed-off-by: Michael Demeter <michael.demeter@intel.com>
8 years agopackaging: diable bluez4 as bluez5 is integrated
Sebastian Chlad [Fri, 10 Jan 2014 13:14:02 +0000 (15:14 +0200)]
packaging: diable bluez4 as bluez5 is integrated

Change-Id: I42fc2b2b13a2f3ab32c6049f555262b13458cf62
Signed-off-by: Sebastian Chlad <sebastianx.chlad@intel.com>
8 years ago Imported 1.13
Ravi kumar Veeramally [Fri, 22 Nov 2013 15:01:07 +0000 (17:01 +0200)]
 Imported 1.13

8 years agoresetting manifest requested domain to floor
Alexandru Cornea [Mon, 1 Jul 2013 18:27:36 +0000 (21:27 +0300)]
resetting manifest requested domain to floor

8 years agoSet license using %license
Anas Nashif [Sat, 11 May 2013 05:49:12 +0000 (01:49 -0400)]
Set license using %license

8 years agofix packaging and add ofono.manifest
Erwan Le Blond [Thu, 2 May 2013 12:40:16 +0000 (14:40 +0200)]
fix packaging and add ofono.manifest

8 years agoInitial packaging
Anas Nashif [Wed, 13 Feb 2013 14:42:17 +0000 (06:42 -0800)]
Initial packaging

8 years agopackaging: Initial packaging for Tizen on 1.12
Anas Nashif [Wed, 13 Feb 2013 14:38:27 +0000 (06:38 -0800)]
packaging: Initial packaging for Tizen on 1.12

Change-Id: I5cfd9eb836c0dc81dc70f84306b6d4df342d4ba6

8 years agoRelease 1.17 upstream 1.17 upstream/1.17
Marcel Holtmann [Sun, 13 Sep 2015 15:08:07 +0000 (17:08 +0200)]
Release 1.17

8 years agosms: Add trace when datagram is not delivered
Alfonso Sanchez-Beato [Mon, 7 Sep 2015 09:58:17 +0000 (11:58 +0200)]
sms: Add trace when datagram is not delivered

8 years agosmsutil: Do not check the origin port
Alfonso Sanchez-Beato [Mon, 7 Sep 2015 09:58:16 +0000 (11:58 +0200)]
smsutil: Do not check the origin port

Do not check if the origin port is reserved, as some operators use that
range of values.

8 years agopush-notification: Accept push from any origin
Alfonso Sanchez-Beato [Mon, 7 Sep 2015 09:58:15 +0000 (11:58 +0200)]
push-notification: Accept push from any origin

Accept push notifications regardless of the origin port, as some
operators do not insert there the WAP connectionless session service
port, and use random values instead.

8 years agohfp: Handle extra CCWA event
Kuba Pawlak [Tue, 18 Aug 2015 17:53:28 +0000 (19:53 +0200)]
hfp: Handle extra CCWA event

When a call is waitng, CCWA event is sent and call object
in state WAITING is created. on ReleaseAndAnswer it is
promoted to INCOMING and later to ACTIVE.
iPhones send an extra CCWA event when active call is ended.
This extra event is creating a second call object in state
WAITING. It is not possible to have two WAITING calls, but
previously waiting call was already promoted to INCOMING.
For a brief time we have two calls from the same number,
one INCOMING and one WAITING. Later WAITING one is removed.
As we cannot have a waiting and incoming call at the same
time, ignore CCWA when there is already an INCOMING call.

< \r\n+CIEV: 3,3\r\n
< \r\n+CIEV: 2,1\r\n
< \r\n+CIEV: 3,0\r\n
< \r\n+CCWA: "01234567890",129,1,"Me"\r\n
< \r\n+CIEV: 3,1\r\n
> AT+CLCC\r
< \r\n+CLCC: 1,0,0,0,0,"09876543210",129,"Me"\r\n
< \r\n+CLCC: 2,1,5,0,0,"01234567890",129,"Me"\r\n
< \r\nOK\r\n
< \r\n+CIEV: 2,0\r\n
< \r\n+CCWA: "01234567890",129,1,"Me"\r\n
< \r\n+CIEV: 2,1\r\n
< \r\n+CIEV: 3,0\r\n
> AT+CLCC\r
< \r\n+CLCC: 2,1,0,0,0,"01234567890",129,"Me"\r\n
< \r\nOK\r\n

8 years agovoicecall: Don't accept USSD strings in Dial()
Denis Kenzior [Thu, 6 Aug 2015 22:16:03 +0000 (17:16 -0500)]
voicecall: Don't accept USSD strings in Dial()

8 years agohfp: Synchronize call state in case of +CHUP error
Kuba Pawlak [Wed, 5 Aug 2015 12:36:09 +0000 (14:36 +0200)]
hfp: Synchronize call state in case of +CHUP error

It is possible for the phone to accept Dial request
but not actually dial. This leaves a voicecall object
in state 'dialling' that cannot be removed.
Proposed workaround is to trigger AT+CLCC when an error
is returned for Hangup. As the call is not on the list,
this would remove this hanging object and signal CallRemoved.

Windows Phone trace with this fix:
ofonod[273]: > ATD1;\r
ofonod[273]: < \r\nOK\r\n
ofonod[273]: src/voicecall.c:dial_handle_result() Registering new call: 1
ofonod[273]: < \r\n+CIEV: 5,4\r\n
ofonod[273]: src/network.c:ofono_netreg_strength_notify() strength 80
ofonod[273]: > AT+CHUP\r
ofonod[273]: < \r\nERROR\r\n
ofonod[273]: src/voicecall.c:generic_callback() command failed with error: Unknown error type
ofonod[273]: > AT+CLCC\r
ofonod[273]: < \r\nOK\r\n
ofonod[273]: src/voicecall.c:ofono_voicecall_disconnected() Got disconnection event for id: 1, reason: 2

8 years agocdma-connman: Make static analysis tools happy
Denis Kenzior [Tue, 28 Jul 2015 15:18:26 +0000 (10:18 -0500)]
cdma-connman: Make static analysis tools happy

The kernel simply puts a null terminator at index 15 prior to ifr_name
processing.  So we do the same.

Original report by:
Sabas Rosales, Blanca E <blanca.e.sabas.rosales@intel.com>

 Buffer not null terminated (BUFFER_SIZE_WARNING) buffer_size_warning:
 Calling strncpy with a maximum size argument of 16 bytes on destination
 array ifr.ifr_ifrn.ifrn_name of size 16 bytes might leave the
 destination string unterminated.

  92        strncpy(ifr.ifr_name, interface, IFNAMSIZ);

8 years agoppp_net: Make static analysis tools happy
Denis Kenzior [Tue, 28 Jul 2015 15:16:16 +0000 (10:16 -0500)]
ppp_net: Make static analysis tools happy

The kernel simply puts a null terminator at index 15 prior to ifr_name
processing.  So we do the same.

Original report by:
Sabas Rosales, Blanca E <blanca.e.sabas.rosales@intel.com>

 Buffer not null terminated (BUFFER_SIZE_WARNING) buffer_size_warning:
 Calling strncpy with a maximum size argument of 16 bytes on destination
 array ifr.ifr_ifrn.ifrn_name of size 16 bytes might leave the
 destination string unterminated.

  67        strncpy(ifr.ifr_name, net->if_name, sizeof(ifr.ifr_name));

8 years agogprs: Try re-attaching when we switch cells
Denis Kenzior [Mon, 20 Jul 2015 18:51:29 +0000 (13:51 -0500)]
gprs: Try re-attaching when we switch cells

8 years agomessage-waiting: Fix reading EF_MWIS records
Alfonso Sanchez-Beato [Thu, 16 Jul 2015 13:02:18 +0000 (15:02 +0200)]
message-waiting: Fix reading EF_MWIS records

8 years agomessage-waiting: Update properly EF_MWIS SIM file
Alfonso Sanchez-Beato [Thu, 16 Jul 2015 13:02:17 +0000 (15:02 +0200)]
message-waiting: Update properly EF_MWIS SIM file

8 years agoAUTHORS: Mention Johannes' contributions
Denis Kenzior [Thu, 16 Jul 2015 19:11:14 +0000 (14:11 -0500)]
AUTHORS: Mention Johannes' contributions

8 years agoudevng: add support for Ericsson N5321 gw
Johannes 'josch' Schauer [Thu, 16 Jul 2015 18:32:31 +0000 (20:32 +0200)]
udevng: add support for Ericsson N5321 gw

8 years agohfp_hf_bluez5: Fix crash on re-pairing a Device
Kuba Pawlak [Fri, 10 Jul 2015 15:08:01 +0000 (17:08 +0200)]
hfp_hf_bluez5: Fix crash on re-pairing a Device

It may happen that a Device object is unpaired an paired again
without being removed from DBus. This in turn triggers second
modem object to be created, but not fully initialized.
If this modem object is used, oFono will crash.

8 years agohandsfree: Mark GetProperties method ASYNC
Denis Kenzior [Sun, 5 Jul 2015 11:01:58 +0000 (06:01 -0500)]
handsfree: Mark GetProperties method ASYNC

8 years agou8500: Fix compiler warning with logical expression
Marcel Holtmann [Tue, 7 Jul 2015 09:31:53 +0000 (11:31 +0200)]
u8500: Fix compiler warning with logical expression

  CC       plugins/u8500.o
plugins/u8500.c: In function ‘reachable_cb’:
plugins/u8500.c:235:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
  if (!g_isi_msg_error(msg) < 0)
                            ^

8 years agon900: Fix compiler warning with logical expression
Marcel Holtmann [Tue, 7 Jul 2015 09:31:09 +0000 (11:31 +0200)]
n900: Fix compiler warning with logical expression

  CC       plugins/n900.o
plugins/n900.c: In function ‘mtc_reachable_cb’:
plugins/n900.c:241:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
  if (!g_isi_msg_error(msg) < 0)
                            ^

8 years agoisiusb: Fix compiler warning with logical expression
Marcel Holtmann [Tue, 7 Jul 2015 09:30:20 +0000 (11:30 +0200)]
isiusb: Fix compiler warning with logical expression

  CC       plugins/isiusb.o
plugins/isiusb.c: In function ‘reachable_cb’:
plugins/isiusb.c:207:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
  if (!g_isi_msg_error(msg) < 0)
                            ^

8 years agogatchat: Fix compiler warning with logical expression
Marcel Holtmann [Tue, 7 Jul 2015 09:28:34 +0000 (11:28 +0200)]
gatchat: Fix compiler warning with logical expression

  CC       gatchat/gatchat.o
gatchat/gatchat.c: In function ‘have_line’:
gatchat/gatchat.c:586:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
  if (!strncmp(str, "AT", 2) == TRUE)
                            ^

8 years agoAUTHORS: Mention Marko's contributions
Denis Kenzior [Sun, 5 Jul 2015 10:44:46 +0000 (05:44 -0500)]
AUTHORS: Mention Marko's contributions

8 years agoconfigure.ac: fix typo
Marko Sulejic [Fri, 3 Jul 2015 09:51:50 +0000 (11:51 +0200)]
configure.ac: fix typo

8 years agoAUTHORS: Mention Sergey's contributions
Denis Kenzior [Wed, 1 Jul 2015 13:10:39 +0000 (08:10 -0500)]
AUTHORS: Mention Sergey's contributions

8 years agobuild: make ofono build against musl
Sergey Alirzaev [Sat, 30 May 2015 09:13:56 +0000 (12:13 +0300)]
build: make ofono build against musl

ifdef away GNU libc extensions and use a POSIXly correct pointer type

8 years agohandsfree: Fix potential buffer overflow
Denis Kenzior [Tue, 30 Jun 2015 21:58:36 +0000 (16:58 -0500)]
handsfree: Fix potential buffer overflow

Function: ag_features_list
 static const char *list[10];  (Out of bounds write, line 75)
  Incrementing i the value is now 10, for “hf-indicators”

Reported by: blanca.e.sabas.rosales@intel.com

8 years agosim: Fix up whitespace issues
Denis Kenzior [Thu, 18 Jun 2015 19:59:06 +0000 (14:59 -0500)]
sim: Fix up whitespace issues

8 years agoEmit LockedPins after pin_type is queried
Tommi Kenakkala [Mon, 22 Jun 2015 13:37:01 +0000 (16:37 +0300)]
Emit LockedPins after pin_type is queried

Fixes property change not being emited when hot-swapping a
PIN-enabled card.

8 years agosim: Reset pin_type on card remove
Tommi Kenakkala [Thu, 18 Jun 2015 11:46:57 +0000 (14:46 +0300)]
sim: Reset pin_type on card remove

Fixes PinRequired not being emitted when a card is inserted

8 years agohfpmodem: Fix connecting to AG with existing mpty
Kuba Pawlak [Wed, 3 Jun 2015 17:25:50 +0000 (19:25 +0200)]
hfpmodem: Fix connecting to AG with existing mpty

If there is more then one active or held call, we are in mpty calls.
We won't get indicator update if any of them is released by CHLD=1x.
So we have to poll it.

8 years agogprs: Add comment to gprs_reset_contexts
Alfonso Sanchez-Beato [Mon, 18 May 2015 17:07:45 +0000 (19:07 +0200)]
gprs: Add comment to gprs_reset_contexts

8 years agotest: Fix file mode for reset-contexts
Denis Kenzior [Mon, 18 May 2015 15:02:10 +0000 (10:02 -0500)]
test: Fix file mode for reset-contexts

8 years agogprs: Refactor to remove forward declaration
Alfonso Sanchez-Beato [Mon, 18 May 2015 06:47:09 +0000 (08:47 +0200)]
gprs: Refactor to remove forward declaration

8 years agotest: Add script for resetting contexts
Alfonso Sanchez-Beato [Mon, 18 May 2015 06:47:08 +0000 (08:47 +0200)]
test: Add script for resetting contexts

8 years agodoc: Add description for ResetContexts method
Alfonso Sanchez-Beato [Mon, 18 May 2015 06:47:07 +0000 (08:47 +0200)]
doc: Add description for ResetContexts method

8 years agogprs: Add DBus method to reset contexts
Alfonso Sanchez-Beato [Mon, 18 May 2015 06:47:06 +0000 (08:47 +0200)]
gprs: Add DBus method to reset contexts

Add DBus method that removes the current contexts and re-provisions
using the APN database.

8 years agocinterion: Correct use of freed structure
Alex J Lennon [Wed, 13 May 2015 16:08:47 +0000 (17:08 +0100)]
cinterion: Correct use of freed structure

On error struct cb_data *cbd was used after in cinterion_set_online
after already being freed.

8 years agoste: Fix out-of-order free
Denis Kenzior [Wed, 13 May 2015 20:55:00 +0000 (15:55 -0500)]
ste: Fix out-of-order free

CALLBACK_WITH_FAILURE used data structure freed just beforehand

8 years agodundee: Fix out-of-order free
Denis Kenzior [Wed, 13 May 2015 20:44:39 +0000 (15:44 -0500)]
dundee: Fix out-of-order free

CALLBACK_WITH_FAILURE used data structure freed just beforehand

8 years agoAUTHORS: Mention Alex's contributions
Denis Kenzior [Wed, 13 May 2015 14:57:26 +0000 (09:57 -0500)]
AUTHORS: Mention Alex's contributions

8 years agoudev: Add support for ehs6 name
Alex J Lennon [Tue, 12 May 2015 17:23:02 +0000 (18:23 +0100)]
udev: Add support for ehs6 name

As with tc65, ehs6 makes use of cinterion plugin

8 years agocinterion: Register as OFONO_VENDOR_CINTERION
Alex J Lennon [Tue, 12 May 2015 17:23:01 +0000 (18:23 +0100)]
cinterion: Register as OFONO_VENDOR_CINTERION

This enables us to take advantage of vendor specific quirks
(e.g. signal strength handling specifics for tc65)

8 years agoatmodem: Add Cinterion quirk for signal strength
Alex J Lennon [Tue, 12 May 2015 17:23:00 +0000 (18:23 +0100)]
atmodem: Add Cinterion quirk for signal strength

Implement OFONO_VENDOR_CINTERION specific vendor support to register
textual +CIEV indications for signal strength using AT^SIND command.

8 years agotc65: Replace tc65 plugin with cinterion plugin
Alex J Lennon [Tue, 12 May 2015 17:22:59 +0000 (18:22 +0100)]
tc65: Replace tc65 plugin with cinterion plugin

On the basis that tc6x and other Cinterion devices will likely
have similar firmware requirements, provide a generic Cinterion
plugin which is functionally identical to the replaced tc65 plugin.

The udev implementation retains support for "tc65" name for
backwards compatibility, and adds support for the new "cinterion"
name.

8 years agohfp_hf_bluez5: Implement sco_connected_hint
Denis Kenzior [Wed, 22 Apr 2015 23:07:14 +0000 (18:07 -0500)]
hfp_hf_bluez5: Implement sco_connected_hint

8 years agohandsfree-audio: Call sco_connected_hint
Denis Kenzior [Wed, 22 Apr 2015 22:58:50 +0000 (17:58 -0500)]
handsfree-audio: Call sco_connected_hint

8 years agoinclude: Add sco_connected_hint to handsfree-audio
Denis Kenzior [Wed, 22 Apr 2015 22:58:15 +0000 (17:58 -0500)]
include: Add sco_connected_hint to handsfree-audio

8 years agogatchat: Introduce g_at_chat_get_userdata
Denis Kenzior [Wed, 22 Apr 2015 22:57:53 +0000 (17:57 -0500)]
gatchat: Introduce g_at_chat_get_userdata

8 years agohandsfree-audio: Add additional debugs
Denis Kenzior [Wed, 22 Apr 2015 22:12:48 +0000 (17:12 -0500)]
handsfree-audio: Add additional debugs

9 years agogdbus: Close private connection if setup fails
Luiz Augusto von Dentz [Fri, 10 Apr 2015 12:54:37 +0000 (15:54 +0300)]
gdbus: Close private connection if setup fails

Private connection should be properly closed with dbus_connection_close
otherwise libdbus exits with the following error:

  'The last reference on a connection was dropped without closing the
   connection. This is a bug in an application. See
   dbus_connection_unref() documentation for details. Most likely, the
   application was supposed to call dbus_connection_close(), since this
   is a private connection.'

9 years agogdbus: Fix crash in g_dbus_create_error_valist
Szymon Janc [Tue, 7 Apr 2015 20:07:41 +0000 (22:07 +0200)]
gdbus: Fix crash in g_dbus_create_error_valist

Passing NULL format parameter to vsnprintf results in invalid argument
error on glibc. But with some other libc libraries (musl and uClibc)
this results in dereferencing NULL pointer and crash due to
segmentation fault.

9 years agogdbus: Use g_dbus_create_error_valist internally
Szymon Janc [Tue, 7 Apr 2015 19:57:19 +0000 (21:57 +0200)]
gdbus: Use g_dbus_create_error_valist internally

There is no need to duplicate code in g_dbus_send_error_valist.

9 years agogdbus: Add g_dbus_get_flags function
Michael Janssen [Fri, 3 Apr 2015 22:02:11 +0000 (15:02 -0700)]
gdbus: Add g_dbus_get_flags function

The g_dbus_get_flags function enables detection of when the
G_DBUS_FLAG_ENABLE_EXPERIMENTAL is set.

9 years agogdbus: Make GDBusClient work without ObjectManager
Luiz Augusto von Dentz [Tue, 24 Mar 2015 11:56:26 +0000 (13:56 +0200)]
gdbus: Make GDBusClient work without ObjectManager

This makes GDBusClient work normally without ObjectManager.

9 years agogdbus/client: Allow specifying ObjectManager path
Arman Uguray [Fri, 27 Feb 2015 08:16:25 +0000 (00:16 -0800)]
gdbus/client: Allow specifying ObjectManager path

GDBusClient currently hard-codes "/" as the remote ObjectManager path.
This is generally incorrect, as an application can choose to expose an
ObjectManager at any well-known path. This patch fixes this by allowing
the user to pass in the ObjectManager path by introducing a new
conctructor "g_dbus_client_new_full".

9 years agogdbus/client: Don't GetManagedObjects w/o handlers
Arman Uguray [Fri, 27 Feb 2015 08:16:24 +0000 (00:16 -0800)]
gdbus/client: Don't GetManagedObjects w/o handlers

The client code currently issues GetManagedObjects if new handlers are
set via g_dbus_client_set_proxy_handlers. An application may set these
to NULL before unref'ing a client or to simply prevent further events.
Hence, there is no need to refresh objects or properties if all handlers
are NULL.

9 years agohfpmodem: slc.c: make sure to use none_prefix
Kuba Pawlak [Tue, 24 Mar 2015 16:04:26 +0000 (17:04 +0100)]
hfpmodem: slc.c: make sure to use none_prefix

9 years agohfpmodem: hfpmodem.c make sure to use none_prefix
Kuba Pawlak [Tue, 24 Mar 2015 16:04:25 +0000 (17:04 +0100)]
hfpmodem: hfpmodem.c make sure to use none_prefix

9 years agohfp_ag_bluez5: use none prefix for AT+BCC.
Kuba Pawlak [Tue, 24 Mar 2015 14:20:40 +0000 (15:20 +0100)]
hfp_ag_bluez5: use none prefix for AT+BCC.

iPhone 5s with iOS8.2 sometimes failes to acknowledge AT+BCC
with OK. This means +CIEV events get consumed by this command
and call ended notification is not parsed.

Nov 30 00:00:19 ofonod[938]: > AT+BCC\r
Nov 30 00:00:28 ofonod[938]: < \r\n+CIEV: 2,0\r\n

9 years agogdbus: Fix not calling disconnect function
Szymon Janc [Mon, 23 Feb 2015 18:33:00 +0000 (19:33 +0100)]
gdbus: Fix not calling disconnect function

If daemon gets disconnected from D-Bus sender is NULL. Watches that
was explicitly added with NULL sender (ie disconnected_signal in
g_dbus_set_disconnect_function) should be called anyway.

9 years agogdbus: Don't refresh objects/props if disconnected
Arman Uguray [Sat, 21 Feb 2015 01:56:47 +0000 (17:56 -0800)]
gdbus: Don't refresh objects/props if disconnected

If g_dbus_client_set_proxy_handlers gets called from within a
proxy_removed callback, the code may end up refreshing the proxy's
properties and incorrectly access the client's proxy_list as it gets
freed. This patch fixes this, so that get_managed_objects does nothing
if it gets called during a service disconnect.

9 years agohfpmodem: Make sure to use none_prefix
Denis Kenzior [Fri, 20 Feb 2015 16:30:21 +0000 (10:30 -0600)]
hfpmodem: Make sure to use none_prefix

ofonod[253]: > AT+CCWA=1\r
ofonod[253]: < \r\n+BCS:2\r\n
ofonod[253]: < \r\nOK\r\n

9 years agohfpmodem: Make sure to set the prefix properly
Denis Kenzior [Fri, 20 Feb 2015 16:28:24 +0000 (10:28 -0600)]
hfpmodem: Make sure to set the prefix properly

ofonod[1239]: > AT+COPS=3,0\r
ofonod[1239]: < \r\n+BCS:2\r\n
ofonod[1239]: < \r\nOK\r\n

9 years agosmsutil: Add additional sanity check
Denis Kenzior [Fri, 13 Feb 2015 15:59:59 +0000 (09:59 -0600)]
smsutil: Add additional sanity check

We make sure that after performing the UTF8 -> GSM conversion, the
number of GSM bytes is not greater than 11, which is the maximum
payload.

9 years agounit: Add test to encode / decode 11 char TP-OA
Tommi Kenakkala [Fri, 13 Feb 2015 12:47:34 +0000 (14:47 +0200)]
unit: Add test to encode / decode 11 char TP-OA

9 years agosms: Fix alphanumeric TP-OA handling
Tommi Kenakkala [Fri, 13 Feb 2015 15:50:16 +0000 (17:50 +0200)]
sms: Fix alphanumeric TP-OA handling

TP-OA max length comparisons were incorrect because TP-OA's 7-bit
coded octets transport eleven 8-bit chars.  The current code assumed
only 10 chars were possible.

The patch
- increases the array size to 23, (maximum of 22 bytes for UTF8
  encoding + null terminator)
- Updates the sanity check to account for the correct maximum
- For encoding, checks the maximum length in UTF8 characters instead of
  bytes

9 years agoAUTHORS: Mention Tommi's contributions
Denis Kenzior [Mon, 2 Feb 2015 15:29:46 +0000 (09:29 -0600)]
AUTHORS: Mention Tommi's contributions

9 years agohandsfree-audio: Refactor manager init / cleanup
Tommi Kenakkala [Mon, 2 Feb 2015 12:43:06 +0000 (14:43 +0200)]
handsfree-audio: Refactor manager init / cleanup

9 years agomain: Remove handsfree_audio_manager init/cleanup
Tommi Kenakkala [Mon, 2 Feb 2015 12:43:05 +0000 (14:43 +0200)]
main: Remove handsfree_audio_manager init/cleanup

Init allocates a SCO audio socket always. oFono should do that
with bluez5 but not with bluez4.  This patch starts the refactoring of
the handsfree_audio_manager init/cleanup functionality.

9 years agoatmodem: fix retries reporting from AT+CPINR
Cedric Jehasse [Mon, 2 Feb 2015 09:32:45 +0000 (10:32 +0100)]
atmodem: fix retries reporting from AT+CPINR

The retries array was not correctly filled in.

9 years agoatmodem: Sierra modems should be polled after CPIN
Cedric Jehasse [Mon, 2 Feb 2015 09:32:44 +0000 (10:32 +0100)]
atmodem: Sierra modems should be polled after CPIN

Sierra modem will return "CME ERROR: 14" when polled right after pin has
been entered. Use the existing vendor quirk to handle this.

9 years agosierra: add sim state polling after CFUN enable
Cedric Jehasse [Fri, 30 Jan 2015 10:34:32 +0000 (11:34 +0100)]
sierra: add sim state polling after CFUN enable

When pin is queried shortly after a Siera dongle is plugged in,
"AT+CPIN?" responds with "CME ERROR 14: SIM".
Poll the sim, as already done by several other vendor plugins.

9 years agoRelease 1.16 1.16
Marcel Holtmann [Sat, 13 Dec 2014 01:56:19 +0000 (02:56 +0100)]
Release 1.16

9 years agoradio-settings: Show all available technologies
Alfonso Sanchez-Beato [Fri, 12 Dec 2014 11:25:35 +0000 (12:25 +0100)]
radio-settings: Show all available technologies

Not all possible futures technologies were being showed on the DBus
interface.

9 years agophonesim: Instantiate radio-settings in post_sim
Denis Kenzior [Wed, 10 Dec 2014 17:02:14 +0000 (11:02 -0600)]
phonesim: Instantiate radio-settings in post_sim

9 years agophonesim: Add minimal radio-settings functionality
Denis Kenzior [Wed, 10 Dec 2014 17:01:37 +0000 (11:01 -0600)]
phonesim: Add minimal radio-settings functionality

9 years agophonesim: Add skeleton of radio settings driver
Denis Kenzior [Wed, 10 Dec 2014 04:54:35 +0000 (22:54 -0600)]
phonesim: Add skeleton of radio settings driver

9 years agoradio-settings: Always query available rats
Denis Kenzior [Wed, 10 Dec 2014 17:00:49 +0000 (11:00 -0600)]
radio-settings: Always query available rats

If fast dormancy query is not implemented the available rats are not
queried.

9 years agoradio-settings: Add additional sanity check
Denis Kenzior [Wed, 10 Dec 2014 16:40:26 +0000 (10:40 -0600)]
radio-settings: Add additional sanity check

9 years agoradio-settings: rework AvailableTechnologies logic
Denis Kenzior [Wed, 10 Dec 2014 16:38:42 +0000 (10:38 -0600)]
radio-settings: rework AvailableTechnologies logic

Take advantage of the new enum structure to future proof and simplify
the logic of generating the AvailableTechnologies property

9 years agoinclude: No need for OFONO_FLAG* defines
Denis Kenzior [Wed, 10 Dec 2014 16:28:49 +0000 (10:28 -0600)]
include: No need for OFONO_FLAG* defines

9 years agotest: Add AvailableTechnologies to list-modems
Alfonso Sanchez-Beato [Tue, 9 Dec 2014 12:34:39 +0000 (13:34 +0100)]
test: Add AvailableTechnologies to list-modems

9 years agosrc: Implement RAT list property
Alfonso Sanchez-Beato [Tue, 9 Dec 2014 12:34:38 +0000 (13:34 +0100)]
src: Implement RAT list property

9 years agoinclude: Add method to list RATs to radio-settings
Alfonso Sanchez-Beato [Tue, 9 Dec 2014 12:34:37 +0000 (13:34 +0100)]
include: Add method to list RATs to radio-settings