platform/upstream/bluez.git
4 years agodoc: Update mesh Agent API
Inga Stotland [Mon, 3 Dec 2018 03:29:50 +0000 (19:29 -0800)]
doc: Update mesh Agent API

Change enumerated values to strings in method parameters, and
corrected formatting for 80 character terminals.

Change-Id: I42bbbbfde235ae1389979c3b7176ae4266e3f719
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agodoc: Initial Bluetooth Mesh API
Inga Stotland [Tue, 20 Nov 2018 07:29:05 +0000 (23:29 -0800)]
doc: Initial Bluetooth Mesh API

This decribes proposed D-Bus based API for Bluetooth Mesh
implementation.

Change-Id: Ib8949de722335c0247ab147755d333259b1708b7
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Avoid loop variable initial declarations
Marcel Holtmann [Tue, 4 Dec 2018 16:30:42 +0000 (17:30 +0100)]
mesh: Avoid loop variable initial declarations

Change-Id: I68cfa8352c77ff8c562096bd822742a86056a6f5
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agobuild: Add missing mesh/appkey.h header file
Marcel Holtmann [Mon, 3 Dec 2018 20:18:23 +0000 (21:18 +0100)]
build: Add missing mesh/appkey.h header file

Change-Id: I78422ddc220bd213787e7777939be25aecea996c
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Fix various compiler warnings
Marcel Holtmann [Mon, 3 Dec 2018 18:54:33 +0000 (19:54 +0100)]
mesh: Fix various compiler warnings

Change-Id: I5fc0e3d8b16da52e3669803d6905e85656c31860
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Up-rev ELL dependancies to >= 0.14
Brian Gix [Thu, 22 Nov 2018 19:37:32 +0000 (11:37 -0800)]
mesh: Up-rev ELL dependancies to >= 0.14

Change-Id: Ic057c4ea331156e8694104da225681fdb6b887fd
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomeshctl: Switch from write to sendmsg for Acquire*
Luiz Augusto von Dentz [Mon, 19 Nov 2018 15:35:54 +0000 (17:35 +0200)]
meshctl: Switch from write to sendmsg for Acquire*

Use sendmsg with MSG_NOSIGNAL to prevent crashes involving SIGPIPE.

Change-Id: I25fde6c1e91642a887c4705d4861d01fb134bf95
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Refactor friend.c and net.c for central key DB
Brian Gix [Tue, 18 Sep 2018 19:40:08 +0000 (12:40 -0700)]
mesh: Refactor friend.c and net.c for central key DB

To enable multiple local nodes and friendships to
coexist, and minimize redundant encryption processing

Change-Id: I41ef270909c3d38391f31a922d48d35da2d56b10
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Add centralized caching Net Key management
Brian Gix [Fri, 7 Sep 2018 21:45:04 +0000 (14:45 -0700)]
mesh: Add centralized caching Net Key management

Change-Id: I804c51cbe75d8ea0a42b7982a37aef8311de6b0c
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Add clean up on start up failure
Inga Stotland [Fri, 7 Sep 2018 23:25:44 +0000 (16:25 -0700)]
mesh: Add clean up on start up failure

Call bt_shell_clanup if failed to start the tool.

Change-Id: I58a85628546e20a51065ab02b54f2145a8425d57
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Add start up management command chain
Inga Stotland [Wed, 5 Sep 2018 00:20:34 +0000 (17:20 -0700)]
mesh: Add start up management command chain

This allows co-existense of meshd and bluetoothd. meshd will
automatically take control of the first available LE-capable
controller that is powered down.

Change-Id: If5f27e4215ace969e37f72928259fb35923d4a24
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agotools/meshctl: Fix default directory for JSON files
Inga Stotland [Wed, 29 Aug 2018 18:25:55 +0000 (11:25 -0700)]
tools/meshctl: Fix default directory for JSON files

This fixes the name of default directory that contains sample JSON files.
README file is updated to describe the default location.

Change-Id: Ie702dd3079df95d043196bbf5a3f85d54077369b
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Fix uninitilized error
Luiz Augusto von Dentz [Fri, 24 Aug 2018 14:49:02 +0000 (17:49 +0300)]
mesh: Fix uninitilized error

This fixes the following error:

mesh/cfgmod-server.c: In function ‘cfg_srv_pkt’:
mesh/cfgmod-server.c:103:5: error: ‘pub’ may be used uninitialized in
this function [-Werror=maybe-uninitialized]

Change-Id: I18473c1c16bd02b208d679422cd4ed354108b77d
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Fixed warning-to-error from GCC 8.1.1
Brian Gix [Thu, 23 Aug 2018 20:08:54 +0000 (13:08 -0700)]
mesh: Fixed warning-to-error from GCC 8.1.1

Fixed compiler flagged unsafe usage of strncpy

Change-Id: Ie69c5914eb48a608e2252794e0e5b87135ff5211
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agoAUTHORS: add Mesh maintaining authors
Brian Gix [Wed, 22 Aug 2018 19:10:55 +0000 (12:10 -0700)]
AUTHORS: add Mesh maintaining authors

