Merge branch 'bugfix/ble_mesh_not_ignore_msg_in_fast_prov_v3.3' into 'release/v3.3'
ble_mesh: Not ignore msg when fast prov is enabled (v3.3) See merge request espressif/esp-idf!8712
This commit is contained in:
commit
b3c40e8e06
|
@ -1399,6 +1399,14 @@ static bool ready_to_recv(void)
|
||||||
|
|
||||||
static bool ignore_net_msg(u16_t src, u16_t dst)
|
static bool ignore_net_msg(u16_t src, u16_t dst)
|
||||||
{
|
{
|
||||||
|
if (IS_ENABLED(CONFIG_BLE_MESH_FAST_PROV)) {
|
||||||
|
/* When fast provisioning is enabled, the node addr
|
||||||
|
* message will be sent to the Primary Provisioner,
|
||||||
|
* which shall not be ignored here.
|
||||||
|
*/
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) &&
|
if (IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) &&
|
||||||
bt_mesh_is_provisioner_en() &&
|
bt_mesh_is_provisioner_en() &&
|
||||||
BLE_MESH_ADDR_IS_UNICAST(dst) &&
|
BLE_MESH_ADDR_IS_UNICAST(dst) &&
|
||||||
|
@ -1409,6 +1417,7 @@ static bool ignore_net_msg(u16_t src, u16_t dst)
|
||||||
* be ignored.
|
* be ignored.
|
||||||
*/
|
*/
|
||||||
if (!bt_mesh_provisioner_get_node_with_addr(src)) {
|
if (!bt_mesh_provisioner_get_node_with_addr(src)) {
|
||||||
|
BT_INFO("Not found node address 0x%04x", src);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue