platform/core/connectivity/bluetooth-frwk.git
8 months agoAdd new L2CAP socket API to get the maximum buffer size 40/306740/1
Wootak Jung [Tue, 27 Feb 2024 04:51:09 +0000 (13:51 +0900)]
Add new L2CAP socket API to get the maximum buffer size

Change-Id: Id530fded18e3803f5a26064ca5233ed45da9f4e5
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
8 months agoFix issue where ACL was not disconnected even though the coc disconnect request was... 55/305755/1 accepted/tizen/unified/20240216.161315 accepted/tizen/unified/toolchain/20240311.065309 accepted/tizen/unified/x/20240220.145928
Wootak Jung [Wed, 7 Feb 2024 07:36:27 +0000 (16:36 +0900)]
Fix issue where ACL was not disconnected even though the coc disconnect request was processed

Modified to shutdown before fd close

Change-Id: I3ac11f324012d2a3e6292f434e58c4f66f48b552
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
8 months agoFix to reallocate fd when gatt write fails 39/305539/1
Wootak Jung [Thu, 1 Feb 2024 06:16:04 +0000 (15:16 +0900)]
Fix to reallocate fd when gatt write fails

Change-Id: Ic9e2cf70d022c1d0f66b45587f08b382cd425421
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
8 months agoAdd DA logic so that A2DP connection is only possible for one device 38/305538/1
Wootak Jung [Wed, 24 Jan 2024 03:56:37 +0000 (12:56 +0900)]
Add DA logic so that A2DP connection is only possible for one device

A2DP and HFP can only be connected to the same device.

Change-Id: I600ffc9d7dd753f6bd9a070f8616d893b832d4bb
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
9 months agoModify duty cycle of scan mode 60/303560/3 accepted/tizen_unified_riscv accepted/tizen/unified/20240117.163234 accepted/tizen/unified/riscv/20240118.054531
Wootak Jung [Tue, 2 Jan 2024 06:59:28 +0000 (15:59 +0900)]
Modify duty cycle of scan mode

Change-Id: Ic536778c1f03e8697bd4b141fb8aa98f39c44e33
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
9 months agoFix issue where state is not restored when adv operation fails 54/304254/1
Wootak Jung [Fri, 5 Jan 2024 08:20:58 +0000 (17:20 +0900)]
Fix issue where state is not restored when adv operation fails

This patch reverts the iOS GM support patch below.

commit 0d9d2326e4bcc54a2a979eaad6ebec69fb9747dd
Author: Wootak Jung <wootak.jung@samsung.com>
Date:   Tue Dec 17 08:59:17 2019 +0900

    Fix iOS GM connection issue

Change-Id: I6ab48c90e5b4a57457c8ea04c570c1592ab5d234
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
9 months agoFix issue where state is not restored when adv operation fails 13/304013/1
Wootak Jung [Fri, 5 Jan 2024 08:20:58 +0000 (17:20 +0900)]
Fix issue where state is not restored when adv operation fails

Change-Id: I72428877125969a9dd682d6a2124775e45f258a4
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
9 months agoFix issue where conn info could not be found 50/303750/1
Wootak Jung [Wed, 3 Jan 2024 00:11:39 +0000 (09:11 +0900)]
Fix issue where conn info could not be found

Branch logic is required because remote device management method is
different depending on the stack.

In the case of bluez, it is managed by remote address,
so if you distinguish it by instance ID, conn info may not be found.

In the case of bluedroid, it is managed by conn ID,
so you need to find conn info using remote address + instance ID.

Change-Id: Ieea79d1b86ff72dc3490a68fdfb50de934b4d04d
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
10 months agoRemove A2DP related logic for Fhub only 03/303503/1
Wootak Jung [Wed, 27 Dec 2023 22:46:27 +0000 (07:46 +0900)]
Remove A2DP related logic for Fhub only

Change-Id: I231596417f1827eeb4eb0866f0e505adbec1ea37
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
10 months agoRemove inefficient log 95/303395/1
Wootak Jung [Wed, 27 Dec 2023 00:43:38 +0000 (09:43 +0900)]
Remove inefficient log

12-20 21:56:15.976-0500 I/BLUETOOTH_FRWK_API (P20017, T20017): bt-gatt-service.c: bluetooth_gatt_write_channel_watch_cb(393) > +
12-20 21:56:15.976-0500 I/BLUETOOTH_FRWK_API (P 6345, T 6345): bt-gatt-service.c: bluetooth_gatt_write_channel_watch_cb(393) > +
12-20 21:56:15.976-0500 I/BLUETOOTH_FRWK_API (P20017, T20017): bt-gatt-service.c: bluetooth_gatt_write_channel_watch_cb(393) > +
12-20 21:56:15.976-0500 I/BLUETOOTH_FRWK_API (P 6345, T 6345): bt-gatt-service.c: bluetooth_gatt_write_channel_watch_cb(393) > +
12-20 21:56:15.976-0500 I/BLUETOOTH_FRWK_API (P20017, T20017): bt-gatt-service.c: bluetooth_gatt_write_channel_watch_cb(393) > +

