[PATCH BlueZ] mesh: Ignore Composition features during attach

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(+)

diff --git a/mesh/node.c b/mesh/node.c
index 59936861a..7b4ee0505 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -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");
-- 
2.21.0




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux