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>
DoHyun Pyun [Mon, 31 Aug 2020 02:02:37 +0000 (11:02 +0900)]
Cover the missed coverage functions and lines
Change-Id: I07be13e0b7b539cec36c07db474b30e4e4f023c3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Fri, 28 Aug 2020 02:16:06 +0000 (11:16 +0900)]
Prevent the heap buffer overflow
It is possible to occur the heap buffer overflow without
checking the length. So limit the maximum length for it.
==bluetooth-native-itc==12977==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xaf4531e0 at pc 0xb6a037eb bp 0xbedf4994 sp 0xbedf4560
READ of size 18 at 0xaf4531e0 thread T0
0xb6a037e8 in printf_common(void*, char const*, std::__va_list) /usr/src/debug/gcc-9.2.0/obj/armv7l-tizen-linux-gnueabi/libsanitizer/asan/../../../../libsanitizer/sanitizer_common/sanitizer_common_interceptors_format.inc:546
0xb6a0452e in __interceptor_vfprintf /usr/src/debug/gcc-9.2.0/obj/armv7l-tizen-linux-gnueabi/libsanitizer/asan/../../../../libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1720 (discriminator 10)
0xaf4531e0 is located 0 bytes to the right of 16-byte region [0xaf4531d0,0xaf4531e0)
0xb67ed18e in bt_adapter_get_local_oob_data /usr/src/debug/capi-network-bluetooth-0.5.3/src/bluetooth-adapter.c:1107
0xb6f68994 in ITc_bluetooth_adapter_bt_adapter_get_local_oob_data_p src/ITs-bluetooth-adapter.c:750
Change-Id: I719c97fd97f919a5376cd9fd7e633612b855655e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Thu, 27 Aug 2020 01:09:33 +0000 (01:09 +0000)]
Merge "Mesh: Accept Token in unit TC for loading Network" into tizen
Pyun DoHyun [Thu, 27 Aug 2020 01:09:30 +0000 (01:09 +0000)]
Merge "Mesh: Fix bug in Network load API" into tizen
Pyun DoHyun [Thu, 27 Aug 2020 01:08:26 +0000 (01:08 +0000)]
Merge "CAPI:Allows multiple service data in LE advertising" into tizen
Pyun DoHyun [Thu, 27 Aug 2020 01:07:59 +0000 (01:07 +0000)]
Merge "Modify logs in the mesh senario" into tizen
Pyun DoHyun [Thu, 27 Aug 2020 01:07:50 +0000 (01:07 +0000)]
Merge "Fix the svace issue (SIZE MISMATCH)" into tizen
Anupam [Wed, 26 Aug 2020 17:55:48 +0000 (23:25 +0530)]
Mesh: Accept Token in unit TC for loading Network
This patch also handles initialization of node
vendor & feature info during node creation.
Change-Id: I2ed4b7c77f42f20fca877860c1fb12037c144812
Signed-off-by: Anupam <anupam.r@samsung.com>
Anupam [Wed, 26 Aug 2020 17:48:14 +0000 (23:18 +0530)]
Mesh: Fix bug in Network load API
This patch handles following:-
- Network handle was not returned
after Networking loading is successful.
- Vendor & Feature informations were not
initialized.
Change-Id: I929e95f30f78d5b59bee592be6d0620e28a74153
Signed-off-by: Anupam <anupam.r@samsung.com>
Amit Purwar [Wed, 26 Aug 2020 16:07:38 +0000 (21:37 +0530)]
Mesh gtest: Fix the load network testcase
Change-Id: I3dd5a55529af20a38063c8fa4b52ada0623f6f82
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Amit Purwar [Wed, 19 Aug 2020 10:29:51 +0000 (15:59 +0530)]
CAPI:Allows multiple service data in LE advertising
Change-Id: I07307798b29b3ed00c59c2416c2ae82c03f6198c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
DoHyun Pyun [Tue, 25 Aug 2020 23:15:13 +0000 (08:15 +0900)]
Modify logs in the mesh senario
Change-Id: Id3ea2ce5c5eea339f7bc47f8a9415e18e1ce46e0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Tue, 25 Aug 2020 23:04:05 +0000 (08:04 +0900)]
Fix the svace issue (SIZE MISMATCH)
Change-Id: Iaa43e331d02b4653654d9f22815f0cbacb919d55
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Abhay Agarwal [Tue, 25 Aug 2020 12:56:21 +0000 (18:26 +0530)]
Mesh: unit test: Modify scenario configuration
This patch adds logic to try mesh configuration API calls
multiple times till received success.
This patch also adds 'wait' for scan cancel response.
Change-Id: Iaaa7f488c35ee9514178630999fcb95b28473bae
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Pyun DoHyun [Mon, 24 Aug 2020 22:28:17 +0000 (22:28 +0000)]
Merge "Mesh: Add robustness verification scenarios" into tizen
Pyun DoHyun [Mon, 24 Aug 2020 22:28:14 +0000 (22:28 +0000)]
Merge "Mesh: Convert list variables to global static" into tizen
Anupam [Mon, 24 Aug 2020 13:21:08 +0000 (18:51 +0530)]
Mesh: Add robustness verification scenarios
This patch adds following scenarios in mesh unit test
- Provision to create 'n' number of networks
- Provision to destroy all networks created by above step
- Provision to create & destroy 'n' number of networks
- Provision to init & deinit 'n' number of times
Change-Id: I2b418f6d53dfdac7f930e72824b9408e0b362caa
Signed-off-by: Anupam <anupam.r@samsung.com>
Anupam [Mon, 24 Aug 2020 13:15:35 +0000 (18:45 +0530)]
Mesh: Convert list variables to global static
Change-Id: I3c041db3a82efeacab47c7e80ac2f8afad670fc6
Signed-off-by: Anupam <anupam.r@samsung.com>
Wootak Jung [Fri, 21 Aug 2020 07:34:43 +0000 (16:34 +0900)]
Fix api reference
Change-Id: I626a2454bee323ff9d4efb4929b69731945ea631
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Fri, 21 Aug 2020 03:57:05 +0000 (03:57 +0000)]
Merge "Add le_is_discovering unit test" into tizen
Pyun DoHyun [Fri, 21 Aug 2020 00:07:24 +0000 (00:07 +0000)]
Merge "Mesh: Unload Network before deinitialiation" into tizen
Anupam Roy [Thu, 20 Aug 2020 16:26:52 +0000 (21:56 +0530)]
Mesh: Unload Network before deinitialiation
Currently, unloading only removes the network
resources from bt-service layer. So, deinit
of mesh stack was OK to be done before unloading
of network.
But, now, mesh FRWK shall request to
free the network's DBUS resources(proxies) to
mesh stack. So deinitialization is moved below
unloading of network, to ensure, all network
resouces are properly cleaned up before deinit.
Change-Id: I08e208759391d87d19ba31d580f6deac70cc45c2
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Wootak Jung [Thu, 20 Aug 2020 04:27:52 +0000 (13:27 +0900)]
Add le_is_discovering unit test
Change-Id: I38d0b9bc89b7324ca59994e9ea1617ae82acbf6f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Thu, 20 Aug 2020 03:53:18 +0000 (03:53 +0000)]
Merge "Mesh: Unload Network & free handles after de-init" into tizen
Anupam Roy [Wed, 19 Aug 2020 15:43:51 +0000 (21:13 +0530)]
Mesh: Unload Network & free handles after de-init
All Network & its containing handles are freed
after deinitialization of Mesh.
Change-Id: I32d86a119b88b7c282bb890f7aa318212e23624c
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Abhay Agarwal [Fri, 10 Jul 2020 05:02:29 +0000 (10:32 +0530)]
Mesh: unit test: Add scenario table
This patch adds user friendly scenarios which can be used
for verification of mesh APIs.
These scenarios include mesh network creation, configuration
and control.
Change-Id: I1b10254f92e029d65eef89e5ae2259bf89bdbac6
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Abhay Agarwal [Tue, 18 Aug 2020 09:53:20 +0000 (15:23 +0530)]
Mesh: unit test: Add control menu
Change-Id: I78ca5a3f0ef32108b0f91d238ab7fbfcb3027f78
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Anupam Roy [Mon, 17 Aug 2020 18:33:15 +0000 (00:03 +0530)]
Mesh: Initialize Vendor Info in local config node
Change-Id: I599d59ec3648b771f0ba5d8114edfa43ed9c227b
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Mon, 17 Aug 2020 18:29:21 +0000 (23:59 +0530)]
Mesh: Add sanity checks for handles
This patch adds handle validation checks
at several places to prevent application
crash in case of passing invalid handles
from application.
Change-Id: I1bf47bf631b2aa06c185da84d27e655d7b115adc
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Pyun DoHyun [Fri, 14 Aug 2020 00:26:53 +0000 (00:26 +0000)]
Merge "Mesh: Add case for Node Reset in mesh unit test" into tizen
Pyun DoHyun [Fri, 14 Aug 2020 00:26:51 +0000 (00:26 +0000)]
Merge "Mesh: Add support for remote node reset operation" into tizen