Change-Id: Ifb1b521d786562e1ba64fa1e032007254909c6c6
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agoMakefile for meshd
Inga Stotland [Sat, 14 Jul 2018 19:59:03 +0000 (12:59 -0700)]
Makefile for meshd

Tizen Change: Currently mesh daemon build is disabled

Change-Id: I85bc5d9c11e39115024b0bb498aafb462d912e73
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Sample device composition in JSON format
Inga Stotland [Sat, 14 Jul 2018 19:59:02 +0000 (12:59 -0700)]
mesh: Sample device composition in JSON format

This is a sample unprovisioned device composition described
in JSON format.

Change-Id: I52ce0e669c18237fb50f1fa5d035ae076dd26f6f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Read and write mesh configuration in JSON format
Inga Stotland [Sat, 14 Jul 2018 19:59:01 +0000 (12:59 -0700)]
mesh: Read and write mesh configuration in JSON format

This adds implementation for parsing and writing Mesh configuration
into JSON format. Also, parse stored unprovisioned device composiotion.

Change-Id: Ia280ef53a7f170001494d15bd70b1d884cdabb58
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Mesh config server model
Inga Stotland [Sat, 14 Jul 2018 19:59:00 +0000 (12:59 -0700)]
mesh: Mesh config server model

Change-Id: Ib400910064ff64cdcb8f323675e4be4aa656aee8
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Source code for handling access layer mux/demux
Inga Stotland [Sat, 14 Jul 2018 19:58:59 +0000 (12:58 -0700)]
mesh: Source code for handling access layer mux/demux

Change-Id: Ia5cac2a4c9751bee26026db54384846c435bcc49
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Source files for mesh access layer and utilities
Inga Stotland [Sat, 14 Jul 2018 19:58:58 +0000 (12:58 -0700)]
mesh: Source files for mesh access layer and utilities

This adds initial implementation of BT Mesh access layer
functionality plus utilities.

Change-Id: Ib83a570b34c334153c0174d2bd1dbf9cebce4cc3
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Header files for mesh access layer and utilities
Inga Stotland [Sat, 14 Jul 2018 19:58:57 +0000 (12:58 -0700)]
mesh: Header files for mesh access layer and utilities

This adds initial implementation of Mesh access layer functionality

Change-Id: I142ef204a0efffe279e2b7cf3208f018f83d6b50
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Add Accessors to Transport layer data
Brian Gix [Sat, 14 Jul 2018 19:58:56 +0000 (12:58 -0700)]
mesh: Add Accessors to Transport layer data

Change-Id: Icefad134ee878cc4866ccb27c9d65e83e503097f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Upper and Lower mesh transport
Brian Gix [Sat, 14 Jul 2018 19:58:55 +0000 (12:58 -0700)]
mesh: Upper and Lower mesh transport

Change-Id: I0624c9f43ecde27c00d3003954c642d99df4cc34
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Provisioning logic for mesh
Brian Gix [Sat, 14 Jul 2018 19:58:54 +0000 (12:58 -0700)]
mesh: Provisioning logic for mesh

Change-Id: I1393239458d07d69a23770a229836b5f0663f8cd
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Initial Mesh Friendship support
Brian Gix [Sat, 14 Jul 2018 19:58:53 +0000 (12:58 -0700)]
mesh: Initial Mesh Friendship support

Change-Id: Ie0293ff6312d2987dbb120936e059e99f70bfa48
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Infrastructure for Mesh daemon
Brian Gix [Sat, 14 Jul 2018 19:58:52 +0000 (12:58 -0700)]
mesh: Infrastructure for Mesh daemon

Change-Id: I0738f7295f69a8229e3a09f67ae6399b6839e8b1
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Mesh crypto support
Brian Gix [Sat, 14 Jul 2018 19:58:51 +0000 (12:58 -0700)]
mesh: Mesh crypto support

Change-Id: Ieffb5c2aff17ee823a770362ca71c1afea064f9f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Shared private meshd interfaces
Brian Gix [Sat, 14 Jul 2018 19:58:50 +0000 (12:58 -0700)]
mesh: Shared private meshd interfaces

Change-Id: I5cfc75e29a139410c74aa82c4272f284171b2405
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agotools/mesh: Fix reclaiming address range
Inga Stotland [Wed, 15 Aug 2018 20:16:52 +0000 (13:16 -0700)]
tools/mesh: Fix reclaiming address range

The computations for reclaiming released unicast addresses back
into address pool were off by 1. Also, the adjacent pools need
to be merged, if the released range fills the gap between two
address pools.

Change-Id: If420d6a914067880250d78f6de955a071fcf5fe7
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agotools: Move meshctl sources under tools/mesh directory
Inga Stotland [Fri, 22 Jun 2018 06:32:00 +0000 (23:32 -0700)]
tools: Move meshctl sources under tools/mesh directory

