Mesh: Apply Fixes & code refactoring 75/238775/3 ble_mesh
authorAnupam Roy <anupam.r@samsung.com>
Fri, 17 Jul 2020 07:42:56 +0000 (13:12 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Fri, 17 Jul 2020 19:58:29 +0000 (01:28 +0530)
commit76e5f829d8a1e981f02c9551e4f76e2d21b670b7
treef6ecab7bedca9bbf233ff399cbfbd27b69fc2d02
parent9368717b6a9de835c37e481d22e60513c9568afe
Mesh: Apply Fixes & code refactoring

This patch handles initial set of fixes
across all layers in BLE Mesh FRWK & some
code refactoring

Some of the notable fixes applied are following:-
1. Fix bt-service crash during cleanup of mesh framework resources
   [Resolution: removing double free of Mesh model resources]
2. Fix crash in unit test app during Scan stop operation
   [Resolution: Dont allow Stop scan if scanning is not in progress]
3. Fix Node Browse event fail issue
   [Resolution: Handle wrong usage of event pointer]
4. Fix "Timer expired even if response is received within timeout" issue.
   [Resolution: Remove timer once event is received from stack]
5. Fix "TTL configured callback(CAPI callback)" is not invoked in case of success
   Resolution: Handle wrong usage of event pointer in service layer]
6. Fix NetKey configuration API failed due to mishandling of Key in Network
   [Resolution: Network Key handling is corrected]

Change-Id: I107a1d26df134d54a7347e4cae71a38e106b6a12
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
16 files changed:
bt-api/bt-event-handler.c
bt-api/bt-mesh.c
bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.c
bt-oal/bluez_hal/src/bt-hal-mesh.c
bt-oal/common/oal-event-dispatcher.c
bt-service-adaptation/services/bt-request-handler.c
bt-service-adaptation/services/bt-service-event-receiver.c
bt-service-adaptation/services/bt-service-main.c
bt-service-adaptation/services/include/bt-service-mesh-nodes.h
bt-service-adaptation/services/mesh/bt-service-mesh-config-client.c
bt-service-adaptation/services/mesh/bt-service-mesh-keys.c
bt-service-adaptation/services/mesh/bt-service-mesh-main.c
bt-service-adaptation/services/mesh/bt-service-mesh-network.c
bt-service-adaptation/services/mesh/bt-service-mesh-nodes.c
bt-service-adaptation/services/mesh/bt-service-mesh-util.c
include/bluetooth-mesh-api.h