platform/core/connectivity/bluetooth-frwk.git
4 years agoReplace the deprecatd soup API 08/220608/1 accepted/tizen/unified/20191224.131912 submit/tizen/20191218.041916
DoHyun Pyun [Fri, 20 Dec 2019 03:36:48 +0000 (12:36 +0900)]
Replace the deprecatd soup API

Change-Id: I30c578946ac74a60e1cf5b1d4f9390f1b03ec5ab
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix the bug for LE scan filtering" into tizen
Pyun DoHyun [Thu, 19 Dec 2019 01:47:22 +0000 (01:47 +0000)]
Merge "Fix the bug for LE scan filtering" into tizen

4 years agoFix the bug for LE scan filtering 85/220485/1
DoHyun Pyun [Wed, 18 Dec 2019 22:56:41 +0000 (07:56 +0900)]
Fix the bug for LE scan filtering

Change-Id: Iddbf7b088391884cdeff9493f2811ef22d21bfee
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Adapt the set advertising filter policy in BT-HAL framework." into tizen
Pyun DoHyun [Wed, 18 Dec 2019 22:51:15 +0000 (22:51 +0000)]
Merge "Adapt the set advertising filter policy in BT-HAL framework." into tizen

4 years agoAdapt the set advertising filter policy in BT-HAL framework. 52/220252/2
himanshu [Mon, 16 Dec 2019 11:34:27 +0000 (17:04 +0530)]
Adapt the set advertising filter policy in BT-HAL framework.

Change-Id: I9b05b7e5edec45992e0039843c7bdafb827572bd
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoAdd the check logic for the client connection 93/219993/7
DoHyun Pyun [Thu, 12 Dec 2019 07:57:33 +0000 (16:57 +0900)]
Add the check logic for the client connection

Change-Id: Ib5badd216863f93a0776aedcd7b645e3ee9096e9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdapt the Recover Adapter functionality into BT-HAL framework. 23/219823/3 accepted/tizen/unified/20191212.123639 submit/tizen/20191212.003715 submit/tizen_5.5/20191212.000107
himanshu [Mon, 9 Dec 2019 04:52:44 +0000 (10:22 +0530)]
Adapt the Recover Adapter functionality into BT-HAL framework.

Change-Id: I1e1e66660af67c0d02fbbba3841d41c5add0a960
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoHandle the pending dbus calls before termination 46/219646/5 accepted/tizen/unified/20191211.121108 submit/tizen/20191211.023729
DoHyun Pyun [Mon, 9 Dec 2019 04:07:35 +0000 (13:07 +0900)]
Handle the pending dbus calls before termination

Change-Id: I2a10aeb9a344d8c935ece42ab9ada5f876db9808
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoCalls sd_notify(STOPPING=1) to ensure systemd's operation 80/219180/2
DoHyun Pyun [Tue, 3 Dec 2019 01:47:19 +0000 (10:47 +0900)]
Calls sd_notify(STOPPING=1) to ensure systemd's operation

Change-Id: Ifdea8bd44796f7581c783c97243f9aa03046ca8f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoPending enable method if the stack is not intialized 78/219178/2
DoHyun Pyun [Tue, 3 Dec 2019 01:37:28 +0000 (10:37 +0900)]
Pending enable method if the stack is not intialized

Change-Id: I7e5e63e1ef39a0f72569fa499dfcd19b9b59144f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdjust the event generation timing for BT enabled / disabled 70/219170/3
DoHyun Pyun [Tue, 3 Dec 2019 00:38:38 +0000 (09:38 +0900)]
Adjust the event generation timing for BT enabled / disabled

Change-Id: Ib5d00e5d787e9417e6bc9df07f642f9faf5d86a5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the status check logic for BT enable / disable method 67/219167/2
DoHyun Pyun [Tue, 3 Dec 2019 00:31:03 +0000 (09:31 +0900)]
Add the status check logic for BT enable / disable method

Change-Id: I403f689924135cd8097dd31d51a42f14836022e1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoGenerate BT disable HAL event when bluez is terminated 66/219166/4
DoHyun Pyun [Tue, 3 Dec 2019 00:10:46 +0000 (09:10 +0900)]
Generate BT disable HAL event when bluez is terminated

