platform/core/api/bluetooth.git
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>
3 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>
3 years agoAdd GATT Service handlers to GATT handle list 48/248948/2
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>
3 years agoFix svace issues 19/248719/1 accepted/tizen/unified/20201202.124931 submit/tizen/20201202.002505
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>
3 years agoValidate GATT handle in CAPI 33/248433/1
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>
3 years agoFix position of setting is_own GATT attribute handle 69/248069/2
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>
3 years agoModify TDS transport type enums 24/247624/1
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>
3 years agoAdd TDS transport type 33/247533/2 accepted/tizen/unified/20201113.130837 submit/tizen/20201113.003453
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>
3 years agoAdd api to set advertising interval 18/246718/3 accepted/tizen/unified/20201111.124823 submit/tizen/20201109.212850
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>
3 years agoImplement unit test for bt_adapter_le_is_scan_filter_supported() CAPI 09/246609/1
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>
3 years agoImplement RSSI scan filter 15/246515/2 accepted/tizen/unified/20201103.052003 submit/tizen/20201102.065935
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>
3 years agoApply GATT function for TDS API 94/246294/2
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>
3 years agoAdd the coverage exception for internal function 98/246198/1 accepted/tizen/unified/20201029.125009 submit/tizen/20201027.003129
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>
3 years agoValidate address for sending GATT notification 70/245570/2
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>
3 years agoFix the valgrind issue 50/244750/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.122631 accepted/tizen/6.0/unified/hotfix/20201103.004928 accepted/tizen/6.0/unified/hotfix/20201103.052335 accepted/tizen/unified/20200928.004603 submit/tizen/20200924.060847 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
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>
3 years agoFix the coverity issues 85/244285/1 accepted/tizen/unified/20200923.093732 submit/tizen/20200917.075044 submit/tizen/20200923.005759
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>
3 years agoMesh: Fix crash due to derefence of NULL pointer 46/243946/1 accepted/tizen/unified/20200914.131334 submit/tizen/20200913.230045
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>
3 years agoMesh: Fix coding style issue 63/243863/1
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>
3 years agoFix le advertising service data parsing logic 66/243766/1 accepted/tizen/unified/20200910.123916 submit/tizen/20200910.053710
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>
3 years agoAdd gtest testcases for mesh network 22/243322/3 accepted/tizen/unified/20200909.014254 submit/tizen/20200907.031811
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>
3 years agoFix the API reference error 87/243087/1
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>
3 years agoMerge "Mesh: unit test: set transition time for node control" into tizen accepted/tizen/unified/20200902.011921 submit/tizen/20200901.064142
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

3 years agoMesh: unit test: set transition time for node control 20/242820/2
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>
3 years agoFix the ASAN build error 37/242737/1
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>
3 years agoFix the memory leak 36/242736/1
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>
3 years agoCover the missed coverage functions and lines 96/242696/1 accepted/tizen/unified/20200901.042006 submit/tizen/20200831.035527
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>
3 years agoPrevent the heap buffer overflow 62/242562/1
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>
3 years agoMerge "Mesh: Accept Token in unit TC for loading Network" into tizen accepted/tizen/unified/20200831.002541 submit/tizen/20200827.215651
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

3 years agoMerge "Mesh: Fix bug in Network load API" 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

3 years agoMerge "CAPI:Allows multiple service data in LE advertising" 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

3 years agoMerge "Modify logs in the mesh senario" into tizen
Pyun DoHyun [Thu, 27 Aug 2020 01:07:59 +0000 (01:07 +0000)]
Merge "Modify logs in the mesh senario" into tizen

3 years agoMerge "Fix the svace issue (SIZE MISMATCH)" into tizen
Pyun DoHyun [Thu, 27 Aug 2020 01:07:50 +0000 (01:07 +0000)]
Merge "Fix the svace issue (SIZE MISMATCH)" into tizen