Change-Id: Ie8d440160a6d5ea445d9c67a70e2a6dc4879db50
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
10 months agoMerge "Bluetooth: Increase write data limit in l2cap connection." into tizen
Wootak Jung [Wed, 27 Dec 2023 04:26:27 +0000 (04:26 +0000)]
Merge "Bluetooth: Increase write data limit in l2cap connection." into tizen

10 months agoBluetooth: Increase write data limit in l2cap connection. 59/303059/2
Harsh Jain [Tue, 19 Dec 2023 10:57:50 +0000 (16:27 +0530)]
Bluetooth: Increase write data limit in l2cap connection.

This patch increases write limit in l2cap connection
from 672 Bytes to 4096 Bytes.

Change-Id: I7a294036ae963ef1a08b31113674317d388e2a18
Signed-off-by: Harsh Jain <jain.harsh@samsung.com>
10 months agoFix issue where adv_handle of incorrect instance was modified 72/302672/1 accepted/tizen/unified/20231219.160420 accepted/tizen/unified/riscv/20231226.210826
Wootak Jung [Mon, 11 Dec 2023 06:05:14 +0000 (15:05 +0900)]
Fix issue where adv_handle of incorrect instance was modified

Reproduction steps:
1) bt_adapter_le_create_advertiser()     // ADV 1 create
2) bt_adapter_le_start_advertising_new() // ADV 1 start
3) bt_adapter_le_create_advertiser()     // ADV 2 create
4) bt_adapter_le_start_advertising_new() // ADV 2 start
5) register GATT Service                 // register gatt service
6) bt_gatt_server_start()                // GATT Server Start
7) bt_adapter_le_stop_advertising()      // ADV 1 stop
8) bt_adapter_le_destroy_advertiser()    // ADV 1 destroy --> RESOURCE_BUSY

Change-Id: I3ce3847b4a4acb478869c66fda8ce55e0dcdf212
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
10 months agoMerge "Add support for A2DP source and sink both role" into tizen
Wootak Jung [Mon, 11 Dec 2023 04:57:30 +0000 (04:57 +0000)]
Merge "Add support for A2DP source and sink both role" into tizen

10 months agoAdd new DA model name 01/302501/1
Wootak Jung [Fri, 8 Dec 2023 00:40:27 +0000 (09:40 +0900)]
Add new DA model name

AI Hub Smart EHS

Change-Id: I3614aefa19af5b719f96c85572e228b9c9c52865
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
11 months agoFix missing response issue of getting bonded device and devices. 56/301956/1
Harsh Jain [Tue, 28 Nov 2023 10:50:26 +0000 (16:20 +0530)]
Fix missing response issue of getting bonded device and devices.

Response is missing if the request of getting bonded device and devices is coming
while bonded_list_retrieved not set.

Change-Id: I0abd411ba3acdf59518b54293f8d34663de52a0c
Signed-off-by: Harsh Jain <jain.harsh@samsung.com>
11 months agoAdd new DA model names 99/301899/1
Wootak Jung [Mon, 27 Nov 2023 00:34:32 +0000 (09:34 +0900)]
Add new DA model names

Bespoke Washer
Bespoke Dryer
Appliance Emulator

Change-Id: Ib23d5aea9b222d53606ea916ae6c6931ee54296b
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
11 months agoFix memory leak when scanning 84/301784/1 accepted/tizen/unified/20231127.164946
Wootak Jung [Wed, 22 Nov 2023 01:29:51 +0000 (10:29 +0900)]
Fix memory leak when scanning

Change-Id: I312e57b2f8a066f1085813103cd942fea1135a3e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
11 months agoAdd support for A2DP source and sink both role 58/301358/2
Wootak Jung [Wed, 15 Nov 2023 02:28:51 +0000 (11:28 +0900)]
Add support for A2DP source and sink both role

Change-Id: I8638a5ae3728d3f4fceac03b1403b0c38d8f351a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
11 months agoAdd logic to start hf-agent when bt is enabled in DA devices 33/301433/1
Wootak Jung [Wed, 15 Nov 2023 01:18:21 +0000 (10:18 +0900)]
Add logic to start hf-agent when bt is enabled in DA devices

When restarting the bluetooth adapter, hf-agent does not restart after termination.

Change-Id: Ie67312a778582e396d80f8816b03e9b5c215fc5f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
11 months agoRevert "Integrate list of client/server info to conn info list" 06/300906/1
Wootak Jung [Mon, 6 Nov 2023 00:35:21 +0000 (09:35 +0900)]
Revert "Integrate list of client/server info to conn info list"

This reverts commit f693e2270a04917b1004cb8c7504d55aa94badfd.

Change-Id: Ifd9a5b0f429fe68e0fefead057e11eb76d6e4e2a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
11 months agoRevert "Integrate gatt connection info" 05/300905/1
Wootak Jung [Mon, 6 Nov 2023 00:34:45 +0000 (09:34 +0900)]
Revert "Integrate gatt connection info"

This reverts commit 837896a29835d78365a7e1d852de09e1821635bc.

Change-Id: I1179a05fb78b678aabfe0a8528090b4f4dc900ff
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
11 months agoIncrease the version to 9.0 99/300899/1
Wootak Jung [Mon, 6 Nov 2023 00:18:16 +0000 (09:18 +0900)]
Increase the version to 9.0