This is a temporary location until the unified mesh solution is provided

Change-Id: I1496ad64c492442a12e0920f67a34fc48297a088
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agotools: Move meshctl tool under tools directory
Inga Stotland [Fri, 22 Jun 2018 06:31:59 +0000 (23:31 -0700)]
tools: Move meshctl tool under tools directory

Change-Id: I17f7a3e16b325614ad68f537ee5d7152ec64e006
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Add ELL support in Bluez build 08/220208/1
Anupam Roy [Fri, 13 Dec 2019 10:25:48 +0000 (15:55 +0530)]
mesh: Add ELL support in Bluez build

Note: In Tizen bluez, ELL will be built internally.
BLE mesh modules like mesh-cfgclient & bluetooth-mesh daemon
will be linked against the librarties generated by ELL build.

This patch refers to following upstream patch.

==================================================================
 commit 0093cd61b1e4f199bca45f8c2f8eb2d5a30e847d
 Author: Marcel Holtmann <marcel@holtmann.org>
 Date:   Tue Dec 4 16:59:01 2018 +0100

 build: Add support for internal and external ELL configuration
==================================================================

Change-Id: I232c2737964e0c6d56abc7a794f9f75606dc6472
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: add source for ell shared library 07/220207/1
Anupam Roy [Fri, 13 Dec 2019 10:03:35 +0000 (15:33 +0530)]
mesh: add source for ell shared library

Change-Id: I5951addf984e0e67bf8d3dcf89b89ba648c14064
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomesh: Add ELL support in Bluez 06/220206/1
Anupam Roy [Fri, 13 Dec 2019 09:30:21 +0000 (15:00 +0530)]
mesh: Add ELL support in Bluez

This is a pre-requisute patch which adds ELL
source & headers inside Tizen bluez source.

In Tizen bluez, ELL will be built internally.
BLE mesh modules like mesh-cfgclient & bluetooth-mesh daemon
will be linked against the libraries generated by ELL build.

Note: ELL source build will be enabled in next patchset

Change-Id: I91d4a31326810820ed644816cfba8fd8ae93952d
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agoAdd check logic of browsing_io before channel shutdown 36/219436/4 accepted/tizen/5.5/unified/20191210.221211 submit/tizen_5.5/20191206.000647
Wootak Jung [Thu, 5 Dec 2019 01:05:53 +0000 (10:05 +0900)]
Add check logic of browsing_io before channel shutdown

Dec 05 09:38:13 localhost bluetoothd[2772]: GLib: g_io_channel_shutdown:
assertion 'channel != NULL' failed
Dec 05 09:38:13 localhost bluetoothd[2772]: GLib: g_io_channel_unref:
assertion 'channel != NULL' failed

Change-Id: Ife5a32397567a16806cfb6c15598ef88b6a438ee

4 years agoMerge "Remove unnecessary method calls" into tizen
Pyun DoHyun [Thu, 5 Dec 2019 04:19:07 +0000 (04:19 +0000)]
Merge "Remove unnecessary method calls" into tizen

4 years agoRemove unnecessary method calls 87/219287/1
Wootak Jung [Wed, 4 Dec 2019 04:52:15 +0000 (13:52 +0900)]
Remove unnecessary method calls

Calling Release() method generates below unnecessary dbus error.
Moreover, no need to call this method because cleanup process is
already done.

Dec 04 09:57:15 localhost dbus[2637]: [system] Rejected send message,
1 matched rules; type="error", sender=":1.3" (uid=122 pid=2562 comm=
"/usr/bin/pulseaudio ") interface="(unset)" member="(unset)" error n
ame="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply=
"0" destination=":1.207" privilege="(n/a)" (uid=551 pid=3891 comm="/
usr/libexec/bluetooth/bluetoothd -d -C ") rule(<deny send_destinatio
n="org.bluez" />)