3 years agoMesh: Accept Token in unit TC for loading Network 15/242415/2
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>
3 years agoMesh: Fix bug in Network load API 14/242414/1
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>
3 years agoMesh gtest: Fix the load network testcase 11/242411/1
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>
3 years agoCAPI:Allows multiple service data in LE advertising 60/241360/5
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>
3 years agoModify logs in the mesh senario 64/242364/1
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>
3 years agoFix the svace issue (SIZE MISMATCH) 63/242363/1
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>
3 years agoMesh: unit test: Modify scenario configuration 56/242356/2 accepted/tizen/unified/20200827.105821 submit/tizen/20200825.221936
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>
3 years agoMerge "Mesh: Add robustness verification scenarios" into tizen accepted/tizen/unified/20200826.133101 submit/tizen/20200825.072855
Pyun DoHyun [Mon, 24 Aug 2020 22:28:17 +0000 (22:28 +0000)]
Merge "Mesh: Add robustness verification scenarios" into tizen

3 years agoMerge "Mesh: Convert list variables to global static" 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

3 years agoMesh: Add robustness verification scenarios 52/242152/2
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>
3 years agoMesh: Convert list variables to global static 51/242151/1
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>
3 years agoFix api reference 75/241975/1
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>
3 years agoMerge "Add le_is_discovering unit test" into tizen
Pyun DoHyun [Fri, 21 Aug 2020 03:57:05 +0000 (03:57 +0000)]
Merge "Add le_is_discovering unit test" into tizen

3 years agoMerge "Mesh: Unload Network before deinitialiation" into tizen accepted/tizen/unified/20200825.142904 submit/tizen/20200821.002054
Pyun DoHyun [Fri, 21 Aug 2020 00:07:24 +0000 (00:07 +0000)]
Merge "Mesh: Unload Network before deinitialiation" into tizen

3 years agoMesh: Unload Network before deinitialiation 99/241899/1
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>
3 years agoAdd le_is_discovering unit test 18/241418/1
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>
3 years agoMerge "Mesh: Unload Network & free handles after de-init" into tizen accepted/tizen/unified/20200821.042423 submit/tizen/20200820.041741
Pyun DoHyun [Thu, 20 Aug 2020 03:53:18 +0000 (03:53 +0000)]
Merge "Mesh: Unload Network & free handles after de-init" into tizen

3 years agoMesh: Unload Network & free handles after de-init 85/241385/1
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>
3 years agoMesh: unit test: Add scenario table 94/241294/2
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>
3 years agoMesh: unit test: Add control menu 93/241293/1
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>
3 years agoMesh: Initialize Vendor Info in local config node 32/241132/2 accepted/tizen/unified/20200819.035929 submit/tizen/20200817.231237
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>
3 years agoMesh: Add sanity checks for handles 31/241131/1
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>
3 years agoMerge "Mesh: Add case for Node Reset in mesh unit test" into tizen accepted/tizen/unified/20200818.130015 submit/tizen/20200814.005814
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

3 years agoMerge "Mesh: Add support for remote node reset operation" 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

3 years agoMesh: Add case for Node Reset in mesh unit test 94/240994/1
Anupam Roy [Thu, 13 Aug 2020 10:48:33 +0000 (16:18 +0530)]
Mesh: Add case for Node Reset in mesh unit test

Change-Id: If709fdab1d6bf0d811139b19af9ca557021ac3e0
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
3 years agoMesh: Add support for remote node reset operation 93/240993/1
Anupam Roy [Thu, 13 Aug 2020 10:46:53 +0000 (16:16 +0530)]
Mesh: Add support for remote node reset operation

Change-Id: I55cf2ed663adfadc6bceca515ca8df6f2768d40e
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
3 years agoAdd Gtest testcase for CONFIG feature of Mesh framework 76/240776/2
Amit Purwar [Mon, 10 Aug 2020 07:03:04 +0000 (12:33 +0530)]
Add Gtest testcase for CONFIG feature of Mesh framework

