Mesh: Fix bug in callback handling 99/239899/1 accepted/tizen/unified/20200803.122021 submit/tizen/20200731.001830
authorAnupam Roy <anupam.r@samsung.com>
Thu, 30 Jul 2020 10:41:01 +0000 (16:11 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Thu, 30 Jul 2020 10:45:09 +0000 (16:15 +0530)
commit59f041f509497848a78cbc6ba3748ef63dba9c66
treef578c75e73d356c0aae2040c9c050c67e3daa08c
parentde84669fae9b492614fb41b416762ffbba1d9608
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>
src/bluetooth-common.c
src/bluetooth-mesh.c