Change-Id: Id9f25c114f621b4b305bd73e7c0fccaa866c981b
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
12 months agoChange the L2CAP LE buffer size to 0xFFFF 52/300752/3 accepted/tizen/unified/20231106.171621
Wootak Jung [Thu, 2 Nov 2023 00:31:19 +0000 (09:31 +0900)]
Change the L2CAP LE buffer size to 0xFFFF

Change-Id: Id0ba8ef701c58a380566c87763c76fd91057c388
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
12 months agoHandle MTU change request when client disconnected 76/300276/1
Anuj Jain [Thu, 19 Oct 2023 14:29:57 +0000 (19:59 +0530)]
Handle MTU change request when client disconnected

This patch fixes no error signal being sent to application upon
invocation of "bt_gatt_client_request_att_mtu_change" even
when GATT client is disconnected.

Change-Id: I101e4f76f8e09826a461e772a68d0f206979d745
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
12 months agoFix LegacyManufacturerData parsing issue 59/299859/3
Wootak Jung [Wed, 11 Oct 2023 03:13:28 +0000 (12:13 +0900)]
Fix LegacyManufacturerData parsing issue

LegacyManufacturerDataLen is stored as uint16 not uint32
LegacyManufacturerData should be stored with HAL_PROP_DEVICE_MANUFACTURER_DATA
not HAL_PROP_DEVICE_BLE_ADV_DATA

Change-Id: I6cb7fe979b7c85190383ff318a127b75a4b4357a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
12 months agoFix uuid duplication issue 79/299579/1
Wootak Jung [Thu, 5 Oct 2023 04:44:30 +0000 (13:44 +0900)]
Fix uuid duplication issue

Same uuids are in used if client instance register request is coming
right before server instance initialized

Change-Id: I93438ae0cadbceefc6c819454bfec3776e40ddb6
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoFix build error 08/299008/1 accepted/tizen/8.0/unified/20231005.093200 accepted/tizen/unified/20230919.091745 tizen_8.0_m2_release
Wootak Jung [Mon, 18 Sep 2023 07:14:45 +0000 (16:14 +0900)]
Fix build error

Change-Id: I13e1794f9dba5db1854949d5e92b67372435682c
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoFix svace issues 06/299006/1
Wootak Jung [Mon, 18 Sep 2023 06:50:50 +0000 (15:50 +0900)]
Fix svace issues

Change-Id: Ice542283c92665482bcc3db18b9f3866b0dbea7e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoFix buffer overflow potential issue 18/298818/1 accepted/tizen/unified/20230915.160539
Wootak Jung [Thu, 14 Sep 2023 01:50:45 +0000 (10:50 +0900)]
Fix buffer overflow potential issue

Change-Id: I01528d16207f5f06599ac556ffaad402d59ff5db
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoMerge "Fix Coverity Issue" into tizen accepted/tizen/unified/20230911.091133
Ayush Garg [Thu, 7 Sep 2023 07:06:04 +0000 (07:06 +0000)]
Merge "Fix Coverity Issue" into tizen

13 months agoFix Coverity Issue 46/298446/1
Anuj Kumar Singh [Thu, 7 Sep 2023 05:32:06 +0000 (11:02 +0530)]
Fix Coverity Issue

This patch fix the below coverity issue:
CID-1706415

Change-Id: I53383e3a78cfeef03b279c49ad9c4c8f31c95fa8
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
13 months agoMerge "handling a2dp/avrcp auth request according to A2DP role" into tizen
Wootak Jung [Thu, 7 Sep 2023 03:20:07 +0000 (03:20 +0000)]
Merge "handling a2dp/avrcp auth request according to A2DP role" into tizen

14 months agohandling a2dp/avrcp auth request according to A2DP role 35/298135/1
Sohyeon Choi [Thu, 31 Aug 2023 09:52:09 +0000 (18:52 +0900)]
handling a2dp/avrcp auth request according to A2DP role

Change-Id: I2ded461a380514756fa1cf570a7f9a908a2b2b4c

14 months agoBT 5.0: Add APIs to support set/read PHYs 05/298105/1
Ayush Garg [Thu, 31 Aug 2023 14:54:37 +0000 (20:24 +0530)]
BT 5.0: Add APIs to support set/read PHYs

This patch adds support for the following APIs:
1. bluetooth_gatt_server_read_phy()
2. bluetooth_gatt_server_set_phy()
3. bluetooth_gatt_client_read_phy()
4. bluetooth_gatt_client_set_phy()

Change-Id: I641f95954ed88b419bf208a346a8c16c95e4b474
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
14 months agoMerge "BT 5.0 : Support for Extended Advertisement" into tizen accepted/tizen/unified/20230830.170540
Ayush Garg [Thu, 24 Aug 2023 17:21:54 +0000 (17:21 +0000)]
Merge "BT 5.0 : Support for Extended Advertisement" into tizen

14 months agoMerge "BT 5.0 : Support for extended Scanning" into tizen
Ayush Garg [Thu, 24 Aug 2023 17:21:31 +0000 (17:21 +0000)]
Merge "BT 5.0 : Support for extended Scanning" into tizen