If tizen don't use BT USB type's dongle, bluez should
be terminated during BT off. To reduce the timing issue,
postpone BT disable HAL event.

Change-Id: I330796316a4ebfcc3fb297c6eef3be0ed3c85836
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoRevert BT enable / disable calling method to async call 65/219165/3
DoHyun Pyun [Mon, 2 Dec 2019 23:58:08 +0000 (08:58 +0900)]
Revert BT enable / disable calling method to async call

Change-Id: Ic02325a4ab5755c2be4bfac5beffdf85b0cfcd0e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoRemove the booting sequence for bluetooth-frwk-core.service 64/219164/3
DoHyun Pyun [Mon, 2 Dec 2019 23:50:54 +0000 (08:50 +0900)]
Remove the booting sequence for bluetooth-frwk-core.service

Change-Id: I9a1dd084971afed35863676d0288af758c0364f2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix LE status mismatching issue 21/219021/1
DoHyun Pyun [Mon, 2 Dec 2019 01:35:58 +0000 (10:35 +0900)]
Fix LE status mismatching issue

Change-Id: Ic0e904ae968c75de99f55d7979c334da9d8bef79
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the issue to disable BT in the booting time 20/218920/2
DoHyun Pyun [Fri, 29 Nov 2019 05:15:05 +0000 (14:15 +0900)]
Fix the issue to disable BT in the booting time

Change-Id: Id576d770e3569d5fe655b5982a54a3be8a38d16f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoModify the initial value for A2DP pending init 68/218868/2
DoHyun Pyun [Fri, 29 Nov 2019 03:45:11 +0000 (12:45 +0900)]
Modify the initial value for A2DP pending init

Change-Id: Ia367562372822d065e124062183f10412e94991b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoModify the initialization logic for A2DP role 47/218747/3 accepted/tizen/unified/20191128.161921 submit/tizen/20191128.024748
DoHyun Pyun [Wed, 27 Nov 2019 22:22:28 +0000 (07:22 +0900)]
Modify the initialization logic for A2DP role

Change-Id: Id03706dc12aa3f14ac6966fcf54db40f40309cba
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Adapt the device update connection mode functionality into BT-HAL framework...
Anupam Roy [Wed, 27 Nov 2019 09:48:47 +0000 (09:48 +0000)]
Merge "Adapt the device update connection mode functionality into BT-HAL framework." into tizen

4 years agoRemove executing bluetooth-stak-up.service before bluez-start 47/218647/1 accepted/tizen/unified/20191128.001536 submit/tizen/20191127.050440
Wootak Jung [Wed, 13 Nov 2019 01:28:02 +0000 (10:28 +0900)]
Remove executing bluetooth-stak-up.service before bluez-start

Requires=bluetooth-stack-up.servie will be added in
bluez-start.service because there is a timing issue
between stack-up.service and bluez-start.service
although executing stack-up.service logic is located
before bluez-start.service.

Change-Id: I1243d5e63be86b353b15e292e8341f20008409e4
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdapt the device update connection mode functionality into BT-HAL framework. 70/218570/2
himanshu [Mon, 25 Nov 2019 12:06:30 +0000 (17:36 +0530)]
Adapt the device update connection mode functionality into BT-HAL framework.

Change-Id: Ib0c6acd26aa11ab5aa4178610c374c2079231982
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoMerge "Implement scan filter enable/disable logic" into tizen
Pyun DoHyun [Tue, 26 Nov 2019 00:19:21 +0000 (00:19 +0000)]
Merge "Implement scan filter enable/disable logic" into tizen

4 years agoMerge "Add time member to app info structure for battery monitor plugin" into tizen
Pyun DoHyun [Tue, 26 Nov 2019 00:18:38 +0000 (00:18 +0000)]
Merge "Add time member to app info structure for battery monitor plugin" into tizen

4 years agoImplement scan filter enable/disable logic 57/218257/8
Wootak Jung [Thu, 21 Nov 2019 01:51:56 +0000 (10:51 +0900)]
Implement scan filter enable/disable logic

Implement adv report filtering logic

Change-Id: I18737f722c555a59dd7b31dd8c78926ba8ddf4d4

4 years agoMerge "Add the exception case for audio initialize" into tizen
Pyun DoHyun [Thu, 21 Nov 2019 08:27:22 +0000 (08:27 +0000)]
Merge "Add the exception case for audio initialize" into tizen

