From: Isak Westin Date: Thu, 6 Oct 2022 14:59:22 +0000 (+0200) Subject: mesh: Update Key Refresh flag after provision X-Git-Tag: accepted/tizen/unified/20230608.164325~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d19581b09c9980fe570a753f19051252f907248;p=platform%2Fupstream%2Fbluez.git mesh: Update Key Refresh flag after provision The Key Refresh flag in the Secure Network beacon is now correctly updated based on provisioning data after being successfully provisioned. Signed-off-by: Manika Shrivastava Signed-off-by: Ayush Garg --- diff --git a/mesh/node.c b/mesh/node.c index f00a877..a2c8254 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1287,8 +1287,8 @@ static bool add_local_node(struct mesh_node *node, uint16_t unicast, bool kr, MESH_STATUS_SUCCESS) return false; - if (!mesh_config_net_key_set_phase(node->cfg, net_key_idx, - KEY_REFRESH_PHASE_TWO)) + if (mesh_net_key_refresh_phase_set(node->net, net_key_idx, + KEY_REFRESH_PHASE_TWO) != MESH_STATUS_SUCCESS) return false; }