14 months agoFix 31bytes adv data not setting issue 29/297629/1
Wootak Jung [Tue, 22 Aug 2023 05:34:29 +0000 (14:34 +0900)]
Fix 31bytes adv data not setting issue

31bytes should be permitted

Change-Id: I762e88860eff11704cc3c5a98bf3963f2518966d
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
14 months agoBT 5.0 : Support for Extended Advertisement 15/297615/2
Anuj Jain [Mon, 21 Aug 2023 12:26:06 +0000 (17:56 +0530)]
BT 5.0 : Support for Extended Advertisement

This patch provides initial support for extended advertisement.

As there is no support for Extended advertisement on bluez layer
therefore this feature is currently disabled.

Change-Id: Ic38a433b6438cc81606f120fe96190a301877389
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
14 months agoBT 5.0 : Support for extended Scanning 48/296648/4
Anuj Jain [Tue, 1 Aug 2023 13:59:00 +0000 (19:29 +0530)]
BT 5.0 : Support for extended Scanning

This patch provides initial support for extended scanning.

As there is no support for Extended scanning on bluez layer
therefore this feature is currently disabled.

Change-Id: Ia6ca9fe5e404fddb4e50644ceaf588d0bba5b495
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
14 months agoBT 5.0: Add APIs to check Extended feature support 75/297375/2
Ayush Garg [Thu, 17 Aug 2023 08:58:55 +0000 (14:28 +0530)]
BT 5.0: Add APIs to check Extended feature support

This patch adds support for the following APIs:
1. bluetooth_is_le_extended_advertising_supported()
2. bluetooth_is_le_extended_scan_supported()
3. bluetooth_le_get_maximum_advertising_data_length()

Change-Id: Ic018cde08d33de319894add49eaa8501075e61e1
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
14 months agoAdd new DA model names 57/296857/1 accepted/tizen/unified/20230808.074040
Wootak Jung [Mon, 7 Aug 2023 00:25:48 +0000 (09:25 +0900)]
Add new DA model names

Change-Id: I54289d0b4ee140c26bc493ab00e0220286f48710
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
14 months agoIncrease the version to 8.0 90/296790/1
Wootak Jung [Fri, 4 Aug 2023 08:19:17 +0000 (17:19 +0900)]
Increase the version to 8.0

Change-Id: I742ecd44c009d8429642f5b9a0b2974cdc955b88
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
15 months agoAdd skip logic for hal_bluetooth_stop error 62/296062/1 accepted/tizen/unified/20230725.013000
Wootak Jung [Wed, 19 Jul 2023 06:07:52 +0000 (15:07 +0900)]
Add skip logic for hal_bluetooth_stop error

Change-Id: If54d0275ff109de0b2da9ad8ff2abcd6de3ef8ec
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
16 months agoMerge "Fixed the build error using gcc 13" into tizen accepted/tizen/unified/20230718.162153 accepted/tizen/unified/dev/20230726.115849
Pyun DoHyun [Fri, 30 Jun 2023 05:22:25 +0000 (05:22 +0000)]
Merge "Fixed the build error using gcc 13" into tizen

16 months agoFixed the build error using gcc 13 69/294969/1
wchang kim [Thu, 29 Jun 2023 07:27:10 +0000 (16:27 +0900)]
Fixed the build error using gcc 13

Change-Id: Ie68b518abbd13851bcb4a172001e44a1554b56ba

16 months agoAdd internal API to set service persistence 63/293163/6
Wootak Jung [Mon, 22 May 2023 04:18:47 +0000 (13:18 +0900)]
Add internal API to set service persistence

Change-Id: I3bb8e0225e903fd2b92a7d2d768452a501dd20a9
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
16 months agoFix Coverity Issue 07/294507/1 accepted/tizen/unified/20230628.155142
Anuj Kumar Singh [Tue, 20 Jun 2023 08:40:26 +0000 (14:10 +0530)]
Fix Coverity Issue

This patch fix the below coverity issue:
CID-1665400

Change-Id: Ia07c7af202303a4fbd48ae888aa4c5e07c6ee056
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
16 months agoFix Coverity Issue 47/294447/2
Anuj Kumar Singh [Mon, 19 Jun 2023 10:39:21 +0000 (16:09 +0530)]
Fix Coverity Issue

This patch fix the below coverity issue:
CID-1681323

Change-Id: I280653b636d73dacbd8d20fc0294da603668aa34
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
16 months agoAdd "Smart Cooktop" to DA model 02/293902/1
Wootak Jung [Thu, 8 Jun 2023 00:40:30 +0000 (09:40 +0900)]
Add "Smart Cooktop" to DA model

Change-Id: I8445630af56792d75a0e58fd1af69df7e59a2bb9
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
17 months agoFix the issue that previously set scan resp data was not removed 25/292925/1 accepted/tizen/unified/20230601.163001
Wootak Jung [Wed, 17 May 2023 05:42:00 +0000 (14:42 +0900)]
Fix the issue that previously set scan resp data was not removed