4 years agoAdd time member to app info structure for battery monitor plugin 09/218309/1
Sudipto Bal [Thu, 21 Nov 2019 07:44:12 +0000 (16:44 +0900)]
Add time member to app info structure for battery monitor plugin

Change-Id: If3af67cc2c4a779fe8a70003c15bb6aa0fbf290a
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
4 years agoRemove unnecessary header file inclusion 61/218261/1
Wootak Jung [Thu, 21 Nov 2019 02:09:58 +0000 (11:09 +0900)]
Remove unnecessary header file inclusion

Update boilerplate

Change-Id: I8977dce78f2b925738793156d1b02a6502d2702b

4 years agoMerge "Implement HID Device role event handling logic" into tizen
Pyun DoHyun [Thu, 21 Nov 2019 01:56:17 +0000 (01:56 +0000)]
Merge "Implement HID Device role event handling logic" into tizen

4 years agoAdd the exception case for audio initialize 56/218256/1
DoHyun Pyun [Thu, 21 Nov 2019 01:56:05 +0000 (10:56 +0900)]
Add the exception case for audio initialize

In case of 'AlreadyExist' error from bluez, BT FRWK should
enable the audio stack

Change-Id: Ia3394b21f057478b73a95603d63207669aed64bd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoRemove unnecessary logs for event 51/218251/1
DoHyun Pyun [Thu, 21 Nov 2019 00:38:05 +0000 (09:38 +0900)]
Remove unnecessary logs for event

Change-Id: Id32e9a2791a0acde35bdf5175a7c7f86159f5c81
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoImplement HID Device role event handling logic 37/218137/2
Wootak Jung [Wed, 20 Nov 2019 01:22:36 +0000 (10:22 +0900)]
Implement HID Device role event handling logic

Change-Id: Ic95a8655b86db1f82e4495a5f6aea9963e614865

4 years agoMerge "Apply auth check logic for hid device" into tizen accepted/tizen/unified/20191121.154834 submit/tizen/20191120.081904
Pyun DoHyun [Tue, 19 Nov 2019 23:28:22 +0000 (23:28 +0000)]
Merge "Apply auth check logic for hid device" into tizen

4 years agoResolve vconf type mismatch issue 74/218074/1
Sudipto Bal [Tue, 19 Nov 2019 07:30:10 +0000 (16:30 +0900)]
Resolve vconf type mismatch issue

Change-Id: I981f04ffc3cba97fd80bc10e6ae40c57c615f1f7
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
4 years agoApply auth check logic for hid device 00/218000/1
Deokhyun Kim [Mon, 18 Nov 2019 10:47:35 +0000 (19:47 +0900)]
Apply auth check logic for hid device

Change-Id: I64d54609f50a6528f7af65b2f22379bbba753efa
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoImplement bluetooth_rfcomm_listen() function 53/217753/6
Wootak Jung [Thu, 14 Nov 2019 05:03:21 +0000 (14:03 +0900)]
Implement bluetooth_rfcomm_listen() function

If user listens to rfcomm server by bluetooth_rfcomm_listen(),
connection requested callback should be occured not popup
when rfcomm connection request is come from client.

Change-Id: I688171b31c853e2761074f757f6a21fad1f7bcbd

4 years agoMerge "Scan filter refactoring" into tizen
Pyun DoHyun [Mon, 18 Nov 2019 00:49:53 +0000 (00:49 +0000)]
Merge "Scan filter refactoring" into tizen

4 years agoFix coverity issues - Resource leaks 33/217933/1 accepted/tizen/unified/20191118.122930 submit/tizen/20191118.005441
DoHyun Pyun [Mon, 18 Nov 2019 00:41:18 +0000 (09:41 +0900)]
Fix coverity issues - Resource leaks

Change-Id: I62bdabd1cf208c3f7291f94eddc029d332235f42
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoScan filter refactoring 94/217794/2
Deokhyun Kim [Thu, 14 Nov 2019 08:17:55 +0000 (17:17 +0900)]
Scan filter refactoring

Change-Id: I8bf48e8945811eb09147c547c15b87fe6fdf7bf2
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoResolve the LE advertising fail after slot exhaustion 20/217820/1
Amit Purwar [Thu, 14 Nov 2019 11:39:39 +0000 (17:09 +0530)]
Resolve the LE advertising fail after slot exhaustion

