mesh: Add function to restore net key state from storage
authorInga Stotland <inga.stotland@intel.com>
Thu, 7 Feb 2019 03:55:34 +0000 (19:55 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 14:14:16 +0000 (19:44 +0530)
commit09a244d9b75ba72e48d830f0401d1f568bbd29d7
treef93ce7bf1041e285faa6ea25a8563e0b763ac816
parente3ef2b1fc48cca290b3073dcadd725e0d52f7a10
mesh: Add function to restore net key state from storage

This creates subnet state based on saved network key state:
current keys and, if present, updated keys.
Secure network beacon is generated according to key refresh phase.

Change-Id: I3f89ffb8181afc5d66966ee8e369125875a2c262
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/net.c
mesh/net.h
mesh/storage.c