reproduction steps:
1. create 1st advertiser and fill scan resp data
2. start advertising by 1st advertiser
3. stop 1st advertiser
4. create 2nd advertiser and don't fill scan resp data
5. start advertising by 2nd advertiser
6. 1st scan resp data was not removed

Change-Id: Icb144e25fd67f3aa5bd488ee3a1f05c99d152501
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
17 months agoAdd ssp auto accept logic in DA Headless case 80/292480/1
Wootak Jung [Tue, 9 May 2023 01:13:42 +0000 (10:13 +0900)]
Add ssp auto accept logic in DA Headless case

Change-Id: Ib909e6ae5b12e2bedac9464018634bf0dcd7f245
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
18 months agoMerge "Fix remote device address in case of l2cap connection timeout" into tizen
Ayush Garg [Tue, 2 May 2023 08:44:27 +0000 (08:44 +0000)]
Merge "Fix remote device address in case of l2cap connection timeout" into tizen

18 months agoFix svace issue 06/292206/1 accepted/tizen/unified/20230503.024140
Wootak Jung [Tue, 2 May 2023 02:36:13 +0000 (11:36 +0900)]
Fix svace issue

Change-Id: Ib744763e4b725f6d1b7c4e3d48ebd5711d2725e0
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
18 months agoFix remote device address in case of l2cap connection timeout 95/292195/2
Ayush Garg [Fri, 28 Apr 2023 10:59:31 +0000 (16:29 +0530)]
Fix remote device address in case of l2cap connection timeout

This patch will fill the correct remote address in the
connectionStateChangedCb when the le coc socket connection
got timeout error.

Change-Id: I483380029091ed9e1f8956132d44aca9f1fbba20
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
18 months agoFix the logic to set visible mode by a2dp role 82/291682/3 accepted/tizen/unified/20230427.155826
Wootak Jung [Thu, 20 Apr 2023 07:28:35 +0000 (16:28 +0900)]
Fix the logic to set visible mode by a2dp role

add the logic to set visible mode in da case

Change-Id: I2ecfd35ad7ffad1ddad8cc197d12a5dd84f5fa1e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
18 months agoMerge "riscv64: Build as ARCH64" into tizen
Pyun DoHyun [Fri, 14 Apr 2023 04:19:22 +0000 (04:19 +0000)]
Merge "riscv64: Build as ARCH64" into tizen

18 months agoFix missing response issue of getting bonded devices 31/291231/1
Wootak Jung [Wed, 12 Apr 2023 02:16:50 +0000 (11:16 +0900)]
Fix missing response issue of getting bonded devices

response is missing if the request of getting bonded devices is coming
while bonded_list_retrieved not set

Change-Id: Ic8cf375f2272b7885aee609adcacb483ff5086c3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
18 months agoFix infinite callback issue in EOF status 07/291107/3
Wootak Jung [Mon, 10 Apr 2023 05:59:42 +0000 (14:59 +0900)]
Fix infinite callback issue in EOF status

Change-Id: Ic4cc4ab9c3edc20c233c825c7a4918c8ce2487e7
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
18 months agoAdd EIR manufacturer data handling logic 17/290917/1
Wootak Jung [Wed, 5 Apr 2023 05:04:14 +0000 (14:04 +0900)]
Add EIR manufacturer data handling logic

Change-Id: Ie320eeb1663f6384c20daf4c4336abdfe13e4609
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
20 months agoAdd adv data custom name handling logic 04/288404/2 accepted/tizen/unified/20230303.162750
Wootak Jung [Thu, 16 Feb 2023 06:40:30 +0000 (15:40 +0900)]
Add adv data custom name handling logic

Change-Id: Ia7a9db2d407855dfa4b38ee31f35be08f9f80bd3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
20 months agoAdd support for custom advertising flags. 50/286850/5 accepted/tizen/unified/20230223.162142
Jakub Latusek [Wed, 1 Feb 2023 05:56:12 +0000 (14:56 +0900)]
Add support for custom advertising flags.

It is required to set proper advertising flags when establishing a
connection using
Bluetooth low energy to properly recognize device type.
Without this, the Linux device cannot recognize the Tizen device
properly and establish a connection.

Change-Id: I7899e9ab56a40095df3a91aa15fc956ebd2aea58
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jakub Latusek <j.latusek@samsung.com>
20 months agoAdd DA feature newly 94/287994/2
Wootak Jung [Thu, 9 Feb 2023 01:17:17 +0000 (10:17 +0900)]
Add DA feature newly

da feature contains many da models as well as fhub

Change-Id: I6094be712d02db52f9f0164ab54b1620c558c6d8
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
21 months agoMerge "Fix Coverty Issues" into tizen accepted/tizen/unified/20230130.165630
Ayush Garg [Mon, 16 Jan 2023 05:16:34 +0000 (05:16 +0000)]
Merge "Fix Coverty Issues" into tizen

21 months agoIncrease the version to 7.5 84/286784/1 accepted/tizen/unified/20230117.140440
Wootak Jung [Fri, 13 Jan 2023 01:05:08 +0000 (10:05 +0900)]
Increase the version to 7.5

