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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ayush Garg [Thu, 20 Oct 2022 05:36:28 +0000 (05:36 +0000)]
Merge "Inclusive Language Changes" into tizen
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>
Pyun DoHyun [Tue, 11 Oct 2022 02:32:19 +0000 (02:32 +0000)]
Merge "Add the coverage exception for internal API functions" into tizen
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>
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>
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>
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>
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>
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>
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>
Abhay Agarwal [Thu, 25 Aug 2022 08:39:48 +0000 (08:39 +0000)]
Merge "Make uuid generation RFC 4122 compliant" into tizen
Wootak Jung [Wed, 10 Aug 2022 23:24:57 +0000 (08:24 +0900)]
Add device name for l2cap le advertising
Change-Id: Ia91934a2499f8d41e3128e23b7f6dc78e8983087
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>
Wootak Jung [Thu, 7 Jul 2022 08:25:22 +0000 (17:25 +0900)]
Fix memory leak
Change-Id: I7b69d7dd795cc532efac9aaee4dab653ac2c60dc
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
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
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
Wootak Jung [Wed, 4 May 2022 06:32:11 +0000 (15:32 +0900)]
ble_mouse_with_error: Update PTS certification logic
Change-Id: I71339a9f626f4f1e87ce35806b744c2e42193f1d
Wootak Jung [Tue, 3 May 2022 02:25:17 +0000 (11:25 +0900)]
Fix wrong param for setting conectable mode
Change-Id: I40ddd53d0eeff0db2763e678f7f09c0850b90eee
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
Wootak Jung [Fri, 15 Apr 2022 05:38:59 +0000 (14:38 +0900)]
Add PTS certificate related logic
Change-Id: Ie182427ade7bbf8552baf4dae8354b408c111b22
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
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>
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>
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>
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
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ayush Garg [Thu, 3 Dec 2020 11:16:44 +0000 (16:46 +0530)]
Add GATT Service handlers to GATT handle list
At present, The validation check logic for GATT service handler is
returning error in some GATT client role's APIs (ex. bt_gatt_get_uuid)
because their handlers were not maintained in the 'gatt_handle_list'.
This change will maintain such handlers.
Change-Id: I39e35f6df7a5de7ea0e574d3ef4a71f1c67c074b
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Wootak Jung [Tue, 1 Dec 2020 23:50:14 +0000 (08:50 +0900)]
Fix svace issues
Change-Id: I529d4113f1bbfffd5a9459dba3f7f564ebf792d0
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Ayush Garg [Thu, 26 Nov 2020 11:28:37 +0000 (16:58 +0530)]
Validate GATT handle in CAPI
Validation of GATT handle is missing in few CAPIs (ex. bt_gatt_characteristic_destroy)
which leads to coredump sometimes.
One such scenario is when application accidently calls bt_gatt_characteristic_destroy
even after destroying the GATT server.
This change will handle such cases.
Change-Id: Iafb43af73ee25b192bfa673bbde7f96498c1557e
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Anupam Roy [Fri, 20 Nov 2020 07:10:52 +0000 (12:40 +0530)]
Fix position of setting is_own GATT attribute handle
Issue: is_own_handle variable is wrongly set when
GATT read/write callback is found for the
attribute handle. But, it is possible that, callback is
explicitly not set by application for one of its
own handle. In such case, is_own_handle will remain
false, even when the attribute is owned by the app.
This will cause to miss the GATT internal response
by CAPI, when response is needed for that attribute.
Fix: is_own_handle is set to true, when GATT attribute is
matched for an application.
Change-Id: I85be0fcc03881372c46c76c56cfc69e1952f0163
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Wootak Jung [Fri, 13 Nov 2020 01:22:34 +0000 (10:22 +0900)]
Modify TDS transport type enums
Change-Id: I35449316d8c2bf6a15ced2288d0e8b1c5320f087
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Thu, 12 Nov 2020 02:22:21 +0000 (11:22 +0900)]
Add TDS transport type
Change-Id: Ic6283adb0d6b5ee20d1f973a7f11c12ce17ad573
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
anuj.bhumiya [Tue, 3 Nov 2020 10:11:15 +0000 (15:41 +0530)]
Add api to set advertising interval
This api provides a way to set advertising intervals for
a particular advertising instance.
Change-Id: I9d2164d156e21694f68154b611a0fdbabe50b171
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
Ayush Garg [Mon, 2 Nov 2020 09:28:39 +0000 (14:58 +0530)]
Implement unit test for bt_adapter_le_is_scan_filter_supported() CAPI
Change-Id: I9e7b1b3d82c9fa2e40688d3270ee4f9daff52a64
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Ayush Garg [Fri, 30 Oct 2020 10:06:41 +0000 (15:36 +0530)]
Implement RSSI scan filter
Change-Id: Ic4d4256f1a21d116fd3c7d9557f5983922d5f6e6
Signed-off-by: ayushgrg04 <ayush.garg@samsung.com>
Wootak Jung [Wed, 28 Oct 2020 00:01:10 +0000 (09:01 +0900)]
Apply GATT function for TDS API
Change-Id: I065886e5aab498b0b0a64c53f0e11f7d25d3869f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
DoHyun Pyun [Mon, 26 Oct 2020 23:04:29 +0000 (08:04 +0900)]
Add the coverage exception for internal function
Change-Id: I63d74438f316a8e955e57fcca49e116922e23cfa
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Anupam Roy [Mon, 12 Oct 2020 07:44:49 +0000 (13:14 +0530)]
Validate address for sending GATT notification
This patch handles validating remote address provided
by application for sending GATT server notification.
Change-Id: Iaae70970bd9f03b2da2beb8e9f0e63f8fad2ea43
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
DoHyun Pyun [Thu, 24 Sep 2020 03:12:36 +0000 (12:12 +0900)]
Fix the valgrind issue
Invalid read of size 1
at 0x4B02F70: ____strtoul_l_internal (strtol_l.c:432)
by 0x4B027F7: strtoul (strtol.c:106)
by 0x489628F: ??? (in /usr/lib/libcapi-network-bluetooth.so.0.6.0)
Change-Id: I074cacec908b65fd87e5376be16d96df528aa9f1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 16 Sep 2020 23:06:21 +0000 (08:06 +0900)]
Fix the coverity issues
Change-Id: I2e09d3d35cc6c820a303f6c2fbb0f495b55fbacf
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Abhay Agarwal [Fri, 11 Sep 2020 09:36:37 +0000 (15:06 +0530)]
Mesh: Fix crash due to derefence of NULL pointer
This patch fix the crash occured due to dererencing without null check
(gdb) bt
0 0xf7051b4a in g_slist_length () from /lib/libglib-2.0.so.0
1 0xf716ab6c in __bt_mesh_destroy_network_handles (net=net@entry=0x1fc9100) at /usr/src/debug/capi-network-bluetooth-0.6.0/src/bluetooth-mesh.c:869
2 0xf716ae14 in __bt_mesh_destroy_network_handles (net=0x1fc9100) at /usr/src/debug/capi-network-bluetooth-0.6.0/src/bluetooth-mesh.c:854
3 __mesh_unload_network_configurations (data=0x1fc9100, user_data=<optimized out>) at /usr/src/debug/capi-network-bluetooth-0.6.0/src/bluetooth-mesh.c:709
4 0xf7051b6c in g_slist_foreach () from /lib/libglib-2.0.so.0
5 0xf716bc9e in bt_mesh_deinitialize () at /usr/src/debug/capi-network-bluetooth-0.6.0/src/bluetooth-mesh.c:731
Change-Id: I25aee100d88f4fa281cdeb6f04b64bf6d60184ff
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Abhay Agarwal [Thu, 10 Sep 2020 15:17:28 +0000 (20:47 +0530)]
Mesh: Fix coding style issue
Change-Id: Ie89ac34cb0d7668ef3165b99caf47fe52dfef02d
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Wootak Jung [Thu, 10 Sep 2020 02:11:46 +0000 (11:11 +0900)]
Fix le advertising service data parsing logic
Change-Id: I02a964819ebf1e51a39f9f78cf55c30fda5bc700
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Amit Purwar [Fri, 4 Sep 2020 14:14:49 +0000 (19:44 +0530)]
Add gtest testcases for mesh network
Add the testcase for node reset, mesh network destroy,
model, group send msg and get primary address
Change-Id: I3e43ec7f81819ec7d7815f204efe25997aa9798b
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
DoHyun Pyun [Thu, 3 Sep 2020 05:24:27 +0000 (14:24 +0900)]
Fix the API reference error
Change-Id: I5e555ec99548f4769fd4ea62dc0a919c23a55b0f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Tue, 1 Sep 2020 06:34:23 +0000 (06:34 +0000)]
Merge "Mesh: unit test: set transition time for node control" into tizen
Abhay Agarwal [Tue, 1 Sep 2020 04:01:55 +0000 (09:31 +0530)]
Mesh: unit test: set transition time for node control
Default values for the Generic Default Transition Step Resolution
and the Default Transition Number of Steps are implementation
speficic and are defined by a device manufacturer.
This patch sets transition time while controlling node.
Change-Id: I5cfbfd186efc9957790ec16b156fc18fa037cc41
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
DoHyun Pyun [Tue, 1 Sep 2020 00:45:49 +0000 (09:45 +0900)]
Fix the ASAN build error
Change-Id: Ic4f782c2bb1950f39d8d61405605bb77c3673a71
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 31 Aug 2020 23:14:00 +0000 (08:14 +0900)]
Fix the memory leak
Change-Id: I979015708fe61ab9146cdd56a8670b8adba6019b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>