mesh: Update AppKeys on transition to Phase 0
authorMichael N. Moran <mike@mnmoran.org>
Mon, 4 Jan 2021 03:48:37 +0000 (22:48 -0500)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commit8c2cf63ae8104e31a7ce464f586380033ccd9dea
tree96ecdb74c918c944ce63114cdef2f987adaf19af
parent32a1fb4008ad604ee3ecbfbcb9183ccac0933d81
mesh: Update AppKeys on transition to Phase 0

At the end of the mesh Key Refresh procedure when a subnet
transitions to Phase 0, local AppKeys that were updated were
not updating until the bluetooth-meshd daemon was restarted.

This patch iterates the AppKeys at the end of mesh Key Refresh
when the subnet transitions to Phase 0, setting the new state
of each updated AppKey.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
mesh/appkey.c
mesh/appkey.h
mesh/mesh-defs.h
mesh/net.c