Skip to contentSkip to conversation

mesh: Ignore Composition features during attach

PATCH New Brian Gix 1 participant 1 message Nov 25, 2019 Bluetooth drivers

lore
Share & tools
lore

Brian Gix

author
#0 lore raw

PATCH 1/1 mesh: Ignore Composition features during attach

Node Features are currently all under the control of the mesh daemon, and should be ignored when attaching. Eventually all Composition feature bits will be controlled by a master mesh.conf file, overriding any local node specific settings.

---
 mesh/node.c | 4 ++++
 1 file changed, 4 insertions(+)
mesh/node.c +4 -0
index 59936861a..7b4ee0505 100644
@@ -1526,6 +1526,10 @@ static bool check_req_node(struct managed_obj_request *req)
 		uint16_t attach_len = node_generate_comp(req->attach,
 					attach_comp, sizeof(attach_comp));
 
+		/* Ignore feature bits in Composition Compare */
+		node_comp[8] = 0;
+		attach_comp[8] = 0;
+
 		if (node_len != attach_len ||
 				memcmp(node_comp, attach_comp, node_len)) {
 			l_debug("Failed to verify app's composition data");
Signature · 1 line
2.21.0