From b25a1a88ef45da83e153b3bbf67def63a98f5b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kopy=C5=9Bci=C5=84ski?= Date: Fri, 6 Nov 2020 11:18:24 +0100 Subject: [PATCH] mesh: Disable network_id beacon when proxy disabled According Mesh Spec 1.0.1 Section 7.2.2.2.1 Advertising A node that does not support the Proxy feature or has the Proxy feature disabled shall not advertise with Network ID. this is port of 0e3b04e3936d0a892d938fa72c7d594df298cc5a --- nimble/host/mesh/src/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/mesh/src/proxy.c b/nimble/host/mesh/src/proxy.c index 53c7042b4..64c9d5b20 100644 --- a/nimble/host/mesh/src/proxy.c +++ b/nimble/host/mesh/src/proxy.c @@ -1190,7 +1190,7 @@ static bool advertise_subnet(struct bt_mesh_subnet *sub) } return (sub->node_id == BT_MESH_NODE_IDENTITY_RUNNING || - bt_mesh_gatt_proxy_get() != BT_MESH_GATT_PROXY_NOT_SUPPORTED); + bt_mesh_gatt_proxy_get() == BT_MESH_GATT_PROXY_ENABLED); } static struct bt_mesh_subnet *next_sub(void)