diff options
author | Isak Westin <isak.westin@loytec.com> | 2022-10-06 16:59:22 +0200 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2022-10-06 13:56:21 -0700 |
commit | 95bf980b015ee4cb549568d18dd4db6c3f74aa4a (patch) | |
tree | 346b347794ee252a291552962807b5e591acfe10 /mesh | |
parent | c89e9c4b22b4f32c5b4dee396caf5fc54b434da2 (diff) | |
download | bluez-95bf980b015ee4cb549568d18dd4db6c3f74aa4a.tar.gz |
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.
Diffstat (limited to 'mesh')
-rw-r--r-- | mesh/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/node.c b/mesh/node.c index e81aa82fe..cf4ed140e 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1270,8 +1270,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; } |