platform/core/api/bluetooth.git
3 weeks agoFix since_tizen tag in header 05/309105/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240408.160521 accepted/tizen/unified/x/20240409.070707
Wootak Jung [Thu, 4 Apr 2024 23:24:09 +0000 (08:24 +0900)]
Fix since_tizen tag in header

Change-Id: I652f85c03ef31d9b00f473c53b06d81b5db096f6
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
5 weeks agoRemove conditional statements for Moible/Wearable profile 34/308234/2 accepted/tizen/unified/20240404.164413 accepted/tizen/unified/x/20240408.053818
Wootak Jung [Wed, 20 Mar 2024 05:28:19 +0000 (14:28 +0900)]
Remove conditional statements for Moible/Wearable profile

Change-Id: I0f74dfa6816b684ed2ec13057a7f969b75032046
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
6 weeks agoFix the gcov build error 50/307550/1 accepted/tizen/unified/20240313.134901 accepted/tizen/unified/20240313.135814 accepted/tizen/unified/20240315.032920 accepted/tizen/unified/x/20240314.073430
Dohyun Pyun [Tue, 12 Mar 2024 04:13:30 +0000 (13:13 +0900)]
Fix the gcov build error

Change-Id: I951c2396d162705a3ba5940f68a57883e974b536
Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com>
8 weeks agoAdd new L2CAP socket API to get the maximum buffer size 41/306741/2
Wootak Jung [Tue, 27 Feb 2024 04:41:27 +0000 (13:41 +0900)]
Add new L2CAP socket API to get the maximum buffer size

Change-Id: I07346e76772c3d8379f2eb713bb55996fa1d3bba
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 months agoThis patch fixes svace issues 73/305973/1 accepted/tizen_unified_toolchain accepted/tizen/unified/20240216.161312 accepted/tizen/unified/toolchain/20240311.065058 accepted/tizen/unified/x/20240220.150041
Anuj Jain [Wed, 14 Feb 2024 09:30:29 +0000 (15:00 +0530)]
This patch fixes svace issues

Change-Id: I4ab8ad5e2e159c00e3529c6561c30b4427f7be49
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 months agoFix crash issue when write_cb is NULL 37/305537/1
Wootak Jung [Thu, 1 Feb 2024 06:45:38 +0000 (15:45 +0900)]
Fix crash issue when write_cb is NULL

Change-Id: I4dc116d88a8d527ffc865e2fbeeed17e5365fde3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
3 months agoModify duty cycle of scan mode 55/303555/3 accepted/tizen_unified_riscv accepted/tizen/unified/20240117.163231 accepted/tizen/unified/riscv/20240118.054556
Wootak Jung [Tue, 2 Jan 2024 06:29:32 +0000 (15:29 +0900)]
Modify duty cycle of scan mode

Change-Id: I461980ec0024e7ee7fe231b5a736860f2ee0ed3e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
3 months agoFix issue of server disconnect on client disconnection 87/304287/1
Harsh Jain [Mon, 15 Jan 2024 10:25:25 +0000 (15:55 +0530)]
Fix issue of server disconnect on client disconnection

This patch Address client disconnect initiated in process 1, which leads to unintended disconnection of process 2 server.

Change-Id: I06c204314acd6889e3a6552efb99b1d50b2bc5b6
Signed-off-by: Harsh Jain <jain.harsh@samsung.com>
3 months agoRemove duplicated error in header 00/303500/1 accepted/tizen/unified/20240109.155406 accepted/tizen/unified/riscv/20240110.014524
Wootak Jung [Fri, 29 Dec 2023 00:01:53 +0000 (09:01 +0900)]
Remove duplicated error in header

Change-Id: I99a49cf0ee76132c6c8b04ff272e2476f91d0613
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 months agoAdd new DA model name 00/302500/1 accepted/tizen/unified/20231219.160417 accepted/tizen/unified/riscv/20231226.211801
Wootak Jung [Fri, 8 Dec 2023 00:38:19 +0000 (09:38 +0900)]
Add new DA model name

AI Hub Smart EHS

Change-Id: I88969aba4ea33fa163c5903e14db07af4541f86c
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 months agoAdd new DA model names 95/301895/1
Wootak Jung [Mon, 27 Nov 2023 00:34:42 +0000 (09:34 +0900)]
Add new DA model names

Bespoke Washer
Bespoke Dryer
Appliance Emulator

Change-Id: I927cfef23b0f8f1a15998ac787f69ec4739a0300
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
5 months agoFix memory leak 00/301700/1 accepted/tizen/unified/20231127.164944
Wootak Jung [Wed, 22 Nov 2023 04:09:19 +0000 (13:09 +0900)]
Fix memory leak

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

Change-Id: I4c7b7627b3f7d295a9160916875dec026030b42b
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
5 months agobt_unit_test: Change the test buffer size 54/300754/1 accepted/tizen/unified/20231106.171619
Wootak Jung [Thu, 2 Nov 2023 00:45:39 +0000 (09:45 +0900)]
bt_unit_test: Change the test buffer size