Change-Id: Iebd4249b8ee1d7fe1db48c84e479058de83b192f
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoSet le scan status to false when scan is stopped by framework 27/217527/1
Deokhyun Kim [Tue, 12 Nov 2019 07:38:51 +0000 (16:38 +0900)]
Set le scan status to false when scan is stopped by framework

Change-Id: Ib03d8e67638c4903243da3747cbe943da52c08eb
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoMerge "Check NULL condition" into tizen accepted/tizen/unified/20191112.125153 submit/tizen/20191112.045846
Anupam Roy [Mon, 4 Nov 2019 08:25:19 +0000 (08:25 +0000)]
Merge "Check NULL condition" into tizen

4 years agoCheck NULL condition 93/216393/2
Sudipto [Thu, 24 Oct 2019 09:28:25 +0000 (14:58 +0530)]
Check NULL condition

Free memory of a previously declared variable if
g_array_new returns NULL

Change-Id: I373ef9d1641262ef4fd5f18170b6171efbbc72fb
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoImplemented the is scan filter supported API 54/216754/2
himanshu [Thu, 31 Oct 2019 12:47:14 +0000 (18:17 +0530)]
Implemented the is scan filter supported API

This API is used to get the information whether the
scan filter feature is supported or not.

Change-Id: Ife02b2e1c79548fa92de6f185d68007e66e6dcbd
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoRelease resources for the notify file destriptor properly 59/216659/3 accepted/tizen/unified/20191101.042113 submit/tizen/20191031.005137
DoHyun Pyun [Wed, 30 Oct 2019 06:43:35 +0000 (15:43 +0900)]
Release resources for the notify file destriptor properly

If we close the fd only, io channel and watcher resource is
not released. So it occurs critical problems with next logs.

ecore<4672> ../src/lib/ecore/ecore_main.c:2083 _ecore_main_fd_handlers_bads_rem() Removing bad fds
ecore<4672> ../src/lib/ecore/ecore_main.c:2130 _ecore_main_fd_handlers_bads_rem() No bad fd found. Maybe a foreign fd from glib?

Change-Id: I683aa747018ff6139d31b48207b568da4dab8cae
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix le scan start/stop timing issue 49/216449/4
Wootak Jung [Fri, 25 Oct 2019 04:25:25 +0000 (13:25 +0900)]
Fix le scan start/stop timing issue

le scan functionaly is blocked in case stop request is come
right after start request is come.

le scan started/stopped events depend on LEDiscovering

Change-Id: I2531b426b72112c2aa1e21cae897a4b6f75d5343

4 years agoAdapt the scan filter register functionality into BT-HAL framework 34/215934/4
himanshu [Thu, 17 Oct 2019 12:53:51 +0000 (18:23 +0530)]
Adapt the scan filter register functionality into BT-HAL framework

This API registers a scan filter to use for scanning.

Change-Id: Icfa4bf8a87fde8668cc8e5c26689a2c3c29cbce7
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoMerge "Fix LE discovering finished event not invoked issue" into tizen
Anupam Roy [Thu, 24 Oct 2019 09:22:46 +0000 (09:22 +0000)]
Merge "Fix LE discovering finished event not invoked issue" into tizen

4 years agoMerge "Fix ASAN issue multiple definition of variable" into tizen
Anupam Roy [Thu, 24 Oct 2019 09:12:29 +0000 (09:12 +0000)]
Merge "Fix ASAN issue multiple definition of variable" into tizen

4 years agoMerge "Adapt unregister all scan filters functionality into BT-HAL framework" into...
Anupam Roy [Thu, 24 Oct 2019 09:01:22 +0000 (09:01 +0000)]
Merge "Adapt unregister all scan filters functionality into BT-HAL framework" into tizen

4 years agoMerge "Provide callback support to battery monitor frwk when BT is disabled" into...
Anupam Roy [Thu, 24 Oct 2019 08:40:51 +0000 (08:40 +0000)]
Merge "Provide callback support to battery monitor frwk when BT is disabled" into tizen

4 years agoAdapt unregister all scan filters functionality into BT-HAL framework 82/216382/2
himanshu [Thu, 24 Oct 2019 05:52:33 +0000 (11:22 +0530)]
Adapt unregister all scan filters functionality into BT-HAL framework

