mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'bugfix/fix_node_test_func_not_set_role_v4.2' into 'release/v4.2'
ble_mesh: test: Fix node test function not update role flag (v4.2) See merge request espressif/esp-idf!11040
This commit is contained in:
@ -42,6 +42,8 @@ int bt_mesh_device_auto_enter_network(struct bt_mesh_device_network_info *info)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_NODE);
|
||||||
|
|
||||||
/* The device becomes a node and enters the network */
|
/* The device becomes a node and enters the network */
|
||||||
err = bt_mesh_provision(info->net_key, info->net_idx, info->flags, info->iv_index,
|
err = bt_mesh_provision(info->net_key, info->net_idx, info->flags, info->iv_index,
|
||||||
info->unicast_addr, info->dev_key);
|
info->unicast_addr, info->dev_key);
|
||||||
|
Reference in New Issue
Block a user