From ea6e8653f652a2b946b81f0e1f67dedebb13fe59 Mon Sep 17 00:00:00 2001 From: luoxu Date: Mon, 13 Nov 2023 11:12:25 +0800 Subject: [PATCH] bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have already left the network. --- components/bt/esp_ble_mesh/mesh_core/net.c | 4 +--- 1 file changed, 1 insertion(+), 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 93b02a515e..75d0d5bc59 100644 --- a/components/bt/esp_ble_mesh/mesh_core/net.c +++ b/components/bt/esp_ble_mesh/mesh_core/net.c @@ -1432,9 +1432,7 @@ static bool ignore_net_msg(uint16_t src, uint16_t dst) } if (IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) && - bt_mesh_is_provisioner_en() && - BLE_MESH_ADDR_IS_UNICAST(dst) && - bt_mesh_elem_find(dst)) { + bt_mesh_is_provisioner_en()) { /* If the destination address of the message is the element * address of Provisioner, but Provisioner fails to find the * node in its provisioning database, then this message will