mesh: Fix to duplicated model Ids saved to storage
authorRafał Gajda <rafal.gajda@silvair.com>
Wed, 26 Jun 2019 15:49:02 +0000 (17:49 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 15:12:12 +0000 (20:42 +0530)
commit00059e19ae6bae5db8f6a5f6710f2311c776a77f
treeb9920531ffaf4797c7c7816e47d28f88de078dc9
parentd01f0f16ac06c520fe271b04de6025ca358ca477
mesh: Fix to duplicated model Ids saved to storage

Mesh daemon internally implements the Config Server SIG model.

When generating node, if the Mesh Element in mesh application
returns modelId 0 among its supported models, it should be skipped,
otherwise it will be duplicated and saved in the storage file.

This patch fixes correctly skipping Config Server model during node
creation.

Change-Id: Ic2bc3df4e21ec5b2e4f5678a70443fa458f69aa4
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/node.c