mesh: Separate functions for net key add and update
authorInga Stotland <inga.stotland@intel.com>
Thu, 7 Feb 2019 03:55:33 +0000 (19:55 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 14:14:12 +0000 (19:44 +0530)
commite3ef2b1fc48cca290b3073dcadd725e0d52f7a10
tree262decff824b49dd75ebf74921025cfc37234a25
parentcc72881728b78f7b2664870dbd53b699137b6e6c
mesh: Separate functions for net key add and update

This splits mesh_net_key_add() into two separate functions:
mesh_net_key_add() and mesh_net_key_update().
mesh_net_key_update() essentially replaces mesh_net_kr_phase_one()
since switching to Key Refresh phase one can only be triggered
by successful network key update.

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