[PATCH BlueZ] mesh: Add config server response for loopback

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

 



---
 mesh/config-server.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/mesh/config-server.c b/mesh/config-server.c
index 8a88645e4..938ec2275 100644
--- a/mesh/config-server.c
+++ b/mesh/config-server.c
@@ -141,10 +141,17 @@ static bool server_msg_recvd(uint16_t src, uint8_t *data,
 		break;
 	}
 
+	if (!n)
+		return true;
+
 	primary = node_get_primary(node);
-	if (n && src != primary)
+	if (src != primary)
 		net_access_layer_send(node_get_default_ttl(node), primary,
 					src, APP_IDX_DEV, msg, n);
+	else
+		node_local_data_handler(primary, src, node_get_iv_index(node),
+					node_get_sequence_number(node),
+					APP_IDX_DEV, msg, n);
 	return true;
 }
 
-- 
2.13.6

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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