linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] mesh: Add config server response for loopback
@ 2017-10-30 18:56 Inga Stotland
  2017-11-01 13:03 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Inga Stotland @ 2017-10-30 18:56 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Inga Stotland

---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-01 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-30 18:56 [PATCH BlueZ] mesh: Add config server response for loopback Inga Stotland
2017-11-01 13:03 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).