Feb 26 23:56:47 localhost dbus[2521]: [system] Rejected send message,
1 matched rules; type="error", sender=":1.59" (uid=651 pid=3025 comm=
"/usr/bin/sapd ") interface="(unset)" member="(unset)" error name="or
g.freedesktop.DBus.Error.UnknownMethod" requested_reply="0" destinati
on=":1.334" privilege="(n/a)" (uid=551 pid=8104 comm="/usr/libexec/bl
uetooth/bluetoothd -d -C ") rule(<deny send_destination="org.bluez" />)

Change-Id: I6ad605d2621be1e7a2800cd11217d157da86607a

4 years agoCalls sd_notify(STOPPING=1) to ensure systemd's operation 81/219181/1
DoHyun Pyun [Tue, 3 Dec 2019 01:52:33 +0000 (10:52 +0900)]
Calls sd_notify(STOPPING=1) to ensure systemd's operation

Change-Id: I287a8f72156c2f386a8e824f2099abec2757e761
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd A2dpRole property in the adapter interface 98/218698/2 accepted/tizen/5.5/unified/20191203.011319 accepted/tizen/unified/20191128.161924 submit/tizen/20191128.024748 submit/tizen_5.5/20191127.215640
DoHyun Pyun [Wed, 27 Nov 2019 06:00:47 +0000 (15:00 +0900)]
Add A2dpRole property in the adapter interface

Change-Id: I818c3a65b700783fb11b5c67fad8af9149a33ee9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd new dbus rule for HID GetFD 87/218287/1
Deokhyun Kim [Thu, 21 Nov 2019 05:34:12 +0000 (14:34 +0900)]
Add new dbus rule for HID GetFD

Change-Id: I314bcdddd71d83e733cd90565d25d1005f5f8bfe
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoFix response_needed not set issue 76/217876/1 accepted/tizen/5.5/unified/20191118.084835 accepted/tizen/5.5/unified/20191120.130938 accepted/tizen/5.5/unified/20191121.073247 accepted/tizen/unified/20191118.122944 submit/tizen/20191115.070745 submit/tizen_5.5/20191115.070441 submit/tizen_5.5/20191115.070934 submit/tizen_5.5/20191118.005342 submit/tizen_5.5/20191118.011157 submit/tizen_5.5/20191119.233738
Wootak Jung [Fri, 15 Nov 2019 06:52:40 +0000 (15:52 +0900)]
Fix response_needed not set issue

write request is failed on server side because
response_needed is not set.

Change-Id: Id63b9e8dda44917ec5442b3224c136952c69c4fc

4 years agoRevert "Fix: ConnectProfiles never be returned" 03/216303/1 accepted/tizen/unified/20191101.042116 submit/tizen/20191031.005137
Deokhyun Kim [Wed, 23 Oct 2019 07:01:42 +0000 (16:01 +0900)]
Revert "Fix: ConnectProfiles never be returned"

This reverts commit 1d77526f4dad3e322504a780770836129931796a

When prior connection fails, dev->connect was not released
Release connect resources when connection fails

// First connect
Oct 17 14:30:55 localhost bluetoothd[6459]: src/device.c:connect_profiles() /org/bluez/hci0/dev_XX_XX_XX_XX_EB_3C 0000111e-0000-1000-8000-00805f9b34fb, client :1.18
Oct 17 14:31:00 localhost bluetoothd[6459]: src/device.c:device_profile_connected() Hands-Free Audio Gateway Host is down (112)
Oct 17 14:31:00 localhost bluetoothd[6459]: src/device.c:connect_profiles() /org/bluez/hci0/dev_XX_XX_XX_XX_EB_3C 0000110b-0000-1000-8000-00805f9b34fb, client :1.18
Oct 17 14:31:01 localhost bluetoothd[6459]: src/device.c:device_profile_connected() a2dp-sink Resource temporarily unavailable (11)

// Second connect
Oct 17 14:32:10 localhost bluetoothd[6459]: src/device.c:connect_profiles() /org/bluez/hci0/dev_XX_XX_XX_XX_EB_3C 0000111e-0000-1000-8000-00805f9b34fb, client :1.18
10-17 14:32:10.327+0900 E/BLUETOOTH_FRWK_SERVICE(P 2694, T 2694): bt-service-audio.c: __bt_audio_request_cb(781) > Audio Connect/Disconnect Dbus Call Error: GDBus.Error:org.bluez.Error.InProgress: In Progress

Change-Id: I8caa4f43f51a7b302b5afc8a5028a22776d97cf5
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoFix weak point of scan filter logic 06/216206/1
Deokhyun Kim [Tue, 22 Oct 2019 08:29:20 +0000 (17:29 +0900)]
Fix weak point of scan filter logic

Change-Id: I02138cc41598cef11544ea7edf9c8d0230074a8f
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoFix : LE connection interval is not updated 35/216135/1
injun.yang [Mon, 21 Oct 2019 08:50:20 +0000 (17:50 +0900)]
Fix : LE connection interval is not updated

[Problem] If remote device use LE public address, unable to update LE connection interval
[Cause & Measure] Change the comparison logic to get object
[Checking Method] Connect BLE with LE public address > Repeat interval configuration

Change-Id: I2413e0f0c36918daba91bfb465d549c0e39532a9

4 years agoFix : LE connection interval is not updated 76/215876/1
injun.yang [Thu, 17 Oct 2019 05:23:40 +0000 (14:23 +0900)]
Fix : LE connection interval is not updated

[Problem] Unable to update LE connection interval with iPhone
[Cause & Measure] When LE connection updated callback invoked,
 bluez handle it as IDA object instead of first RPA object.
 so change the comparison logic to get RPA object
[Checking Method] Both BLE and BREDR connectd with iPhone > Repeat interval configuration

Change-Id: I87578681fc35041801e28a251a914e9bb52ff49d

4 years agoGATT Server : Handle response_needed by write request & command 61/215761/2
Deokhyun Kim [Tue, 15 Oct 2019 11:23:34 +0000 (20:23 +0900)]
GATT Server : Handle response_needed by write request & command

Change-Id: I962b9a512d9114e80ca9b5c39d62f4d76e22fce4
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoMerge "Use the systemd service for obexd" into tizen accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.004956 accepted/tizen/5.5/unified/mobile/hotfix/20201027.061849 accepted/tizen/unified/20190924.062104 submit/tizen/20190923.085748 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 tizen_5.5.m2_release
Pyun DoHyun [Mon, 23 Sep 2019 08:53:52 +0000 (08:53 +0000)]
Merge "Use the systemd service for obexd" into tizen

4 years agoFix NULL pointer dereferencing issue 86/214486/1
Wootak Jung [Mon, 23 Sep 2019 08:32:09 +0000 (17:32 +0900)]
Fix NULL pointer dereferencing issue

Change-Id: I42db1cb8239519c6d796a0e83bd08c0aca5498ad

4 years agoUse the systemd service for obexd 13/214413/2
DoHyun Pyun [Mon, 23 Sep 2019 02:34:23 +0000 (11:34 +0900)]
Use the systemd service for obexd

Change-Id: I988e2e18cb168b35b5e462e0f3d80e060abd8e5b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoEnable HID device feature 52/213952/1 accepted/tizen/unified/20190918.010302 submit/tizen/20190916.233704
DoHyun Pyun [Tue, 17 Sep 2019 03:51:08 +0000 (12:51 +0900)]
Enable HID device feature

Change-Id: I5f469bb0395709eba5e730304f7fdfaa0c38d8a3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoEmit signal for MTU changed event 53/213853/1
injun.yang [Mon, 1 Jul 2019 08:02:56 +0000 (17:02 +0900)]
Emit signal for MTU changed event

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] Unable to notice MTU changed event to application
[Cause & Measure] Send signal to detect MTU changed event on GATT server
[Checking Method] n/a

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Ic9446ee005211a6805a7e62791c03b410d3ff0a1
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoRestart vsc advertising after 300 ms 62/213762/1
injun.yang [Wed, 11 Sep 2019 06:02:55 +0000 (15:02 +0900)]
Restart vsc advertising after 300 ms

