mesh: Fix node when loading from storage
authorInga Stotland <inga.stotland@gmail.com>
Fri, 10 Mar 2023 01:35:12 +0000 (17:35 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:21:48 +0000 (15:51 +0530)
commit1d3234f22a91831fdde105e08f9852861e7bd9b5
tree0aed25d30c3d4734a6a8c893a8ad22f7b7c62df5
parent1cebddb1f47abc68d5b0c549dd4ef9ec053f3801
mesh: Fix node when loading from storage

This fixes adding mandatory models (config server, remote provisioner)
to a node whose configuration is being loaded from storage:
mesh_model_add() was called with a wrong argument.

Was:     mesh_model_add(..., PRIMARY_ELE_IDX, ...);
Correct: mesh_model_add(..., ele->models, ...);
mesh/node.c