Change-Id: I181c27d43a0b07cfc132bb990e4c21164cd64629
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
3 years agoMesh: Add cases in unit test 07/240807/2 accepted/tizen/unified/20200812.143920 submit/tizen/20200811.230110
Anupam Roy [Tue, 11 Aug 2020 14:33:27 +0000 (20:03 +0530)]
Mesh: Add cases in unit test

This patch adds following cases in mesh unit test
- Destroy Network
- Create & Destroy Network(s) in loop for stress test

Change-Id: I7c02e8799d93c4fa4555e5022928aa23a7d01981
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
3 years agoMerge "Mesh: Remove limitation of five Networks" into tizen
Pyun DoHyun [Tue, 11 Aug 2020 22:45:00 +0000 (22:45 +0000)]
Merge "Mesh: Remove limitation of five Networks" into tizen

3 years agoMerge "Mesh: Add support for Mesh network Destroy" into tizen
Pyun DoHyun [Tue, 11 Aug 2020 22:44:38 +0000 (22:44 +0000)]
Merge "Mesh: Add support for Mesh network Destroy" into tizen

3 years agoMesh: Remove limitation of five Networks 06/240806/3
Anupam Roy [Tue, 11 Aug 2020 14:30:28 +0000 (20:00 +0530)]
Mesh: Remove limitation of five Networks

This patch removes limitation of total 5 Mesh Networks
per app from CAPI layer.

TODO: Restriction per app will be handled in service layer

Change-Id: Ib8442db1cd0a95a9580303bf353d1bd0417e5d3f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
3 years agoMesh: Add support for Mesh network Destroy 05/240805/1
Anupam Roy [Tue, 11 Aug 2020 14:27:09 +0000 (19:57 +0530)]
Mesh: Add support for Mesh network Destroy

Change-Id: Ie2e8dd2f038567ea2f2c235b96885b6ac44a786d
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
3 years agoMerge "Fix the failed GTEST for mesh framework" into tizen
Pyun DoHyun [Mon, 10 Aug 2020 23:01:03 +0000 (23:01 +0000)]
Merge "Fix the failed GTEST for mesh framework" into tizen

3 years agoMesh: Add API for group message communication 00/240700/1
Abhay Agarwal [Mon, 10 Aug 2020 13:02:26 +0000 (18:32 +0530)]
Mesh: Add API for group message communication

This patch introduces an API which can be used to
send/receive group messages.

Change-Id: I64d63126db38f8cd7f826b41e0aa904cb92217ac
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoFix the failed GTEST for mesh framework 49/240549/2
Amit Purwar [Fri, 7 Aug 2020 09:38:46 +0000 (15:08 +0530)]
Fix the failed GTEST for mesh framework

Change-Id: Ia3be0ee2b66ccd67d87a8c9490f2e0f9655a2e31
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
3 years agoMesh: Refactor Model Get & Set publication codes 82/240582/3
Anupam Roy [Fri, 7 Aug 2020 14:41:30 +0000 (20:11 +0530)]
Mesh: Refactor Model Get & Set publication codes

This patch adds some exception handling in the
CAPI for invalid model & group handles by application.
It also does some minor refactoring.

Change-Id: Ie1184f75bbe9a2c3818c58d9fa1643791faeee6d
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
3 years agoFix build error in gtest of mesh framework 83/240483/2
Amit Purwar [Thu, 6 Aug 2020 14:29:00 +0000 (19:59 +0530)]
Fix build error in gtest of mesh framework

Change-Id: I0e766ef24be3add9133711386fada395d3f4bdd0
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
3 years agoMerge "Add Gtest testcase for Network feature of Mesh framework" into tizen
Pyun DoHyun [Thu, 6 Aug 2020 05:26:31 +0000 (05:26 +0000)]
Merge "Add Gtest testcase for Network feature of Mesh framework" into tizen

3 years agoMerge "Add notify_char_changed callback handling logic" into tizen
Pyun DoHyun [Thu, 6 Aug 2020 02:27:46 +0000 (02:27 +0000)]
Merge "Add notify_char_changed callback handling logic" into tizen

