mesh: Send correct NetKey index in DevKeyMessageReceived
authorInga Stotland <inga.stotland@intel.com>
Wed, 19 Aug 2020 21:48:02 +0000 (14:48 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit136e5c527456ad1fb4a26acb2265d6129859082e
tree1db2f46b19b8cf03134892fe47c7115d610d0151
parentbbf5f16dff588fe8d9e675801fb66067c98c6d5a
mesh: Send correct NetKey index in DevKeyMessageReceived

The value of net_index in DevKeyMessageReceived() method must be set
to the value of a subnet index on which a device key encoded message
has been received. Was hard coded to 0. Fixed.

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