summaryrefslogtreecommitdiff
path: root/mesh/mesh-config-json.c
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2019-07-25 11:26:12 -0700
committerBrian Gix <brian.gix@intel.com>2019-07-26 09:08:58 -0700
commitefcf88bff0dc9daf98a3862133c5b0b0cc72d30e (patch)
tree7bcd669975c4144697d2a98c76fb8e0669510df9 /mesh/mesh-config-json.c
parent4b0bfe960df205d7930a804a16a1283f246e91b2 (diff)
downloadbluez-efcf88bff0dc9daf98a3862133c5b0b0cc72d30e.tar.gz
mesh: Fix storage init of Friend and LPN features
This fixes a typo in mesh-config-json.c when Friend feature was initialized twice and LPN was not initialized at all.
Diffstat (limited to 'mesh/mesh-config-json.c')
-rw-r--r--mesh/mesh-config-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
index 75015e607..e3baf5dc6 100644
--- a/mesh/mesh-config-json.c
+++ b/mesh/mesh-config-json.c
@@ -1191,7 +1191,7 @@ static void parse_features(json_object *jconfig, struct mesh_config_node *node)
if (json_object_object_get_ex(jconfig, "lowPower", &jvalue)) {
mode = get_mode(jvalue);
if (mode <= MESH_MODE_UNSUPPORTED)
- node->modes.friend = mode;
+ node->modes.lpn = mode;
}
if (json_object_object_get_ex(jconfig, "beacon", &jvalue)) {