Change-Id: I23a790f0908340d36b259edfef7e8d5f91fda64f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
21 months agoFix Coverty Issues 74/286674/1
Anuj Kumar Singh [Wed, 11 Jan 2023 11:01:04 +0000 (16:31 +0530)]
Fix Coverty Issues

This patch fixes following covery issues:
CID-1619563
CID-1619564

Change-Id: Idcc24b7a3696bcad14ba98d0d7eead2605613eaa
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
21 months agoChange the adapter state check logic 37/286437/1 accepted/tizen/unified/20230111.174536
Wootak Jung [Fri, 6 Jan 2023 04:58:37 +0000 (13:58 +0900)]
Change the adapter state check logic

Change-Id: If283fa348962eec9a175119ff1e9e2c6880697db
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
21 months agoFix adapter state mismatch issue 37/286337/4 accepted/tizen/unified/20230109.151000
Wootak Jung [Thu, 5 Jan 2023 02:34:43 +0000 (11:34 +0900)]
Fix adapter state mismatch issue

if bt-service crashed, adapter disabled event is coming.
but, right after receiving the event, adapter state is enabled
add service available check logic

Change-Id: I729b10c5fa0b0a4971c4bd37c60836acac8c1c96
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
21 months agoModify the timeout value for l2cap connect 62/286262/1
Wootak Jung [Tue, 3 Jan 2023 02:43:11 +0000 (11:43 +0900)]
Modify the timeout value for l2cap connect

50s is too late in timeout case

Change-Id: Ib721035ebb2ff07fc124f359a5d871c1c73cb2de
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
22 months agoFix remote device address in connectionStateChangedCb 66/286066/1
Ayush Garg [Mon, 26 Dec 2022 10:12:49 +0000 (15:42 +0530)]
Fix remote device address in connectionStateChangedCb

This patch will fill the correct remote address in the
connectionStateChangedCb when the socket connection got failed.

Change-Id: I1d468408b6e3afca3f26e3935cc9bb84de7af43f
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
22 months agoriscv64: Build as ARCH64 01/286001/1
Marek Pikuła [Fri, 23 Dec 2022 13:44:36 +0000 (14:44 +0100)]
riscv64: Build as ARCH64

Change-Id: If1d0fe491533a691e1ad61f41f71baea0ff36f0f
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
22 months agoAdd l2cap channel EOF handling logic like rfcomm 39/285039/2 accepted/tizen/unified/20221206.170557
Wootak Jung [Mon, 5 Dec 2022 03:46:53 +0000 (12:46 +0900)]
Add l2cap channel EOF handling logic like rfcomm

Remove the unnecessary bluedroid specific logic

Change-Id: I9054e035d461bd6a8a5daa874e47747c920e1399
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
23 months agoAdd discovery busy logic if bonding is in progress 13/284713/1
Wootak Jung [Thu, 24 Nov 2022 06:13:20 +0000 (15:13 +0900)]
Add discovery busy logic if bonding is in progress

Change-Id: I151e022e58c996e26d5d503836e9a2a799661431
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
23 months agoAdd sender to invocation info 15/283915/1
Wootak Jung [Mon, 7 Nov 2022 06:27:13 +0000 (15:27 +0900)]
Add sender to invocation info

Change-Id: I7b7939b0407cf3c212ec8574259876c53196a2c1
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 years agoChange some non-inclusive words 39/283539/1 accepted/tizen/unified/20221103.165737
Wootak Jung [Fri, 28 Oct 2022 08:25:05 +0000 (17:25 +0900)]
Change some non-inclusive words

Change-Id: I06c475809ead89c6edb16ba42bc0d3d1fccdb4a6
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 years agoChange log level from error to debug 34/283334/2
Jakub Latusek [Mon, 24 Oct 2022 12:26:04 +0000 (14:26 +0200)]
Change log level from error to debug

This is a debug message which is not needed to be logged as an error.

Change-Id: I52f95741b4dc1a2dce3bde8de371c9b5d63ba368
Signed-off-by: Jakub Latusek <j.latusek@samsung.com>
2 years agoInclusive language changes 78/283178/2
Anuj Jain [Thu, 20 Oct 2022 01:02:01 +0000 (06:32 +0530)]
Inclusive language changes

BT core spec 5.3 promotes the usage of inclusive languages.
This patch replaces non-inclusive words with inclusive ones.

Change-Id: I7946af9cab584f0f44baa208782b6930e6afcef1
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoFix the rssi parsing issue 87/282887/1
Wootak Jung [Thu, 13 Oct 2022 04:29:45 +0000 (13:29 +0900)]
Fix the rssi parsing issue

D/BLUETOOTH_HAL(  336): bt-hal-event-receiver.c: __bt_hal_device_properties_lookup(1793) > Device RSSI [0] Property num [6]
D/BLUETOOTH_HAL(  336): bt-hal-event-receiver.c: __bt_hal_device_properties_lookup(1793) > Device RSSI [0] Property num [6]
D/BLUETOOTH_HAL(  336): bt-hal-event-receiver.c: __bt_hal_device_properties_lookup(1793) > Device RSSI [0] Property num [6]