This API unregisters all registered scan filters.

Change-Id: I1d68b123a89469ff37e78fc0b33e466b0ff2791a
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix ASAN issue multiple definition of variable 85/216385/1
Sudipto [Thu, 24 Oct 2019 07:44:59 +0000 (13:14 +0530)]
Fix ASAN issue multiple definition of variable

The variable is_battery_monitor_enabled is no
longer required as the status of battery monitor
is now being stored in vconf

Change-Id: I77de898abb1cac6e2dfb8644f02be4adf40d97ff
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoProvide callback support to battery monitor frwk when BT is disabled 17/216117/4
Sudipto [Mon, 21 Oct 2019 07:03:29 +0000 (12:33 +0530)]
Provide callback support to battery monitor frwk when BT is disabled

Change-Id: Ic7d9433a8be4475c339150685f6c045c0070ea69
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoFix LE discovering finished event not invoked issue 60/216360/2
Wootak Jung [Thu, 24 Oct 2019 01:51:20 +0000 (10:51 +0900)]
Fix LE discovering finished event not invoked issue

Change-Id: Ia6e24b24b3e54d41c615ff40cc8e199d4f678be0

4 years ago[cmake] Explicitly specify target dependencies to allow build in parallel 45/216345/1
Mikhail Kashkarov [Wed, 23 Oct 2019 16:07:55 +0000 (19:07 +0300)]
[cmake] Explicitly specify target dependencies to allow build in parallel

Change-Id: Ic53fb6c0ac0b53530fb463a9d1620fab85e55877
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
4 years agoSupport build with -fno-common 44/216344/1
Mikhail Kashkarov [Wed, 23 Oct 2019 15:11:16 +0000 (18:11 +0300)]
Support build with -fno-common

Fix up ASan build: do not use variable definitons inside header files to avoid
multiple definitons error.

Change-Id: I00d74bd5c9e3e966b1acc29416f273477eaae7f5
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
4 years agoFix glib warning 05/216205/1
Deokhyun Kim [Tue, 22 Oct 2019 08:27:56 +0000 (17:27 +0900)]
Fix glib warning

Change-Id: I65e651b3999169a7e4d95eacb7d243d79d0c746c
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoMerge "Adapt the unregister scan filter functionality into BT-HAL framework" into...
Anupam Roy [Tue, 22 Oct 2019 06:19:44 +0000 (06:19 +0000)]
Merge "Adapt the unregister scan filter functionality into BT-HAL framework" into tizen

4 years agoAdapt the unregister scan filter functionality into BT-HAL framework 55/216155/3
himanshu [Mon, 21 Oct 2019 08:58:56 +0000 (14:28 +0530)]
Adapt the unregister scan filter functionality into BT-HAL framework

This API unregisters a registered scan filter.

Change-Id: I2bfe2a55970b4e4a31df777e889a25c2387e89c0
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoMerge "Add logs to get the previous bluetooth status" into tizen
Pyun DoHyun [Mon, 21 Oct 2019 05:27:19 +0000 (05:27 +0000)]
Merge "Add logs to get the previous bluetooth status" into tizen

4 years agoAdd logs to get the previous bluetooth status 94/216094/1
Amit Purwar [Mon, 21 Oct 2019 05:07:44 +0000 (10:37 +0530)]
Add logs to get the previous bluetooth status

Change-Id: Ibcf5ee315b810c5145a0d55576e737ada73e7a5f
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoPort the set manufacturer data functionality into BT-HAL framework. 28/215528/5
himanshu [Thu, 10 Oct 2019 06:22:55 +0000 (11:52 +0530)]
Port the set manufacturer data functionality into BT-HAL framework.

This API sets the manufacturer-data into the BT-Adapter.
The corresponding data change callback will be invoked
if data is set successfully.

Change-Id: I068a70c0b354a905fcc245ad2e089f4fc3cb06c6
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoMerge "Adapt HF Profile Connect & Disconnect to BT HAL framework" into tizen
Pyun DoHyun [Fri, 18 Oct 2019 03:59:09 +0000 (03:59 +0000)]
Merge "Adapt HF Profile Connect & Disconnect to BT HAL framework" into tizen

