mesh: Clean up handling of config KR phase messages
authorInga Stotland <inga.stotland@intel.com>
Fri, 7 Aug 2020 01:38:33 +0000 (18:38 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit9386810686373b7b02958b97272df19e9e2aa395
tree0a56d1a988e5caf40f22b6f624ab5d4a9ce7b2c8
parent1d64ed9dbbe59647a749a70e71b4984efcceeadf
mesh: Clean up handling of config KR phase messages

This modification allows using a single point for sending out
the composed status messages by the Config Server.

Also, this checks for the correct relationship between KR transition
and KR phase values. Correct error codes are sent on unsuccessful
requests and malformed requests are ignored.

Change-Id: I5fa1f9e4d33c99cf5a5788d924951dcf2d1241c2
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/cfgmod-server.c
mesh/mesh-defs.h
mesh/net.c
mesh/net.h