mesh: Fix model ID prior to calling mesh config functions
authorInga Stotland <inga.stotland@intel.com>
Wed, 12 Aug 2020 19:03:16 +0000 (12:03 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit53fcab9186729674d0811caa452d25e694973ff3
tree0c9e8445d90537f36edc29af8f9950ebe46ff737
parent1c6ea0d362f691d3455ae53ffae605a5b05e4c08
mesh: Fix model ID prior to calling mesh config functions

Model IDs for SIG defined models need to be stripped off SIG_VENDOR
value used for internal housekeeping prior to calling functions
that save new model state in node configuration.

Also, remove duplicate statements for model lookup in node config.

Change-Id: I0a45e64e9b1666e531134a192b129777a63ba1f1
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/mesh-config-json.c
mesh/model.c