Change-Id: I1efa6e609bafb368ae2ae247cebbd5b83f85edc2
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 years agofhub: remove duplicate code in bluetooth_hf_audio_mute API 77/282277/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.060830 accepted/tizen/7.0/unified/hotfix/20221116.105140 accepted/tizen/unified/20221006.065308 accepted/tizen/unified/20221006.065347 tizen_7.0_m2_release
Ayush Garg [Thu, 29 Sep 2022 09:12:06 +0000 (14:42 +0530)]
fhub: remove duplicate code in bluetooth_hf_audio_mute API

Change-Id: I914d10f81e998c4f9d208ece96c3706fce3905e9
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agofhub: terminate bt-core when the core adapter status is abnormal 03/281703/1
Ayush Garg [Wed, 21 Sep 2022 02:13:33 +0000 (07:43 +0530)]
fhub: terminate bt-core when the core adapter status is abnormal

when BT core status is abnormal (ex. recursive BT module detachment),
bt-core process is not terminated because of it is recovery mode.
then the core adapter status is stuck in BT_DEACTIVATING status,
after that the BT adapter can't be enabled / disabled.

So, in bt_check_terminating_condition, add check core status and recovery mode.
if it is abnormal, let the bt-core be terminated.

Change-Id: I48e4903e448e54743469afbd7b59d8cec7d520d2
Signed-off-by: shss-choi <shss.choi@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agofhub: add DA features 02/281702/1
Ayush Garg [Tue, 20 Sep 2022 08:18:26 +0000 (13:48 +0530)]
fhub: add DA features

Applied patches:
- add bluetooth_hf_audio_mute api
- modify to set BT frwk adapter state to 'deactived' when
adapter_enable is failed abnormally

Change-Id: Ifc77646b0ef4cac509c88b647d86855baa658d3e
Signed-off-by: shss-choi <shss.choi@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agofhub: reject A2DP sink/HF/AVRCP CT profile connect request when local a2dp role is... 01/281701/1
Ayush Garg [Tue, 20 Sep 2022 07:29:21 +0000 (12:59 +0530)]
fhub: reject A2DP sink/HF/AVRCP CT profile connect request when local a2dp role is source

Change-Id: I83a0c8c132945971acd4dde3e840f8b43c91e14b
Signed-off-by: shss-choi <shss.choi@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agofhub: reject A2DP(sink)/AVRCP(controller) multi connection 00/281700/1
Ayush Garg [Tue, 20 Sep 2022 06:46:28 +0000 (12:16 +0530)]
fhub: reject A2DP(sink)/AVRCP(controller) multi connection

if there is connected A2DP source device,
reject incoming A2DP(local: sink, remote: source) connection.
if there is connected AVRCP target device,
reject incoming AVRCP(local: CT, remote: TG) connection.

Change-Id: Id455b77641977c921eec936aaa4aa98552619652
Signed-off-by: shss-choi <shss.choi@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agofhub: set general discoverable mode to default 76/281476/2
Ayush Garg [Mon, 19 Sep 2022 09:13:19 +0000 (14:43 +0530)]
fhub: set general discoverable mode to default

in first booting, set discoverable mode to general discoverable mode (visibility on)

Change-Id: I3905052489abea0e2c68212f1b1312c065d3cb27
Signed-off-by: shss-choi <shss.choi@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agofhub: Add new profile for Family Hub 75/281475/2
Ayush Garg [Fri, 16 Sep 2022 04:39:17 +0000 (10:09 +0530)]
fhub: Add new profile for Family Hub

Change-Id: If609de47a88749fa2029b0d64048c9d0a5e21154
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agoExclude files from SAM analysis 61/280561/2
Anuj Jain [Wed, 31 Aug 2022 16:36:16 +0000 (22:06 +0530)]
Exclude files from SAM analysis

Files having calls to library functions of gio/gio.h are excluded as
they have similar syntax leading to duplicate code.

Change-Id: I8307dffcca0b22136573f840a835298531edc0cc
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoMerge "Refactoring of Code to improve SAM score Patch-5" into tizen
Pyun DoHyun [Mon, 5 Sep 2022 03:01:22 +0000 (03:01 +0000)]
Merge "Refactoring of Code to improve SAM score Patch-5" into tizen

2 years agoMerge "Refactoring of Code to improve SAM score Patch-4" into tizen
Pyun DoHyun [Mon, 5 Sep 2022 03:01:19 +0000 (03:01 +0000)]
Merge "Refactoring of Code to improve SAM score Patch-4" into tizen

2 years agoMerge "Refactoring of Code to improve SAM score Patch-3" into tizen
Pyun DoHyun [Mon, 5 Sep 2022 03:01:16 +0000 (03:01 +0000)]
Merge "Refactoring of Code to improve SAM score Patch-3" into tizen

2 years agoMerge "Refactoring of Code to improve SAM score Patch-2" into tizen
Pyun DoHyun [Mon, 5 Sep 2022 03:01:13 +0000 (03:01 +0000)]
Merge "Refactoring of Code to improve SAM score Patch-2" into tizen

2 years agoMerge "Refactoring of Code to improve SAM score Patch-1" into tizen
Pyun DoHyun [Mon, 5 Sep 2022 03:01:11 +0000 (03:01 +0000)]
Merge "Refactoring of Code to improve SAM score Patch-1" into tizen

