mesh: Fix reading/writing key indices
authorInga Stotland <inga.stotland@intel.com>
Sun, 20 Oct 2019 21:29:49 +0000 (14:29 -0700)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 17:49:09 +0000 (23:19 +0530)
commite45f6d9a35777faef583171c7f056e4d19ad21ce
treeb470ecd58280ea6f87bdaa92ec2c787924413b65
parent86e08a84b9e96e39c833a60df01090d799b27c30
mesh: Fix reading/writing key indices

This fixes inconsistency when reading/writing NetKey and AppKey
indices to/from JSON config storage:
- when writing, convert an integer to hex string
- when reading, convert hex string to uint16 integer

Change-Id: Iaefe05c061f6c62d9fdc9835457e3ff75d84de1a
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/mesh-config-json.c