4 years agoMerge "Adapt device disconnect to BT HAL framework" into tizen
Pyun DoHyun [Fri, 18 Oct 2019 03:59:01 +0000 (03:59 +0000)]
Merge "Adapt device disconnect to BT HAL framework" into tizen

4 years agoAdapt device disconnect to BT HAL framework 28/215928/2
Amit Purwar [Thu, 17 Oct 2019 11:53:53 +0000 (17:23 +0530)]
Adapt device disconnect to BT HAL framework

Change-Id: I6fdb276b120ae1f0a14b5e1c8c2dbb74fb720080
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoAdapt HF Profile Connect & Disconnect to BT HAL framework 10/215810/3
Amit Purwar [Wed, 16 Oct 2019 06:09:50 +0000 (11:39 +0530)]
Adapt HF Profile Connect & Disconnect to BT HAL framework

Change-Id: I1c59ff115e7048b168fe7540514c5a7a3c815fc4
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoFix unintended unregister issue for gatt server instance 06/215806/3 submit/tizen/20191018.015644
Wootak Jung [Wed, 16 Oct 2019 06:13:41 +0000 (15:13 +0900)]
Fix unintended unregister issue for gatt server instance

In case client_id and instance_id are same, gatt server is
unregistered although we need to unregister gatt client.

Change name of function __bt_do_unregister_server_instance()
for readability.

Change-Id: Ib0f1e4a66e5cfabf52c3dc5a02b84fb031db3e7e

4 years agoFix TCT fail issue by API calling timing 96/215796/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.023712 accepted/tizen/5.5/unified/mobile/hotfix/20201027.083548 accepted/tizen/unified/20191017.011746 submit/tizen/20191016.055918 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
DoHyun Pyun [Wed, 16 Oct 2019 04:19:02 +0000 (13:19 +0900)]
Fix TCT fail issue by API calling timing

Befor and after sending BR/EDR or LE discovery command,
we should wait some time before recieving the complete event.
Otherwise the discoverying operation can be failed in the
stack layer, and the discoverying state wiil be not matched .

Change-Id: Ia9a07c9c2e3d8c907119d28e12dfac337a40cd44
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the vconf definition if the key is not defined 85/215785/1
DoHyun Pyun [Wed, 16 Oct 2019 00:57:14 +0000 (09:57 +0900)]
Add the vconf definition if the key is not defined

Change-Id: Ic73819068f57897632072b93e30af13672665401
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Provide RFCOMM data to battery monitor frwk" into tizen
Pyun DoHyun [Tue, 15 Oct 2019 01:21:25 +0000 (01:21 +0000)]
Merge "Provide RFCOMM data to battery monitor frwk" into tizen

4 years agoProvide RFCOMM data to battery monitor frwk 55/214355/5
Sudipto [Fri, 20 Sep 2019 11:59:50 +0000 (17:29 +0530)]
Provide RFCOMM data to battery monitor frwk

Change-Id: I2c2df3ce1160060cfd932fb328cc40ba9e094caf
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoModify GattConnected changed event handling logic 83/215683/2
Wootak Jung [Mon, 14 Oct 2019 06:42:13 +0000 (15:42 +0900)]
Modify GattConnected changed event handling logic

In case GATT Server is existing, server connected event is invoked
although client is connected by GattConnected changed event.
bt-service should distinguish whether event is for client or server.

Change-Id: I74c19b25a1b7f6130295a5ea2ad2631c0feb9bf9

4 years agoMerge "Fix le scan start issue after stop" into tizen
Pyun DoHyun [Fri, 11 Oct 2019 02:12:37 +0000 (02:12 +0000)]
Merge "Fix le scan start issue after stop" into tizen

4 years agoFix the AVRCP connection fail issue 70/215570/1 accepted/tizen/unified/20191014.005000 submit/tizen/20191011.013701
DoHyun Pyun [Fri, 11 Oct 2019 01:33:32 +0000 (10:33 +0900)]
Fix the AVRCP connection fail issue

