bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have already left the network.

pull/13306/head
luoxu 2023-11-13 11:12:25 +08:00 zatwierdzone przez BOT
rodzic 2b17acb4b0
commit 36297f93e7
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -1751,9 +1751,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