3 years agoAdd notify_char_changed callback handling logic 11/240311/2
Wootak Jung [Wed, 5 Aug 2020 07:40:14 +0000 (16:40 +0900)]
Add notify_char_changed callback handling logic

In case fd is acquired, just write on the fd.
so, need to generate callback after write().

Change-Id: Ica4972f447737b381da448173123f4ec21e38f4a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
3 years agoFix the 64bit build error 71/240371/1 accepted/tizen/unified/20200810.123220 submit/tizen/20200804.074118
DoHyun Pyun [Thu, 6 Aug 2020 01:27:41 +0000 (10:27 +0900)]
Fix the 64bit build error

error: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]

Change-Id: I8e41f70688269b519261f94ced6891267bf243c6
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoAdd Gtest testcase for Network feature of Mesh framework 17/240017/5
Amit Purwar [Fri, 31 Jul 2020 10:13:37 +0000 (15:43 +0530)]
Add Gtest testcase for Network feature of Mesh framework

Change-Id: Ie21a980f5bd246921e6d8a576932d11187e4f591
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
3 years agoModify the package version 37/240037/2
DoHyun Pyun [Mon, 3 Aug 2020 01:20:45 +0000 (10:20 +0900)]
Modify the package version

In order to distinguish the package history as tizen version,
we manage the package version from now.

Change-Id: I3ee6d7db77b1d12046dd7ba98a16b3501c9529a9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoMerge "Mesh: Apply fix in Model Subscripton List CAPI" into tizen
Pyun DoHyun [Mon, 3 Aug 2020 00:50:37 +0000 (00:50 +0000)]
Merge "Mesh: Apply fix in Model Subscripton List CAPI" into tizen

3 years agoMesh: Apply fix in Model Subscripton List CAPI 18/240018/1
Anupam Roy [Fri, 31 Jul 2020 11:05:10 +0000 (16:35 +0530)]
Mesh: Apply fix in Model Subscripton List CAPI

This patch handles following issues
- Remove double free of Subscription list
- Fix Wrong sync event index for Model List Callback
- Minor code refactoring in Model Subscription List API

Change-Id: I9a6dbf5d34f7ecb387eda7a2868ee788dc4fd215
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
3 years agoMesh unit test: Add support for model message communication 15/240015/1
Abhay Agarwal [Fri, 31 Jul 2020 09:32:54 +0000 (15:02 +0530)]
Mesh unit test: Add support for model message communication

Change-Id: I5e3524b19b1f8570821da0437940eea0b18b6547
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoMesh: Add API for mesh message communication 14/240014/1
Abhay Agarwal [Mon, 27 Jul 2020 07:16:10 +0000 (12:46 +0530)]
Mesh: Add API for mesh message communication

This patch introduces an interface which can be used to
send/receive mesh messages originated/received by local node
which needs to be encypted/decrypted using application key.

Change-Id: I2013811ef191a88a6a385ca8ba6dcde2f1f7c8de
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoMerge "Add offset handling logic in bt_unit_test" into tizen
Pyun DoHyun [Fri, 31 Jul 2020 02:27:42 +0000 (02:27 +0000)]
Merge "Add offset handling logic in bt_unit_test" into tizen

3 years agoMesh: Fix bug in callback handling 99/239899/1 accepted/tizen/unified/20200803.122021 submit/tizen/20200731.001830
Anupam Roy [Thu, 30 Jul 2020 10:41:01 +0000 (16:11 +0530)]
Mesh: Fix bug in callback handling

This patch handles following-

- Don't create node handle and send to application
if Remote Node Discovery fails. Node Browsing
is mandatory command to discover remote node composition.
Without remote node composition, node handle
is meaningless. Therefore, send NULL in node handle
incase Node Browsing fails.

- Send Node feature information only when remote node feature
command is successful.

Change-Id: I85c78c89a22cf50cccb321f8d3d7fbeaee20a6ef
Signed-off-by: Anupam Roy <anupam.r@samsung.com>