Thread (25 messages) flat view 25 messages, 4 authors, 2021-09-27
STALE1806d

[PATCH BlueZ 15/20] tools/mesh-cfgclient: Add group parent address for DB compliance

From: Inga Stotland <hidden>
Date: 2021-09-23 03:27:24
Subsystem: the rest · Maintainer: Linus Torvalds

---
 tools/mesh/mesh-db.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/tools/mesh/mesh-db.c b/tools/mesh/mesh-db.c
index 42ba831d4..0dc811801 100644
--- a/tools/mesh/mesh-db.c
+++ b/tools/mesh/mesh-db.c
@@ -1590,6 +1590,10 @@ bool mesh_db_add_group(struct mesh_group *grp)
 			goto fail;
 	}
 
+	/* Initialize parent group to unassigned address for now*/
+	if (!write_uint16_hex(jgroup, "parentAddress", UNASSIGNED_ADDRESS))
+		goto fail;
+
 	json_object_array_add(jgroups, jgroup);
 
 	return save_config();
-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help