Change-Id: I4882a9e1885044f049c267f117cdbd29543ef093
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
5 months agoChange the HFP supported device to DA from FHUB 49/300749/1
Wootak Jung [Wed, 1 Nov 2023 23:20:06 +0000 (08:20 +0900)]
Change the HFP supported device to DA from FHUB

Change-Id: I16145f8c4f14a9a381f87f0d20aff8b37846adbc
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
7 months agoFix Coverty issue 93/298893/1 accepted/tizen/8.0/unified/20231005.092628 accepted/tizen/unified/20230918.063833 tizen_8.0_m2_release
Ayush Garg [Fri, 15 Sep 2023 01:21:44 +0000 (06:51 +0530)]
Fix Coverty issue

This patch fixes the PHY validation logic

Change-Id: I685c7ba5fd070826c8198c9e2cc6ae585615a7af
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
7 months agoBT 5.0 Fix ordering for feature check 11/298611/1 accepted/tizen/unified/20230914.100346
Anuj Jain [Mon, 11 Sep 2023 10:45:25 +0000 (16:15 +0530)]
BT 5.0 Fix ordering for feature check

This patch fixes the mismatch in ordering between bt_feature_t
and feature_table.

Change-Id: I6d68d1a6e2562ffefdfa7307f13bbe09225513e2
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
7 months ago[ACR-1787] Add extended advertising and scan APIs to public 30/297830/8 accepted/tizen/unified/20230911.091135
Wootak Jung [Fri, 25 Aug 2023 05:16:17 +0000 (14:16 +0900)]
[ACR-1787] Add extended advertising and scan APIs to public

Change-Id: Ib4abe4f9012db5cb10c414fb3b148b3178b5710e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
7 months agoFix Svace Issue 95/298395/1
Anuj Kumar Singh [Wed, 6 Sep 2023 10:08:53 +0000 (15:38 +0530)]
Fix Svace Issue

This patch fix the below svace issue:
CID-546086

Change-Id: I7c6f14dcdd5a8471adcdb1d8cba3865f6ab45116
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
7 months agoMerge "BT 5.0: Implement CAPIs for read/set phy" into tizen
Ayush Garg [Wed, 6 Sep 2023 05:04:41 +0000 (05:04 +0000)]
Merge "BT 5.0: Implement CAPIs for read/set phy" into tizen

7 months agoBT 5.0: Implement CAPIs for read/set phy 06/298106/1
Ayush Garg [Tue, 29 Aug 2023 10:05:36 +0000 (15:35 +0530)]
BT 5.0: Implement CAPIs for read/set phy

This patch adds following APIs:
1. bt_gatt_client_read_phy()
2. bt_gatt_client_set_phy()
3. bt_gatt_client_set_phy_update_cb()
4. bt_gatt_client_unset_phy_update_cb()
5. bt_gatt_server_read_phy()
6. bt_gatt_server_set_phy()
7. bt_gatt_server_set_phy_update_cb()
8. bt_gatt_server_unset_phy_update_cb()

Change-Id: Ica0b1850b7c3e84086bed2e7b9a35866271626d6
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
7 months agoFix api header errors from the script 48/297948/1
Wootak Jung [Tue, 29 Aug 2023 05:47:11 +0000 (14:47 +0900)]
Fix api header errors from the script

include/bluetooth.h:56: ERROR:
  Return value #BT_ERROR_NOT_SUPPORTED used in incorrect order.
  Correct return value order:
  ERROR_NONE
  ERROR_NOT_SUPPORTED
  ERROR_PERMISSION_DENIED
  ERROR_INVALID_PARAMETER
  Other errors

include/bluetooth.h:474: Note:
  Please consider changing tabs in comments to spaces.
  Tabs may cause aligned comments to be shown incorrectly,
  depending on the editor's tab width setting.

include/bluetooth.h:619: ERROR:
  The description of the 'randomizer' parameter in line 619 is the same as for 'hash' in line 618.

include/bluetooth.h:635: ERROR:
  Since at least one privilege is needed, one of the errors should be ..._ERROR_PERMISSION_DENIED

...

