summaryrefslogtreecommitdiff
path: root/mesh
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-08-19 14:48:02 -0700
committerBrian Gix <brian.gix@intel.com>2020-08-20 07:28:46 -0700
commitef7e4848559cb8b8448303ad6eb68de8f901a558 (patch)
tree913da8ff2548b1ad2df6ce355123d82d480232c8 /mesh
parentb50c299a29ef9e02650f9f371b5fd5a9c037df17 (diff)
downloadbluez-ef7e4848559cb8b8448303ad6eb68de8f901a558.tar.gz
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.
Diffstat (limited to 'mesh')
-rw-r--r--mesh/model.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesh/model.c b/mesh/model.c
index b44e2f669..9529dfb2e 100644
--- a/mesh/model.c
+++ b/mesh/model.c
@@ -965,7 +965,8 @@ bool mesh_model_rx(struct mesh_node *node, bool szmict, uint32_t seq0,
else if (decrypt_idx == APP_IDX_DEV_REMOTE ||
decrypt_idx == APP_IDX_DEV_LOCAL)
send_dev_key_msg_rcvd(node, i, src, decrypt_idx,
- 0, forward.size, forward.data);
+ net_idx, forward.size,
+ forward.data);
}
/*