From ed04a07180d4521e98e20897caf9748311a4acb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kopy=C5=9Bci=C5=84ski?= Date: Mon, 12 Oct 2020 13:27:38 +0200 Subject: [PATCH] mesh: Group resends in proxy nodes Resend transport segments for groups on the advertiser interface, even if a connected proxy node holds the group. this is port of https://github.com/zephyrproject-rtos/zephyr/pull/23103 --- nimble/host/mesh/src/net.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nimble/host/mesh/src/net.c b/nimble/host/mesh/src/net.c index ab28d0af0d..cf85fa3b0c 100644 --- a/nimble/host/mesh/src/net.c +++ b/nimble/host/mesh/src/net.c @@ -765,8 +765,9 @@ int bt_mesh_net_resend(struct bt_mesh_subnet *sub, struct os_mbuf *buf, } if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY) && - bt_mesh_proxy_relay(buf, dst)) { - send_cb_finalize(cb, cb_data); + bt_mesh_proxy_relay(&buf->b, dst) && + BT_MESH_ADDR_IS_UNICAST(dst)) { + send_cb_finalize(cb, cb_data); } else { bt_mesh_adv_send(buf, cb, cb_data); }