2017-10-30 18:56:38

by Stotland, Inga

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

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



2017-11-01 13:03:47

by Hedberg, Johan

[permalink] [raw]
Subject: Re: [PATCH BlueZ] mesh: Add config server response for loopback

Hi Inga,

On Mon, Oct 30, 2017, Inga Stotland wrote:
> ---
> mesh/config-server.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)

Applied. Thanks.

Johan