Change-Id: I4399f413a771a23235564d94568c92026a08b709
Signed-off-by: injun.yang <injun.yang@samsung.com>
4 years agoWhen hci event missed, send tx timeout error 77/213677/1
injun.yang [Tue, 10 Sep 2019 05:54:56 +0000 (14:54 +0900)]
When hci event missed, send tx timeout error

Change-Id: I84a677862e82aac4ad280db740d0e535b170870b
Signed-off-by: injun.yang <injun.yang@samsung.com>
4 years agoAdd adapter_send_event function 78/213278/1 accepted/tizen/unified/20190904.110702 submit/tizen/20190903.224849
Wootak Jung [Wed, 4 Sep 2019 00:26:32 +0000 (09:26 +0900)]
Add adapter_send_event function

Change-Id: If0f8c4c1e605fe415b141efeba2485d6c52efc6a

4 years agoMerge "Recover adapter when 'hci command disallowed' is responded" into tizen
Pyun DoHyun [Tue, 3 Sep 2019 04:58:51 +0000 (04:58 +0000)]
Merge "Recover adapter when 'hci command disallowed' is responded" into tizen

4 years agoRecover adapter when 'hci command disallowed' is responded 22/213222/1
Deokhyun Kim [Tue, 3 Sep 2019 04:26:58 +0000 (13:26 +0900)]
Recover adapter when 'hci command disallowed' is responded

vsc adv status of controller is abnormal while le connection & disconnection
are repeated. Recover adapter when 'hci command disallowed' is responded.

Change-Id: I1d39f3160784799ff2d7af7ded8c9ea8b7f8c579
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoUse LE pairing for the headless plugin 09/213209/1
DoHyun Pyun [Tue, 3 Sep 2019 01:39:46 +0000 (10:39 +0900)]
Use LE pairing for the headless plugin

Change-Id: Iec41908ba265bbc5eafa8b82128d4d00f63e95e6
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoNot set le_static_addr when initializing 87/212787/1 accepted/tizen/unified/20190827.110641 submit/tizen/20190827.022419
Deokhyun Kim [Tue, 27 Aug 2019 01:46:36 +0000 (10:46 +0900)]
Not set le_static_addr when initializing

Change-Id: Iebd1a33c9ffb28635336018b71cd817b2ca166d5
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoRemove OS upgrade script 98/212498/1
DoHyun Pyun [Thu, 22 Aug 2019 06:50:27 +0000 (15:50 +0900)]
Remove OS upgrade script

Since Tizen 4.0 there is no change for the file properties.
So we don't need to use the upgrade script for bluez.

Change-Id: I18b1b66a730fcbcfecfd51ade2e47de3baaefd09
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoInit le static address when adapter is enabled 37/212437/1 accepted/tizen/unified/20190822.105955 submit/tizen/20190822.022402
Deokhyun Kim [Wed, 21 Aug 2019 11:04:10 +0000 (20:04 +0900)]
Init le static address when adapter is enabled