2 years agoRefactoring of Code to improve SAM score Patch-5 60/280560/2
Anuj Jain [Wed, 31 Aug 2022 16:34:35 +0000 (22:04 +0530)]
Refactoring of Code to improve SAM score Patch-5

Remove Duplicate code:

- Move duplicate functions to common accessible file.
- Implement new function in common file for duplicate code segment.

Change-Id: Id2e205e587a21e195aba7474b9165f8ac36b06b7
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoRefactoring of Code to improve SAM score Patch-4 59/280559/2
Anuj Jain [Wed, 31 Aug 2022 16:26:37 +0000 (21:56 +0530)]
Refactoring of Code to improve SAM score Patch-4

Remove duplicated code:

- Create new common file and move duplicate function to it.

Change-Id: I715b5806174d05a3febb58752519ee8681c23e7b
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoRefactoring of Code to improve SAM score Patch-3 58/280558/2
Anuj Jain [Wed, 31 Aug 2022 16:22:02 +0000 (21:52 +0530)]
Refactoring of Code to improve SAM score Patch-3

Remove duplicated code:

- Add sub function for duplicated code.

Change-Id: I4defc0de7c9f67ef397af58776cd3d04eaf0e7d2
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoRefactoring of Code to improve SAM score Patch-2 57/280557/4
Anuj Jain [Wed, 31 Aug 2022 16:19:16 +0000 (21:49 +0530)]
Refactoring of Code to improve SAM score Patch-2

Remove duplicated code:

- Add sub function for duplicated code.

Change-Id: I4907f1d86e0530500ddff2a6777e8ef7eab5ea9a
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoRefactoring of Code to improve SAM score Patch-1 56/280556/1
Anuj Jain [Wed, 31 Aug 2022 16:15:29 +0000 (21:45 +0530)]
Refactoring of Code to improve SAM score Patch-1

Remove duplicated code:

- Implement common function for functions with duplicated code.

Change-Id: I87c245bbe393a120439de23ec1395424a3dd1fa6
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoFix the issue that the data is not fully delivered 89/280489/2
Wootak Jung [Wed, 31 Aug 2022 01:42:03 +0000 (10:42 +0900)]
Fix the issue that the data is not fully delivered

I/BLUETOOTH_FRWK_API( 3421): bt-l2cap-le-client.c: __write_all(542) > written: 122, len 122
I/BLUETOOTH_FRWK_API( 3421): bt-l2cap-le-client.c: __write_all(544) > index 0 : data 79
I/BLUETOOTH_FRWK_API( 3421): bt-l2cap-le-client.c: __write_all(544) > index 1 : data 1a
I/BLUETOOTH_FRWK_API( 3421): bt-l2cap-le-client.c: __write_all(544) > index 2 : data 77
I/BLUETOOTH_FRWK_API( 3421): bt-l2cap-le-client.c: __write_all(544) > index 3 : data 8b
..
I/BLUETOOTH_HAL( 9157): bt-hal-l2cap-le-dbus-handler.c: app_event_cb(255) > len: 3
I/BLUETOOTH_HAL( 9157): bt-hal-l2cap-le-dbus-handler.c: app_event_cb(257) > Received data, index: 0 : 79
I/BLUETOOTH_HAL( 9157): bt-hal-l2cap-le-dbus-handler.c: app_event_cb(257) > Received data, index: 1 : 1a
I/BLUETOOTH_HAL( 9157): bt-hal-l2cap-le-dbus-handler.c: app_event_cb(257) > Received data, index: 2 : 77
D/BLUETOOTH_HAL( 9157): bt-hal-l2cap-le-dbus-handler.c: write_all(191) > len 3
I/BLUETOOTH_HAL( 9157): bt-hal-l2cap-le-dbus-handler.c: write_all(197) > written 3

Change-Id: I4ee146230c0113592a45ad1c39f9bb6bc71cf6b5

2 years agoMerge "Modify authorize to FALSE in l2cap le connection" into tizen accepted/tizen/unified/20220823.131823 submit/tizen/20220816.082553 submit/tizen/20220822.114248
Wootak Jung [Tue, 9 Aug 2022 22:41:02 +0000 (22:41 +0000)]
Merge "Modify authorize to FALSE in l2cap le connection" into tizen

2 years agoModify authorize to FALSE in l2cap le connection 13/279413/1
Wootak Jung [Tue, 9 Aug 2022 04:19:22 +0000 (13:19 +0900)]
Modify authorize to FALSE in l2cap le connection

Change-Id: Icf4d8a51acc444765a9b61224a3a5d3fd26bfa65

2 years agoGATT: Add support for multiple services and descriptors with same UUID. 59/279059/1
Anuj Jain [Mon, 1 Aug 2022 09:16:58 +0000 (14:46 +0530)]
GATT: Add support for multiple services and descriptors with same UUID.

This patch adds support to handle GATT operations on
1. Multiple Services with same UUID.
2. Multiple Descriptors with same UUID.

Change-Id: I946183cb5c5fcc4e4d9ff2fbad2f807419b6ade5
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>