Change-Id: Ic4b7c0debe86b366fcb20af6f3667df1ce22c804
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
8 months agoBT 5.0 : Support for Extended Advertisement 16/297616/2 accepted/tizen/unified/20230830.170543
Anuj Jain [Mon, 21 Aug 2023 12:27:38 +0000 (17:57 +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: I133ea5ed4535dc2fd3901fe29d6338e69109c3d8
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
8 months agoBT 5.0 : Support for Extended Scanning 47/296647/4
Anuj Jain [Tue, 1 Aug 2023 13:23:59 +0000 (18:53 +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: Ic61858f76286e33b5d3fa6645bd37a9076376bcd
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
8 months agoBT 5.0: Implement CAPIs for getting supported features 76/297376/2
Ayush Garg [Wed, 16 Aug 2023 08:53:46 +0000 (14:23 +0530)]
BT 5.0: Implement CAPIs for getting supported features

This patch adds following APIs:
1. bt_adapter_le_is_extended_advertising_supported()
2. bt_adapter_le_is_extended_scan_supported()
3. bt_adapter_le_get_maximum_advertising_data_length()

Change-Id: Id5c7b9c9873db52264853cc93e9a1d0a9e21453e
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
8 months agoRevert "Remove unnecessary unittest rpm" 67/296967/1 accepted/tizen/unified/20230810.070114
Wootak Jung [Tue, 8 Aug 2023 05:38:28 +0000 (14:38 +0900)]
Revert "Remove unnecessary unittest rpm"

This reverts commit 31ace04f641bf94e902c6cd71873b615b7e65561.

Change-Id: Icdb0b412b844577b48ad0fa040a05c6cea5e86f2

8 months agoAdd new DA model names 58/296858/1 accepted/tizen/unified/20230808.074042
Wootak Jung [Mon, 7 Aug 2023 00:26:24 +0000 (09:26 +0900)]
Add new DA model names

Change-Id: I44894b50555d9b1bef70247de467a37f006afcc8
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
8 months agoIncrease the version to 8.0 91/296791/1
Wootak Jung [Fri, 4 Aug 2023 08:04:29 +0000 (17:04 +0900)]
Increase the version to 8.0

Change-Id: Iff6d2458f1bc2b26fdee7810af5c332bb73d87cb
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
8 months agoRemove tests related gcno files 86/296786/1 accepted/tizen/unified/20230808.011411
Wootak Jung [Fri, 4 Aug 2023 07:33:43 +0000 (16:33 +0900)]
Remove tests related gcno files

Change-Id: I1d775310baa41a70fd877883e8fd7a7f26ad1897
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
8 months agoRemove unnecessary unittest rpm 96/296596/1 accepted/tizen/unified/20230803.034111
Wootak Jung [Wed, 2 Aug 2023 00:49:36 +0000 (09:49 +0900)]
Remove unnecessary unittest rpm

unittest rpm required if native tct is not enough

Change-Id: Icd1ae0c9f89729817712c9183123ca799ad3e5fd
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
9 months agoRemove the unnecessary coverage result 74/296174/1 accepted/tizen/unified/20230726.163539
Wootak Jung [Fri, 21 Jul 2023 01:07:42 +0000 (10:07 +0900)]
Remove the unnecessary coverage result

Change-Id: If218d386547022da42a1aeaa0526c3c28dab1fe3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
9 months agoMove advertising flags setting API to public 74/295974/4 accepted/tizen/unified/20230725.012957
Wootak Jung [Tue, 18 Jul 2023 04:15:32 +0000 (13:15 +0900)]
Move advertising flags setting API to public

Change-Id: I6500b58b2d3113809719acc85dc62b37620297eb
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
10 months agoAdd internal API to set service persistence 86/294086/2 accepted/tizen/unified/20230718.162151
Wootak Jung [Tue, 13 Jun 2023 04:13:59 +0000 (13:13 +0900)]
Add internal API to set service persistence

Change-Id: Ic1a54af44ac3b2265f37db4c3a8545e189951a38
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
10 months agoAdd "Smart Cooktop" to DA model 07/293907/1 accepted/tizen/unified/20230628.155139
Wootak Jung [Thu, 8 Jun 2023 00:47:58 +0000 (09:47 +0900)]
Add "Smart Cooktop" to DA model

Change-Id: I2431eca8c28f300c66ba87d921fd51e6f79e2ba6
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
10 months agoChange the platform version to 8.0 from 7.5 04/293504/1 accepted/tizen/unified/20230601.162959
Wootak Jung [Wed, 31 May 2023 01:39:49 +0000 (10:39 +0900)]
Change the platform version to 8.0 from 7.5

Change-Id: Id075326ec42159023977c0a0c0985d7079fa182e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
11 months agoAdd new unit tests 38/293038/1
Manika Shrivastava [Thu, 18 May 2023 07:01:00 +0000 (12:31 +0530)]
Add new unit tests

This patch adds UTCs for following apis:
bt_adapter_le_set_advertising_flags
bt_adapter_le_add_advertising_custom_name
bt_adapter_le_remove_advertising_custom_name

Change-Id: Ifd28b08a6b31eac885d30f1e360f43f446a77b43
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
11 months agoFix authentication request cb not coming issue 82/292482/1
Wootak Jung [Tue, 9 May 2023 01:16:07 +0000 (10:16 +0900)]
Fix authentication request cb not coming issue

If you set the authentication request_cb only, cb is not called.
If you don't set the req_cb, request_cb is not called.

Change-Id: Ica53667f5e4d7b92708788c58e47632dcb7f827d
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoFix svace issue 97/290297/1 accepted/tizen/unified/20230325.044626
Wootak Jung [Thu, 23 Mar 2023 02:21:35 +0000 (11:21 +0900)]
Fix svace issue

Change-Id: I16316b95bf29536d36a0d2f81bb7996948ca560b
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoFix Coverity issue 93/289893/2 accepted/tizen/unified/20230320.021840
Anuj Jain [Wed, 15 Mar 2023 06:46:09 +0000 (12:16 +0530)]
Fix Coverity issue

This patch fixes Coverity issue:
CID : 1668452 (RESOURCE_LEAK)

Change-Id: Idf35488d83e6f2da939a6b4dbe302cfd26a304e1
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
13 months agoFix svace issues 57/289857/1
Wootak Jung [Wed, 15 Mar 2023 01:38:20 +0000 (10:38 +0900)]
Fix svace issues

Change-Id: Ief9a08aaa5cf1dc8f7d90c3f02dace535bf7eb7e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoAdd custom name removing API 91/288591/2 accepted/tizen/unified/20230303.162753
Wootak Jung [Mon, 20 Feb 2023 07:21:12 +0000 (16:21 +0900)]
Add custom name removing API

fix ad type removing function

Change-Id: Ic47a8ef39b0cc8d954326cb683d3816543e8b273
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoAdd custom name setting API in advertising data 05/288405/4
Wootak Jung [Thu, 16 Feb 2023 06:41:49 +0000 (15:41 +0900)]
Add custom name setting API in advertising data

Change-Id: Ibf8e5ed464ba0ad24998860e8858f2e5b4dbd8ad
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
13 months agoApply gcov automation 49/289049/1 accepted/tizen/unified/20230302.131102
Wootak Jung [Tue, 28 Feb 2023 03:07:37 +0000 (12:07 +0900)]
Apply gcov automation

Change-Id: I4261b30f08f275fcc7ec8aba2fc6e6e3cf285690
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
14 months agoAdd support for custom advertising flags. 51/286851/3 accepted/tizen/unified/20230223.162139
Jakub Latusek [Wed, 1 Feb 2023 05:50:11 +0000 (14:50 +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: I4ac31464007f67711ea05a6227a7a46c33b6c8ef
Signed-off-by: Jakub Latusek <j.latusek@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
14 months agoFix gatt connection state changed cb not coming issue 30/288030/2
Wootak Jung [Thu, 9 Feb 2023 08:08:59 +0000 (17:08 +0900)]
Fix gatt connection state changed cb not coming issue

Regardless of registering new callback,
the callback from previous one should be come

Change-Id: Id37cf39734d4cd8762d1db58733ab94deade601d
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
14 months agoAdd DA feature newly 93/287993/1
Wootak Jung [Thu, 9 Feb 2023 01:07:25 +0000 (10:07 +0900)]
Add DA feature newly

da feature contains many da models as well as fhub

Change-Id: Ia8d75c4c0e759f9721b2a786adacabcaf70fff4d
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
14 months agoAdd an error enumeration for max connection 19/287819/3 accepted/tizen/unified/20230213.170701
Wootak Jung [Tue, 7 Feb 2023 02:00:14 +0000 (11:00 +0900)]
Add an error enumeration for max connection

Change-Id: I3e28532b8354d1d741c887f98ef72516c7955fe8
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
15 months agoIncrease the version to 7.5 79/286779/1 accepted/tizen/unified/20230117.140451
Wootak Jung [Fri, 13 Jan 2023 00:59:43 +0000 (09:59 +0900)]
Increase the version to 7.5

Change-Id: If67fa9c79896ef000b8e73a6c56fc5cb79d84c07
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
17 months agoriscv64: Add RISCV-64 support 73/284473/1
Marek Pikuła [Mon, 7 Nov 2022 13:49:11 +0000 (14:49 +0100)]
riscv64: Add RISCV-64 support

Change-Id: I5493c0de4cf3fb0eaf18c8e70face319562ad0f1
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
18 months agoMerge "Inclusive Language Changes" into tizen accepted/tizen/unified/20221103.165735
Ayush Garg [Thu, 20 Oct 2022 05:36:28 +0000 (05:36 +0000)]
Merge "Inclusive Language Changes" into tizen

18 months agoInclusive Language Changes 79/283179/1
Anuj Jain [Thu, 20 Oct 2022 00:54:23 +0000 (06:24 +0530)]
Inclusive Language Changes

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

This patchset should be merged with the following bluetooth-frwk's
patchset in order to build successfully:
bluetooth-frwk Change-Id: I7946af9cab584f0f44baa208782b6930e6afcef1

Change-Id: I0f46211d644a96be7cbed2d2352f624fee51ff29
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
18 months agoMerge "Add the coverage exception for internal API functions" into tizen
Pyun DoHyun [Tue, 11 Oct 2022 02:32:19 +0000 (02:32 +0000)]
Merge "Add the coverage exception for internal API functions" into tizen

18 months agoAdd the coverage exception for internal API functions 18/282718/1
Dohyun Pyun [Tue, 11 Oct 2022 00:30:51 +0000 (09:30 +0900)]
Add the coverage exception for internal API functions

Change-Id: I6bd4fa1281cccd5c4c199ec72d35a67f6788ba8a
Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com>
18 months agoGATT : Fix Server disconnection state change callback 39/282639/1
Anuj Jain [Fri, 7 Oct 2022 06:51:45 +0000 (12:21 +0530)]
GATT : Fix Server disconnection state change callback

This patch fixes the issue of GATT server disconnection callback not
received when server connection state change callback is set using
bt_gatt_server_set_connection_state_changed_cb.

This patch also adds some INVALID_INPUT_PARAMETER checks to new GATT
APIs.

Change-Id: Ie651f9822702a7a15c327361cff8ebd34c156613
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
18 months agoGATT : Fix connection change callback on Client disconnection 19/282619/1
Anuj Jain [Thu, 6 Oct 2022 12:33:21 +0000 (18:03 +0530)]
GATT : Fix connection change callback on Client disconnection

Change-Id: I6f3026f6ecb46e16539bc1d1c7503b3011005593
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
18 months agoGATT : New GATT connect APIs 10/282310/2
Anuj Jain [Thu, 29 Sep 2022 16:33:57 +0000 (22:03 +0530)]
GATT : New GATT connect APIs

This patch saperate the connection state change callbacks for GATT
client and server.
This patch add the following:
-New callback APIs for GATT client and server connection state change
-New GATT client connect API.

Change-Id: Ida1d672db2b41f9a7ea6b210c30dac1e83d929ba
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
18 months agofhub: Add DA features 72/282272/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063739 accepted/tizen/7.0/unified/hotfix/20221116.104614 accepted/tizen/unified/20221006.065311 accepted/tizen/unified/20221006.065349 tizen_7.0_m2_release
Ayush Garg [Thu, 29 Sep 2022 08:06:43 +0000 (13:36 +0530)]
fhub: Add DA features

Applied patches
- add BT_HF_EVENT_AUDIO_MUTE event for audio mute function
- modify profile check routine for HFP & PBAP

This patchset should be merged with the following bluetooth-frwk's
patchset in order to build successfully:
bluetooth-frwk Change-Id: Ifc77646b0ef4cac509c88b647d86855baa658d3e

Change-Id: I3144f6091206891a67e19e81badf80737d8c5df6
Signed-off-by: shss-choi <shss.choi@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
18 months agofhub: add bt_adapter_get_hci_address API 71/282271/1
Ayush Garg [Thu, 29 Sep 2022 06:53:42 +0000 (12:23 +0530)]
fhub: add bt_adapter_get_hci_address API

Change-Id: I4b5d35b48e53e031a2f6fc0bfd4e7b4794bb8c97
Signed-off-by: shss-choi <shss.choi@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
18 months agofhub: Add new profile for Family Hub 70/282270/1
Ayush Garg [Thu, 29 Sep 2022 06:09:19 +0000 (11:39 +0530)]
fhub: Add new profile for Family Hub

Change-Id: Ibcb5f1803f74c3125f361948e854c110b9503a60
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
20 months agoMerge "Make uuid generation RFC 4122 compliant" into tizen
Abhay Agarwal [Thu, 25 Aug 2022 08:39:48 +0000 (08:39 +0000)]
Merge "Make uuid generation RFC 4122 compliant" into tizen

20 months agoAdd device name for l2cap le advertising 72/279572/1 accepted/tizen/unified/20220823.131815 submit/tizen/20220816.082553 submit/tizen/20220822.114248
Wootak Jung [Wed, 10 Aug 2022 23:24:57 +0000 (08:24 +0900)]
Add device name for l2cap le advertising

Change-Id: Ia91934a2499f8d41e3128e23b7f6dc78e8983087

20 months agoMake uuid generation RFC 4122 compliant 38/279438/1
Abhay Agarwal [Tue, 9 Aug 2022 07:04:04 +0000 (12:34 +0530)]
Make uuid generation RFC 4122 compliant

This patch makes the ble mesh uuid generation RFC 4122 compliant
as requried by bletooth-meshd stack.

Change-Id: I30d187c99e526d99b5ff08f7c2fba23a2fb8b5f7
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
21 months agoFix memory leak 61/277461/1
Wootak Jung [Thu, 7 Jul 2022 08:25:22 +0000 (17:25 +0900)]
Fix memory leak

Change-Id: I7b69d7dd795cc532efac9aaee4dab653ac2c60dc

21 months agoRemove gcov rpm 75/276975/2 accepted/tizen/unified/20220630.211953 submit/tizen/20220629.005223
Wootak Jung [Wed, 29 Jun 2022 00:07:10 +0000 (09:07 +0900)]
Remove gcov rpm

Do not make gcov rpm if run coverage manually

Change-Id: Ie465c77d1ac0d0214e3081e36373a13aea46b761

23 months agotest/unittest: Add l2cap le utc 55/275055/2 accepted/tizen/unified/20220615.135357 submit/tizen/20220531.044319 submit/tizen/20220601.225953 submit/tizen/20220614.010252
Wootak Jung [Mon, 16 May 2022 05:15:45 +0000 (14:15 +0900)]
test/unittest: Add l2cap le utc

[   44s] Success [ 581 /  581]
[   44s] Error   [   0 /  581]

Change-Id: I59aca60b6e5f7653ae70580c2d87b6ee88f11872

23 months agotest/bt_unit_test: Fix socket_send_data result log 54/275054/2
Wootak Jung [Wed, 11 May 2022 01:38:49 +0000 (10:38 +0900)]
test/bt_unit_test: Fix socket_send_data result log

Change-Id: I2f00912741958a73174cde2c5cc21bda9c87f40c

23 months agoble_mouse_with_error: Update PTS certification logic 45/274745/1
Wootak Jung [Wed, 4 May 2022 06:32:11 +0000 (15:32 +0900)]
ble_mouse_with_error: Update PTS certification logic

Change-Id: I71339a9f626f4f1e87ce35806b744c2e42193f1d

23 months agoFix wrong param for setting conectable mode 79/274579/1
Wootak Jung [Tue, 3 May 2022 02:25:17 +0000 (11:25 +0900)]
Fix wrong param for setting conectable mode

Change-Id: I40ddd53d0eeff0db2763e678f7f09c0850b90eee

2 years ago[ACR-1694] Add new APIs for L2CAP LE CoC functionality 25/273625/6 accepted/tizen/unified/20220502.003743 submit/tizen/20220428.025526 submit/tizen/20220429.071758
Wootak Jung [Sun, 10 Apr 2022 23:47:16 +0000 (08:47 +0900)]
[ACR-1694] Add new APIs for L2CAP LE CoC functionality

- add new feature:
tizen.org/feature/network.bluetooth.le.coc

Change-Id: I193513b0524daeac8e8c538f8226285ccc07a895

2 years agoAdd PTS certificate related logic 25/273925/1 submit/tizen/20220419.002419
Wootak Jung [Fri, 15 Apr 2022 05:38:59 +0000 (14:38 +0900)]
Add PTS certificate related logic

Change-Id: Ie182427ade7bbf8552baf4dae8354b408c111b22

2 years agoFix bt_unit_test crash issue 32/273732/1
Wootak Jung [Wed, 13 Apr 2022 05:33:07 +0000 (14:33 +0900)]
Fix bt_unit_test crash issue

if service_data_len is 0, crash occured in case of reading service_data

__bt_adapter_le_scan_result_cb:1776() C8:A3:AF:17:AB:21 Adv 22 Scan resp 22 RSSI -80 Addr_type 1
__bt_adapter_le_scan_result_cb:1837() TX Power level = -20
__bt_adapter_le_scan_result_cb:1853() Service UUID[1] = FE2C
__bt_adapter_le_scan_result_cb:1855()         Data[1] = 0x00...(len: 11)
__bt_adapter_le_scan_result_cb:1853() Service UUID[2] = FE03
__bt_adapter_le_scan_result_cb:1830() Device name = JBL CLUB PRO+ TWS-LE

Change-Id: Ib5f3bbcee103a83a850203d866b4bd13aaa3187f

2 years agoLE CoC: Fix disconnection on multiple writes 42/273342/1
Anuj Jain [Mon, 4 Apr 2022 12:46:59 +0000 (18:16 +0530)]
LE CoC: Fix disconnection on multiple writes

This patch fixes the the issue of LE_L2CAP socket disconnection
when write operation is performed more than once by either client or
server.

Change-Id: I6bd2e7fdbfe8ba1931d4a141266da8c902deb228
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoLE CoC: Add unit test for L2CAP_LE type socket connection 66/272066/2 accepted/tizen/unified/20220318.133054 submit/tizen/20220313.220938 submit/tizen/20220314.225934 submit/tizen/20220316.003414 submit/tizen/20220317.013237
Ayush Garg [Mon, 7 Mar 2022 13:06:15 +0000 (18:36 +0530)]
LE CoC: Add unit test for L2CAP_LE type socket connection

This patch adds the following unit test for L2CAP_LE type socket:
- create socket
- destroy socket
- listen socket
- connect socket
- Accept and Reject socket connection
- get psm of listening socket

Change-Id: Ic6adf2738155b3334ce77dbff149b3e04a78a94f
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agoLE CoC: Implement CAPIs 65/272065/2
Ayush Garg [Mon, 7 Mar 2022 11:50:54 +0000 (17:20 +0530)]
LE CoC: Implement CAPIs

This patch primarily handles following:
- CAPIs to create and listen to L2CAP_LE socket
- CAPIs to connect and disconnect to L2CAP_LE socket
- CAPIs to get PSM of the listening L2CAP_LE socket
- Event Handlers for connection, disconnection and
authorization of L2CAP_LE socket

Change-Id: I6ac0595799602db1402778da3f73109366a013c2
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
2 years agoFix gatt send response logic 96/270796/1 accepted/tizen/unified/20220210.105859 submit/tizen/20220209.062549
Wootak Jung [Wed, 9 Feb 2022 06:11:46 +0000 (15:11 +0900)]
Fix gatt send response logic

no need to send response if response_need false

Change-Id: I23f524212fa0dab76b73a17299f3bc85bb75ac5b

2 years agoAdd the module name in the gcov install path 30/270130/1 accepted/tizen/unified/20220127.133235 submit/tizen/20220126.073444
dh79pyun [Wed, 26 Jan 2022 04:52:45 +0000 (13:52 +0900)]
Add the module name in the gcov install path

Change-Id: Idbc17f5e22c8585ee861677b87570d22032a5120
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
2 years agoReplace g_memdup to g_memdup2 83/267883/1 accepted/tizen/unified/20211222.230627 submit/tizen/20211212.233427
dh79pyun [Mon, 13 Dec 2021 02:29:15 +0000 (11:29 +0900)]
Replace g_memdup to g_memdup2

Change-Id: I5a302c2b1810e1d3896ec04f338ce7a74267c62c
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
2 years agoFix pointer corruption in gatt_server_deinitialize 32/267432/1
Ayush Garg [Fri, 3 Dec 2021 10:40:05 +0000 (16:10 +0530)]
Fix pointer corruption in gatt_server_deinitialize

The next node pointer of the gatt_server_list must be
stored before removing the current node.

Change-Id: I416a3a17d0c314f246449d6f458cffe6daaff2c3

2 years agoAdd the custom scan mode setting API 16/267116/1 accepted/tizen/unified/20211130.125443 submit/tizen/20211129.075122
dh79pyun [Fri, 26 Nov 2021 00:29:56 +0000 (09:29 +0900)]
Add the custom scan mode setting API

Change-Id: I9fa8453d31c07fa4599246eb0c7ef2d4c6d44029
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
2 years agoIncrease the version 09/266109/1 submit/tizen/20211109.024659 submit/tizen/20211114.231048
dh79pyun [Mon, 8 Nov 2021 04:10:43 +0000 (13:10 +0900)]
Increase the version

Change-Id: I29869069b060f48f32a78381616970922ee564dd
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
2 years agoGet the default client if the address is NULL 54/265854/1 accepted/tizen/unified/20211102.024818 submit/tizen/20211101.044616
dh79pyun [Sun, 31 Oct 2021 23:14:47 +0000 (08:14 +0900)]
Get the default client if the address is NULL

Change-Id: I327169a22292034f33a5122de7f84837d9b85066
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
2 years agoHandle BT_GATT_CLIENT_SERVICE_RESYNC event 99/265799/1
dh79pyun [Fri, 29 Oct 2021 00:49:53 +0000 (09:49 +0900)]
Handle BT_GATT_CLIENT_SERVICE_RESYNC event

Change-Id: I86582b12e6e89e9a3c6fe20ce3aedeabbb333036
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
2 years agoAdd the coverage exception for internal function 90/265390/1
dh79pyun [Mon, 18 Oct 2021 05:09:21 +0000 (14:09 +0900)]
Add the coverage exception for internal function

Change-Id: I3bfefd0ed1b17e9e20eaf3a68b30e0a44228913c
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
2 years ago[ACR-1666] Add gatt service resync change type 89/264789/2 accepted/tizen/6.5/unified/20211028.094520 accepted/tizen/unified/20211001.001241 submit/tizen/20210930.054510 submit/tizen_6.5/20211028.161701 tizen_6.5.m2_release yes
Wootak Jung [Wed, 29 Sep 2021 23:32:56 +0000 (08:32 +0900)]
[ACR-1666] Add gatt service resync change type

Change-Id: Ifa1a29f098d4c738cdcc356f3999a478f7862e63
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 years agoModify the doxygen of audio profile type 92/263392/3
Wootak Jung [Wed, 1 Sep 2021 23:50:55 +0000 (08:50 +0900)]
Modify the doxygen of audio profile type

Change-Id: Ibc597e96acd91a19fd0cc62944614a63c4bdb30e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 years agoGATT: New callback API for notification state change 70/262170/3 accepted/tizen/unified/20210805.131636 submit/tizen/20210804.223925
Anuj Jain [Tue, 3 Aug 2021 08:49:42 +0000 (14:19 +0530)]
GATT: New callback API for notification state change

Make new callback api for notification enable/disable which
provides additional functionality of reporting client address
on notification state change.

This patchset should be merged with the following bluez and
bluetooth-frwk's patchset in order to match API and avoid crash:
bluez Change-Id:I81a0994f2299e988f8ef6428537647c899700fda
bluetooth-frwk Change-Id: Ib54ba54c318692b4ee0eaef9b2310c60dadeb661

Change-Id: Ic4868234a4fc682f9bff2c66ac1aee2683f3d6c6
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
2 years agoNative TCT fix for HDP 83/261983/3 accepted/tizen/unified/20210802.135804 submit/tizen/20210730.080510
Anuj Bhumiya [Fri, 30 Jul 2021 03:51:23 +0000 (09:21 +0530)]
Native TCT fix for HDP

The app handle is already freeing at the time of
deregistration so no need to free it at registration time.

Change-Id: I0fe1cf3a2f99dfae4e7a846f4b1aa6afb70b2aff
Signed-off-by: Anuj Bhumiya <anuj.bhumiya@samsung.com>
2 years agoFix Svace defect 24/261524/1 accepted/tizen/unified/20210726.135433 submit/tizen/20210726.004751
Anuj Bhumiya [Tue, 20 Jul 2021 12:18:23 +0000 (17:48 +0530)]
Fix Svace defect

This patch includes the fix of svace defect on latest CAPI code.

Change-Id: Ibc49749a28313c2efac315f9f5d551a4a522ef19
Signed-off-by: Anuj Bhumiya <anuj.bhumiya@samsung.com>
2 years agoAllow zero length for GATT server write request 02/259002/1 accepted/tizen/unified/20210607.124357 submit/tizen/20210606.232858
DoHyun Pyun [Mon, 31 May 2021 01:11:21 +0000 (10:11 +0900)]
Allow zero length for GATT server write request

Google's Chromecast app needs to response for zero
length write request in GATT server.

Change-Id: I5142ecd4dc7964caa2421aa0ecb39f0d0055c305
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2 years agoAdd the coverage exception code for new internal APIs 96/258596/1
Wootak Jung [Fri, 21 May 2021 02:07:52 +0000 (11:07 +0900)]
Add the coverage exception code for new internal APIs

Change-Id: I816eaf5804ec7668ec834d7297b933ee555a7538
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 years agoMove HF type definitions from internal to extension 38/257938/1
DoHyun Pyun [Fri, 7 May 2021 02:34:53 +0000 (11:34 +0900)]
Move HF type definitions from internal to extension

Change-Id: I0e87bd7c9f0de4fbd2d2d0cf53a8e56de90c38db
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoMesh: added message response on Node Role 27/257127/3 accepted/tizen/unified/20210427.085759 submit/tizen/20210426.061315
anuj.bhumiya [Mon, 19 Apr 2021 10:09:45 +0000 (15:39 +0530)]
Mesh: added message response on Node Role

This patch implements the message response from node
side to Provisioner node when it receive any message
from provisioner.

Change-Id: I3b8f1d092985bd489a5732a685eecedc74212e6a
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
3 years agoAdd the coverage exception for internal function 99/256499/1
DoHyun Pyun [Tue, 6 Apr 2021 00:05:29 +0000 (09:05 +0900)]
Add the coverage exception for internal function

Change-Id: I33a628f5f9ae5474e4f885aea3dfb867bb721c3b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoMesh: Implement Mesh Node Role API's 25/254325/5 accepted/tizen/unified/20210331.054026 submit/tizen/20210330.044039
anuj.bhumiya [Fri, 26 Feb 2021 11:30:48 +0000 (17:00 +0530)]
Mesh: Implement Mesh Node Role API's

This patch implements the Mesh node role for device.
Join API create a fresh node and set callbacks for join complete
and message execution callbacks.
Cancel API destroy the outgoing request initiated by Join API
and destroy the node from the application

Change-Id: Ic7127b90849223626c94351c63a2e86e092065f6
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
3 years agoRemove spp test service file 95/254195/1 accepted/tizen/unified/20210226.131933 submit/tizen/20210225.094502
DoHyun Pyun [Thu, 25 Feb 2021 00:42:07 +0000 (09:42 +0900)]
Remove spp test service file

Change-Id: I8e3e7adb140748208c1568a155d86c93b4d50144
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoAdd the coverage exception for internal function 94/254194/1
DoHyun Pyun [Wed, 24 Feb 2021 23:40:20 +0000 (08:40 +0900)]
Add the coverage exception for internal function

Change-Id: Ic1a556c05bfbde00fa732a52719d5c7e03fdb7cf
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoAdd advertising data setting function for TDS AD type 39/253139/2 accepted/tizen/unified/20210209.124411 submit/tizen/20210208.222837
Wootak Jung [Thu, 4 Feb 2021 23:30:44 +0000 (08:30 +0900)]
Add advertising data setting function for TDS AD type

Change-Id: Ia8567a27457adf75a488a633d0e8833690b80973
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
3 years agoMesh: Add Join Network API 13/251513/2
anuj.bhumiya [Thu, 14 Jan 2021 11:21:30 +0000 (16:51 +0530)]
Mesh: Add Join Network API

This patch add support of Mesh Node Role,
this API create a fresh unprovisioned
Mesh Node available to attach/provision in
any Network.

Change-Id: Ief4e9f4c92f9934b6e074d728b3e0f74b1022874
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
3 years agoFix the svace issue (UNINIT.LOCAL_VAR.EX) 50/250350/2 accepted/tizen/unified/20201229.124655 accepted/tizen/unified/20210128.132331 submit/tizen/20201228.031005 submit/tizen/20210127.232224
DoHyun Pyun [Thu, 24 Dec 2020 00:29:24 +0000 (09:29 +0900)]
Fix the svace issue (UNINIT.LOCAL_VAR.EX)

Change-Id: I16a8a39fcea1618164112708ceec83f5ded3e99a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoRemove the html link for privilege name 92/249792/1 accepted/tizen/unified/20201218.124453 submit/tizen/20201217.021725
DoHyun Pyun [Thu, 17 Dec 2020 00:12:24 +0000 (09:12 +0900)]
Remove the html link for privilege name

Change-Id: Ia64fb3712ef63ecf6c8b01a1226b32ff6fe8a99f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>