Change-Id: I19d079c6128535c1cfc637017a1e7048e82d04a7
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoImplement interface to set advertise Tx power level 78/211078/1 accepted/tizen/unified/20190801.025409 submit/tizen/20190730.223540
injun.yang [Tue, 23 Oct 2018 00:51:21 +0000 (09:51 +0900)]
Implement interface to set advertise Tx power level

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] n/a
[Cause & Measure] Application will set advertise Tx power level
[Checking Method] n/a

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I8dfa4b9aa94a9f0a3e7bc71a3cf2afa48cf77095
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoApply avrcp ct connect timeout to 8 sec only for Bose speaker 58/210958/1 accepted/tizen/unified/20190729.081028 submit/tizen/20190729.004732
Deokhyun Kim [Fri, 26 Jul 2019 09:03:00 +0000 (18:03 +0900)]
Apply avrcp ct connect timeout to 8 sec only for Bose speaker

  - Race condition occurs when requesting L2CAP AVRCP connection
  Sometimes AVRCP connection request by Bose is delayed. It can conflict
  Apply avrcp ct connect timeout to 8 sec only for Bose speaker

Change-Id: Ib8ca44f61aae47b9c58af38999c6ce2959f3c6e7
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoFix the build error 11/210411/1 accepted/tizen/unified/20190719.111747 submit/tizen/20190719.013144
DoHyun Pyun [Fri, 19 Jul 2019 01:49:33 +0000 (10:49 +0900)]
Fix the build error

Change-Id: I7de706de85961109013e5e8cfa7abcea6545b22e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoRestrict AVRCP in case A2DP is restricted 61/210361/1
Deokhyun Kim [Thu, 18 Jul 2019 08:33:02 +0000 (17:33 +0900)]
Restrict AVRCP in case A2DP is restricted

Change-Id: I39b1d0a7aebd156c23264d175a7500e1879c545c
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoDelete meaningless configuration 03/209503/1 accepted/tizen/unified/20190715.111841 submit/tizen/20190714.235650
INSUN PYO [Mon, 8 Jul 2019 10:35:01 +0000 (19:35 +0900)]
Delete meaningless configuration

Change-Id: I4c0756152fb27edcc69bacb272cfb407b9df53c5

5 years agoRemove unused features 63/209063/1 accepted/tizen/unified/20190703.110630 submit/tizen/20190702.052010
INSUN PYO [Tue, 2 Jul 2019 05:05:40 +0000 (14:05 +0900)]
Remove unused features

Change-Id: I1e467e6e4f6cde139d5d057fd0c9da733f72ff15

5 years agoRemove unnecessary setting 07/209007/1
INSUN PYO [Tue, 2 Jul 2019 01:34:48 +0000 (10:34 +0900)]
Remove unnecessary setting

Change-Id: I49d3c7fbd7be2d455451614cf1debd1e3c23e6c7

5 years agoCancel BLE connection attempt currently in progress 05/207605/1 accepted/tizen/unified/20190611.050054 submit/tizen/20190610.063128
injun.yang [Mon, 27 May 2019 06:21:42 +0000 (15:21 +0900)]
Cancel BLE connection attempt currently in progress

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] Unable to abort BLE connection attempt
[Cause & Measure] Abort connection attempt and send "Cancelled" event to upper side
[Checking Method] Cancel BLE connection attempt

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I8eb1edfa33a12a39ba6abc5f3838fc73e987d0ca
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix : Bonding complete event is sent twice. 04/207604/1
injun.yang [Tue, 7 May 2019 04:32:44 +0000 (13:32 +0900)]
Fix : Bonding complete event is sent twice.

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] When DUT request LE pairing, bonding complete event generated twice.
[Cause & Measure] "Paired" signal emmited twice. Just send one signal
[Checking Method] Request LE pairing

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

* bluetooth-frwk changes required
a29ceb772571647ec4c4b30c85f1abb034b84fed

Change-Id: I8cfa84f1d5c2ccbdbfac633cc5ab3d7e33994690
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix the malfunction of bonding 03/207603/1
injun.yang [Mon, 1 Apr 2019 00:27:05 +0000 (09:27 +0900)]
Fix the malfunction of bonding

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] When app request bt_device_create_bond(), host initiate BT pairing instead of BLE pairing
[Cause & Measure] Till now, bluez didn't check the link status.
 Even though BLE connected, bluez initiate BT pairing.
 To prevent the malfunction, bluez will check the link type also.
[Checking Method] Initiate pairing

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I5dbcc0a827ccc566b15490d3f1edc31acbac949c
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdjust A2DP priority for the speaker reference board 90/206590/1 accepted/tizen/unified/20190522.085452 submit/tizen/20190522.020119
DoHyun Pyun [Wed, 22 May 2019 01:59:05 +0000 (10:59 +0900)]
Adjust A2DP priority for the speaker reference board

