From 7937a51779bf17e21fe78300762e54a2876575e5 Mon Sep 17 00:00:00 2001 From: lly Date: Tue, 2 Jun 2020 18:22:18 +0800 Subject: [PATCH] ble_mesh: Remove relay option dependency When the relay functionality of a node is not enabled, this issue will cause the node failing to send messages to fixed group. --- components/bt/esp_ble_mesh/mesh_core/net.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/net.c b/components/bt/esp_ble_mesh/mesh_core/net.c index aa8ad8b1a..548182e31 100644 --- a/components/bt/esp_ble_mesh/mesh_core/net.c +++ b/components/bt/esp_ble_mesh/mesh_core/net.c @@ -1473,9 +1473,8 @@ void bt_mesh_net_recv(struct net_buf_simple *data, s8_t rssi, /* Relay if this was a group/virtual address, or if the destination * was neither a local element nor an LPN we're Friends for. */ - if (IS_ENABLED(CONFIG_BLE_MESH_RELAY) && - (!BLE_MESH_ADDR_IS_UNICAST(rx.ctx.recv_dst) || - (!rx.local_match && !rx.friend_match))) { + if (!BLE_MESH_ADDR_IS_UNICAST(rx.ctx.recv_dst) || + (!rx.local_match && !rx.friend_match)) { net_buf_simple_restore(&buf, &state); bt_mesh_net_relay(&buf, &rx); }