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>
Anupam Roy [Wed, 29 Jul 2020 06:43:30 +0000 (12:13 +0530)]
Mesh: Apply Minor refactoring
Accept user input of group handle instead of
using fixed group
Change-Id: Ifc7b92fb2c3558ca9f6aa5bb882323980e0c97ba
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Wootak Jung [Thu, 30 Jul 2020 00:33:59 +0000 (09:33 +0900)]
Add offset handling logic in bt_unit_test
Change-Id: I88edf5f20da7123040f783892da25f9e74b7df26
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Anupam Roy [Wed, 29 Jul 2020 06:39:56 +0000 (12:09 +0530)]
Mesh: Refactor Mesh network group handling logics
This patch handles following
- Add Conf DB removal of group along with CAPI handles
- Refactor Get Network foreach groups
Change-Id: I90ed5afca3d83763d3d81bb6ba8d721022501abe
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Pyun DoHyun [Mon, 27 Jul 2020 22:43:12 +0000 (22:43 +0000)]
Merge "Mesh: Apply stabilization fixes in CAPI" into tizen
Anupam Roy [Mon, 27 Jul 2020 08:37:48 +0000 (14:07 +0530)]
Mesh: Apply stabilization fixes in CAPI
Some of the notable changes are following-
1. Add 'Model Configure AppKey event handling'
2. Fix bug in fetching model from element
[Fixed wrong handling og GSLists]
3. Apply exception handling in deleting NetKey from a node
[Application crash in case of invalid NetKey handle]
4. Fix bug in handling appkeys bound to a NetKey of a node
[Return AppKey(s) bound to NetKey, instead of reurning ALL AppKeys]
5. Fix application crash due to double free
[Double Free of Model AppKey List items]
Change-Id: Icea2e305d5cd2059b2db35d80aa269b9d547b176
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Wootak Jung [Mon, 27 Jul 2020 00:54:54 +0000 (09:54 +0900)]
Fix i586 build error
0xff is set 0xffffffff in i586
Change-Id: Ideaf7af5c54d0fbd789d766961d2da342641168a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Fri, 24 Jul 2020 01:01:14 +0000 (01:01 +0000)]
Merge "Add unittest for auto coverage" into tizen
anuj.bhumiya [Thu, 23 Jul 2020 06:03:35 +0000 (11:33 +0530)]
Mesh: Fix the svace issues
Change-Id: I3f7f3d7ac814d8c613838c8d839d2b3df2e2b1dd
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
Wootak Jung [Tue, 16 Jun 2020 08:09:14 +0000 (17:09 +0900)]
Add unittest for auto coverage
Make tests folder and include test and unittest folder
Change-Id: I7f9a9dc72a5d8b4710bf24e55fe0fc11fb197a99
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Anupam Roy [Sun, 19 Jul 2020 16:19:33 +0000 (21:49 +0530)]
Mesh: Refactor Unit Test application
This patch primarily handles following
- Accepts user inputs for most of the variables
- Code refactoring
- Add few missing API's
TODO:
- Accept User input for network handle
- More code refactoring
- Cleanup
Change-Id: I888c1fceda67c1f6eece775376ef8e13b3dac5da
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
himanshu [Sun, 28 Jun 2020 15:11:31 +0000 (20:41 +0530)]
Mesh: BLE Mesh Unit Test Application
This patch introduces the mesh unit
test application.
Change-Id: I9080e5250fe0e83cb25db54b4defdaa53a382089
Signed-off-by: himanshu <h.himanshu@samsung.com>
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Sun, 28 Jun 2020 14:52:00 +0000 (20:22 +0530)]
Mesh: Add Mesh CAPI event handler
This patch handles Mesh events in CAPI libray
Accordingly, callbacks are invoked to application
Change-Id: I7899086e2dfbdc175f6ce45cfa7e96105e3ad150
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Sun, 28 Jun 2020 14:00:50 +0000 (19:30 +0530)]
Mesh: Implement Mesh CAPI
This patch primarily handles following
- Create Local node & its elements & models
- Create & configure Local Provisioner Network
- Scan & Provision device
- Configure Keys in local Network
- Configure provisioned nodes
- Create & configure Mesh Groups
- Configure Keys in provisioned nodes
TODO:
- Events from mesh service
- Node Reset functionality
Change-Id: I4ccc70a5a904da1e8e2ba62425230b5a87a931b7
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Wootak Jung [Tue, 7 Jul 2020 02:24:14 +0000 (11:24 +0900)]
Fix input param check logic
value can be NULL in case of response for write request
Change-Id: I553a86747f9661e1a96e8d304e635a0b7cc661b4
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Fri, 3 Jul 2020 04:35:15 +0000 (13:35 +0900)]
Fix document group for gatt connection state cb API
Change-Id: I7a062e2609022535687c8a5e90a587d40a1c4efc
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
injun.yang [Thu, 18 Jun 2020 05:00:05 +0000 (14:00 +0900)]
Fix: multiple gatt server apps send response for read/write request
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] gatt client receive ATT error for read/write request.
[Cause & Measure] If several gatt server apps is running, all apps send respone.
One of them, send ATT error.
[Checking Method] Multiple gatt server app > read/write request on client
[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I2a48d70ef988e8a507df407d9100f7b1ccf32251
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
DoHyun Pyun [Tue, 9 Jun 2020 04:36:39 +0000 (13:36 +0900)]
Add the ASLR build option for test apps
Change-Id: I358596a7f181573354b887c55c7dfe4b17f23c55
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 25 May 2020 01:52:12 +0000 (10:52 +0900)]
Cancel the deprecation for bt_adapter_le_is_discovering
Change-Id: Iac251cf20f52273e9664ef8b2522a87034b38110
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Mon, 18 May 2020 05:00:55 +0000 (05:00 +0000)]
Merge "Fix ASAN build error" into tizen
DoHyun Pyun [Mon, 18 May 2020 03:58:22 +0000 (12:58 +0900)]
Fix ASAN build error
This patchset resolves 'stringop-truncation' build
error for ASAN
Change-Id: If01bdf1441b15517c52476d047bbc3803ae9c7e1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Wootak Jung [Wed, 13 May 2020 07:22:57 +0000 (16:22 +0900)]
Add unit TC about profile connected devices
Change-Id: Ia486c849f8519276d81d72562cb53c84ab1427fd
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Tue, 12 May 2020 02:00:46 +0000 (11:00 +0900)]
Fix RegisterApplication fail issue
Need to set server_started flag to false if all of services are removed
Change-Id: I1947f2c08882c15e20731c5d318c6689ae62d077
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
DoHyun Pyun [Thu, 7 May 2020 22:36:38 +0000 (07:36 +0900)]
Revert "Fix service removed event not occur issue"
This reverts commit
5168525fbb7cb1fc6b061c3ec3e06e1163335715.
Change-Id: I4abca5501dcd3eebc19c17d621a134db4ae2a31b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Wootak Jung [Wed, 6 May 2020 06:28:43 +0000 (15:28 +0900)]
Fix service removed event not occur issue
In case of unregister all services,
service removed event should be occured.
Change-Id: I9cede4d9416e1d3529fccb6a58f9a3225cc38aa2
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
injun.yang [Wed, 29 Apr 2020 10:46:12 +0000 (19:46 +0900)]
Fix the malfunction of gatt write request
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] P200428-04425
[Request] Internal
[Occurrence Version] N/A
[Problem] Some application call bt_gatt_client_write_value() repeately. (Write req)
If gatt client app call API before callback invoked,
inprogress error is not returned.
[Cause & Measure] ATT is sequential transaction protocol. So return inprogress error
before write completed callback invoked.
[Checking Method] n/a
[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I76eb97e124a739990d3210c3f3c3fa7354b605f1
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>