Change-Id: Ic059c524efd46a71267aa1b426a8327bfcb89f58
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMerge commit 'refs/changes/82/205082/1' of ssh://review.tizen.org:29418/platform...
DoHyun Pyun [Mon, 29 Apr 2019 08:30:41 +0000 (17:30 +0900)]
Merge commit 'refs/changes/82/205082/1' of ssh://review.tizen.org:29418/platform/upstream/bluez into tizen

5 years agoUpgraded to bluez 5.50 82/205082/1
Amit Purwar [Fri, 26 Apr 2019 09:30:56 +0000 (15:00 +0530)]
Upgraded to bluez 5.50

Change-Id: I1b0a84b5993d03dd0a0e4ee16780d11130e49ea2
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoRelease 5.50 81/205081/1
Marcel Holtmann [Fri, 1 Jun 2018 08:36:21 +0000 (10:36 +0200)]
Release 5.50

Change-Id: I8c6454a39eb245de82eab22e53f569bc7f0836b2
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoFixed bluetoothd crash due to illegal access of request 80/205080/1
Amit Purwar [Fri, 26 Apr 2019 09:25:32 +0000 (14:55 +0530)]
Fixed bluetoothd crash due to illegal access of request

Change-Id: I687ae73b0faa0f1e366e72649b9a9ace5d059ad5
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agobuild: Fix issues with building dist packages 79/205079/1
Marcel Holtmann [Tue, 29 May 2018 13:32:09 +0000 (15:32 +0200)]
build: Fix issues with building dist packages

Change-Id: If61b288ffb2d12cd5c1ecb78f9a0d3a7f2045403
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoshared/btp: Change struct member order for device found as in btp 78/205078/1
Grzegorz Kolodziejczyk [Mon, 12 Feb 2018 16:01:00 +0000 (17:01 +0100)]
shared/btp: Change struct member order for device found as in btp

This patch changes member order in device found struct definition to be
compatible with btp specification.

Change-Id: I28980953fe19362254b71a42b0ec2720eeca596e
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agomgmt-tester: Add testcases for advertising while connected 77/205077/1
Łukasz Rymanowski [Mon, 12 Feb 2018 09:31:38 +0000 (10:31 +0100)]
mgmt-tester: Add testcases for advertising while connected

This patch adds testcases which verifies if Linux Kernel properly
enables advertising while is connected (LE) based on supported LE states
in the controller

Change-Id: I42e1def19ee1fcc63b621c35a1fe1ddc57431489
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agomgmt-tester: Add test_le_full 76/205076/1
Łukasz Rymanowski [Fri, 9 Feb 2018 17:26:26 +0000 (18:26 +0100)]
mgmt-tester: Add test_le_full

Change-Id: I4e36ff7f19572ede07a479929e293711c9c1989b
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotester: Enable LE Generate DHKey Complete event 75/205075/1
Tedd Ho Jeong An [Tue, 6 Feb 2018 21:03:57 +0000 (13:03 -0800)]
tester: Enable LE Generate DHKey Complete event

This patch adds LE Generate DHKey Complete event for
LE Event Mask list for 'LE Generate DHKey'.

Change-Id: Ic64ec00ef582f1d145d46eba2441e5fdb014a62d
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotester: Set event mask for LE Read Local P-256 PK Complete event 74/205074/1
Tedd Ho Jeong An [Tue, 6 Feb 2018 21:03:56 +0000 (13:03 -0800)]
tester: Set event mask for LE Read Local P-256 PK Complete event

LE Read Local P-256 PK command fails because LE Read Local P-256 PK
Complete event and LE Meta event are disabled by default.
This patch sets event masks for LE Read Local P-256 PK Complete and
LE Meta Event to receive the events for 'LE Read Local PK' test and
'LE Generate DHKey' test.

Change-Id: Ie778a43784d3a91226d9c262cedd4a300abd87cb
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoshared/btp: Use bdaddr_t for storing address 73/205073/1
Szymon Janc [Tue, 16 Jan 2018 14:02:38 +0000 (15:02 +0100)]
shared/btp: Use bdaddr_t for storing address

This is more convenient as it allows to use common helpers for address
comparison and convertion.

Change-Id: Ib94401a115f9fae11f21f7f355737489ef4ba89b
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/gatt-service: Add reference implementation for Included Service 72/205072/1
Avichal Agarwal [Tue, 20 Mar 2018 12:53:13 +0000 (18:23 +0530)]
tools/gatt-service: Add reference implementation for Included Service

Created two new primary services which will act as includes services for
first  primary service

Change-Id: Id60e1b2c240936d1186cf13b1366a7e79eec64dc
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/hcitool: Change connection handle condition for lecup 71/205071/1
Grzegorz Kolodziejczyk [Thu, 26 Apr 2018 12:31:57 +0000 (14:31 +0200)]
tools/hcitool: Change connection handle condition for lecup

