mesh: Fix element index look up for config model subs
authorInga Stotland <inga.stotland@intel.com>
Tue, 11 Aug 2020 16:31:34 +0000 (09:31 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit6254c4f88831499e5ee91d4b208260c7bdd5bbd1
treefdffa24a612f938ac65356fd2f4aad768c5c33d0
parent1f74539bb84644513ec59896209e812bd8891f62
mesh: Fix element index look up for config model subs

Use element address for looking up element index (subscription
address was erroneously used to perform the lookup).

Change-Id: Ife79cb0bbe7e5495ab55416c968fc97e24302f5e
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/model.c
mesh/model.h