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
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>
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>
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>
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>
Pyun DoHyun [Tue, 11 Aug 2020 22:45:00 +0000 (22:45 +0000)]
Merge "Mesh: Remove limitation of five Networks" 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
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>
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>
Pyun DoHyun [Mon, 10 Aug 2020 23:01:03 +0000 (23:01 +0000)]
Merge "Fix the failed GTEST for mesh framework" into tizen
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>
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>
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>
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>
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
Pyun DoHyun [Thu, 6 Aug 2020 02:27:46 +0000 (02:27 +0000)]
Merge "Add notify_char_changed callback handling logic" into tizen
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>
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>
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>
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>
Pyun DoHyun [Mon, 3 Aug 2020 00:50:37 +0000 (00:50 +0000)]
Merge "Mesh: Apply fix in Model Subscripton List CAPI" into tizen
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>
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>
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>
Pyun DoHyun [Fri, 31 Jul 2020 02:27:42 +0000 (02:27 +0000)]
Merge "Add offset handling logic in bt_unit_test" into tizen
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>
Anupam Roy [Thu, 30 Jul 2020 05:44:25 +0000 (11:14 +0530)]
Mesh Unit Test: Fix bug in TC usage print logic
Whhen user press ID > valid Menu & < Finish Menu
main menu should be printed
Change-Id: Ic888234c6c0aca079cdba1db93f0ea6c4cabb1c0
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Thu, 30 Jul 2020 05:39:51 +0000 (11:09 +0530)]
Mesh: Refactor Model subscription & foreach API's
This patch refactors following
- Group & Virtual Group subscription API's
- Fix improper handling of element_foreach_models API
Change-Id: Ic229b7c74226255f1811269e3ce3aba5f011c1c2
Signed-off-by: Anupam Roy <anupam.r@samsung.com>