mesh: Allow Key refresh to skip Phase 2
authorIsak Westin <isak.westin@loytec.com>
Thu, 29 Sep 2022 11:03:43 +0000 (13:03 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
commitcbd00cf39743c27dce8ece6e84fb68327f49bcfc
treea7e8a735e486ed97ff3f6a7a3338523de1ede7aa
parentc06610c4f0590a8af06074641492dc2923b91478
mesh: Allow Key refresh to skip Phase 2

If we are in Key Refresh Phase 1, and receive a Secure Network beacon
using the new NetKey and with KR flag set to 0, Phase 2 should be
skipped. See MshPRFv1.0.1 section 3.10.4.1.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
mesh/net.c