This patchset resolves the media key TC fail issue.
(http://suprem.sec.samsung.net/jira/browse/TFDF-6009)

Change-Id: Ie94689ddba136b5a2ae38632e85d945f83d056b6
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix le scan start issue after stop 68/215568/3
Wootak Jung [Fri, 11 Oct 2019 01:08:18 +0000 (10:08 +0900)]
Fix le scan start issue after stop

le scan is not started after stop because stop_pending is set TRUE.
stop_pending will be set FALSE if le discovery is finished.

Change-Id: Id8d9d759e1afcbf1080c98239a14b1affb40a3b6

4 years agoPort the Set LE Privacy functionality into BT HAL framework. 13/215113/2 accepted/tizen/unified/20191007.234828 submit/tizen/20191007.001051
himanshu [Thu, 3 Oct 2019 07:39:14 +0000 (13:09 +0530)]
Port the Set LE Privacy functionality into BT HAL framework.

Sets the enable privacy functionality of LE Adapter

Change-Id: I8f05f7c5e01103ffbd0106f63c49da4d8927d469
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoMerge "Add the feature check logic in launching bt-service" into tizen
Pyun DoHyun [Wed, 2 Oct 2019 01:22:32 +0000 (01:22 +0000)]
Merge "Add the feature check logic in launching bt-service" into tizen

4 years agoFix the svace issue (DEREF_AFTER_NULL) 21/215121/1 submit/tizen/20191002.005334
DoHyun Pyun [Wed, 2 Oct 2019 00:51:32 +0000 (09:51 +0900)]
Fix the svace issue (DEREF_AFTER_NULL)

Change-Id: I637cf306f6159b3e4cbc3d4e32994cfb78ff567b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Add and remove device from whitelist" into tizen
Pyun DoHyun [Wed, 2 Oct 2019 00:16:31 +0000 (00:16 +0000)]
Merge "Add and remove device from whitelist" into tizen

4 years agoFixed bt-service crash by validating le_adv_slot 50/215050/2
Amit Purwar [Tue, 1 Oct 2019 07:16:13 +0000 (12:46 +0530)]
Fixed bt-service crash by validating le_adv_slot

Change-Id: Ic495edc0bfb976d5d3b3a237c15d262048006bc6
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoAdd the feature check logic in launching bt-service 25/215025/1
DoHyun Pyun [Tue, 1 Oct 2019 05:24:34 +0000 (14:24 +0900)]
Add the feature check logic in launching bt-service

Even if BT feature is false in TV profile, bt-service try to
enable BT HW. This patchset prevents this issue.

Change-Id: I571ec5f1bcb3de067ff5f09459be1597265a0e69
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd and remove device from whitelist 73/214373/4
himanshu [Fri, 20 Sep 2019 15:52:35 +0000 (21:22 +0530)]
Add and remove device from whitelist

Change-Id: I476224d047e4e5a2b7ddb7b79d209bb6a5baba00
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoResolved the GAP Agent re-registration Failure 18/214718/1 accepted/tizen/unified/20190926.065727 submit/tizen/20190925.223306
Amit Purwar [Wed, 25 Sep 2019 12:37:13 +0000 (18:07 +0530)]
Resolved the GAP Agent re-registration Failure

Change-Id: I8c828e15b2aae66bcdb4d606328b27e5e1993f46
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoFix memory leak issue 84/214484/1 accepted/tizen/unified/20190924.062101 submit/tizen/20190923.085748
Wootak Jung [Mon, 23 Sep 2019 08:21:38 +0000 (17:21 +0900)]
Fix memory leak issue

Change-Id: Ief91f14d400acb59c94d56888feeeed9eb566b53

4 years agoFix mem leak 43/213943/2 accepted/tizen/unified/20190919.065320 submit/tizen/20190919.003432
Deokhyun Kim [Tue, 17 Sep 2019 01:43:35 +0000 (10:43 +0900)]
Fix mem leak

Change-Id: I3d25d486b5b9ee95fb1b3d3e0ba51f9ea004ea76
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoFixed the custom service UUID parsing 54/213554/4 accepted/tizen/unified/20190918.010258 submit/tizen/20190916.233704
Amit Purwar [Fri, 6 Sep 2019 13:31:00 +0000 (19:01 +0530)]
Fixed the custom service UUID parsing

Change-Id: I0ed330d820e09b740d2125963d81a6c92c553fca
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoModified the logic of advertisement slot allocation 04/213304/4
Amit Purwar [Wed, 4 Sep 2019 06:10:10 +0000 (11:40 +0530)]
Modified the logic of advertisement slot allocation

Change-Id: I38dadcce61ea91cc83a0e5cac521d7dc0d71720a
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoMerge "Implement MTU changed callback for GATT server" into tizen
Pyun DoHyun [Mon, 16 Sep 2019 06:13:50 +0000 (06:13 +0000)]
Merge "Implement MTU changed callback for GATT server" into tizen

4 years agoMerge "Implement new API to get le oob data" into tizen
Pyun DoHyun [Mon, 16 Sep 2019 06:13:45 +0000 (06:13 +0000)]
Merge "Implement new API to get le oob data" into tizen

4 years agoMerge "Providing bluetooth usage data for battery monitor framework" into tizen
Pyun DoHyun [Mon, 16 Sep 2019 06:07:29 +0000 (06:07 +0000)]
Merge "Providing bluetooth usage data for battery monitor framework" into tizen

4 years agoProviding bluetooth usage data for battery monitor framework 33/213033/5
Sudipto [Thu, 29 Aug 2019 10:35:07 +0000 (16:05 +0530)]
Providing bluetooth usage data for battery monitor framework

The following data is provided to BT CAPI to be used
by battery monitor framework:

Session start time
Session end time
Session scan time
Session connected time

Change-Id: I3873d521f35c76bd71a5cae1dfb6c4724b015997
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoImplement MTU changed callback for GATT server 63/213863/1
injun.yang [Mon, 1 Jul 2019 08:01:09 +0000 (17:01 +0900)]
Implement MTU changed callback for GATT server

[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] Implement MTU changed callback for GATT server
[Checking Method] n/a

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

Change-Id: I57a539cadf7ab83931a40eaed573de9f9cecbd9c
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoImplement new API to get le oob data 49/213849/1
injun.yang [Tue, 22 Jan 2019 08:51:23 +0000 (17:51 +0900)]
Implement new API to get le oob data

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

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

[Problem] n/a
[Cause & Measure] Implement new API to get le oob data
[Checking Method] n/a

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

Change-Id: I5ab78624ed2fbac7fc6d6d36bf394776d721b7f7
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoSupport LE passive scan 44/213844/1
injun.yang [Thu, 22 Aug 2019 10:07:46 +0000 (19:07 +0900)]
Support LE passive scan

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

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

[Problem] n/a
[Cause & Measure] Support LE passive scan
[Checking Method] set scan type > scan

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

Change-Id: I77477742886f96523dd8a44471dfc86c6fd0870b
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoHandling BLE scan as per adv type 65/213765/1
injun.yang [Wed, 11 Sep 2019 06:15:34 +0000 (15:15 +0900)]
Handling BLE scan as per adv type

Change-Id: I801145ce5c48a218be9668adb63e686318d26f86
Signed-off-by: injun.yang <injun.yang@samsung.com>
4 years agoWhen compare address, ignoring the case of the characters 64/213664/1
injun.yang [Tue, 10 Sep 2019 04:52:53 +0000 (13:52 +0900)]
When compare address, ignoring the case of the characters

Change-Id: I1c720d63824c5789d80c56c29df8449a2ba201ed
Signed-off-by: injun.yang <injun.yang@samsung.com>
4 years agoEnhance debug message 43/213643/1
injun.yang [Mon, 9 Sep 2019 11:31:30 +0000 (20:31 +0900)]
Enhance debug message

Change-Id: I1f59a2cd019a1ab9229dcaaf8551474ef80e1cb5
Signed-off-by: injun.yang <injun.yang@samsung.com>
4 years agoAdd the auto accept logic for the headless speaker profile 07/213207/1 accepted/tizen/unified/20190904.110659 submit/tizen/20190903.224849
DoHyun Pyun [Tue, 3 Sep 2019 01:06:26 +0000 (10:06 +0900)]
Add the auto accept logic for the headless speaker profile

Change-Id: I4c5aff7aae23e819c0aea23b69f0ceea5d049e08
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix handling logic of pending request 74/212674/1
Wootak Jung [Mon, 26 Aug 2019 04:58:35 +0000 (13:58 +0900)]
Fix handling logic of pending request

If the list is removed during 'for' statement, 'list->next' also set NULL.
 Fix the logic to store 'list->next' in advance.

Change-Id: Iae4bb280f68d770b0528bbc5b9bbd38fb88f4884