According to BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E
7.8.18 LE Connection Update Command, connection handle range is
0x0000-0x0EFF.

Change-Id: Icbb99c777c15057a478416b0f360e9da54d57507
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools: Add initial code for btmon-logger 70/205070/1
Szymon Janc [Fri, 19 Jan 2018 15:23:20 +0000 (16:23 +0100)]
tools: Add initial code for btmon-logger

This is intended for use for automated logging or unatrended systems.
It doesn't contain any packet decoding functionality which results
in much smaller binary.

Change-Id: If61c91abab4b1ef40b276e76acc764ca28e40deb
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btmgmt: Return exit status for non-interactive 69/205069/1
ERAMOTO Masaya [Mon, 26 Mar 2018 08:31:11 +0000 (17:31 +0900)]
tools/btmgmt: Return exit status for non-interactive

Change-Id: If5aa34edd47a6405e5519bebc49a4d6814f3dfef
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/obexctl: Return exit status for non-interactive 68/205068/1
ERAMOTO Masaya [Mon, 26 Mar 2018 08:31:06 +0000 (17:31 +0900)]
tools/obexctl: Return exit status for non-interactive

Change-Id: I7fa21cfaec1ce08bcac732cfd37fe9a9a368be78
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/bluetooth-player: Add item-generator for change-folder 67/205067/1
ERAMOTO Masaya [Mon, 12 Mar 2018 01:56:45 +0000 (10:56 +0900)]
tools/bluetooth-player: Add item-generator for change-folder

Change-Id: I4b0deaefa0104224a64f840319571d4cbf158302
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/bluetooth-player: Merge cmd_play{,_item}() 66/205066/1
ERAMOTO Masaya [Mon, 12 Mar 2018 01:56:12 +0000 (10:56 +0900)]
tools/bluetooth-player: Merge cmd_play{,_item}()

Change-Id: I016145a369bcfb3261c5d6beb30b69edbbdeb025
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Add connect device command 65/205065/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:29 +0000 (13:41 +0100)]
tools/btpclient: Add connect device command

This patch adds support for connect device command.

Change-Id: I4249a3839ea0141a10ceba35cecc5ca621b2bc97
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Add identity resolve event 64/205064/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:28 +0000 (13:41 +0100)]
tools/btpclient: Add identity resolve event

This patch adds identity resolve event handler.

Change-Id: Ib878399c46a3df3297729da76b0c92503b675472
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Add solicit uuid16 service list support for ad 63/205063/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:27 +0000 (13:41 +0100)]
tools/btpclient: Add solicit uuid16 service list support for ad

This patch adds support to get/set solicit uuid16 service list in
advertising data.

Change-Id: I6088d8b4c1a1d0e926e9ade45715662dde0823b8
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Check if dev is connected in device found ev routine 62/205062/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:26 +0000 (13:41 +0100)]
tools/btpclient: Check if dev is connected in device found ev routine

Device may be connected while device found event is generated thus thus
btp should generate additional device connected event also.

Change-Id: Ifda6532b03755d24a2392e8d97d55a1a2a8358fa
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Add passkey confirm event 61/205061/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:25 +0000 (13:41 +0100)]
tools/btpclient: Add passkey confirm event

This patch adds support for send passkey confirm event when requested.

Change-Id: I80af547ed278e711c5fc2040ede0a0fd13bc18bf
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Add btp disconnect handler 60/205060/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:24 +0000 (13:41 +0100)]
tools/btpclient: Add btp disconnect handler

This patch adds btp disconnect handler to btp client.

Change-Id: I2f37e2914be2411c128bb6f86a50b04cfcac2ee5
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Remove btp unsupported auth request call 59/205059/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:23 +0000 (13:41 +0100)]
tools/btpclient: Remove btp unsupported auth request call

BTP don't support authorization request event.

Change-Id: I81bfbd0b03871a4802067fcc15b80dec6e282dbf
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Add support for including tx-power to ad 58/205058/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:22 +0000 (13:41 +0100)]
tools/btpclient: Add support for including tx-power to ad

This patch allows to set tx-power in advertising data.

Change-Id: I6d49f5e6dc4899d2700970015d62c1f79bc7ca2a
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/btpclient: Fix setting supported includes includes 57/205057/1
Grzegorz Kolodziejczyk [Wed, 28 Feb 2018 12:41:21 +0000 (13:41 +0100)]
tools/btpclient: Fix setting supported includes includes

Included values should be string type instead of address of pointer to
string.

Change-Id: I011aa654ada3e2c7efed79ca6b757cf9a5c831ef
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agotools/bluetooth-player: Fix lines going beyond 80 columns 56/205056/1
Luiz Augusto von Dentz [Thu, 1 Mar 2018 10:25:20 +0000 (12:25 +0200)]
tools/bluetooth-player: Fix lines going beyond 80 columns

Change-Id: I1e3d33673f93425666ececff44c88949bffa8292
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>