mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ble_mesh: Use the right netkey during iv update
This commit is contained in:
parent
37466d957d
commit
5a90ea3048
@ -712,9 +712,12 @@ do_update:
|
||||
|
||||
k_delayed_work_submit(&bt_mesh.ivu_timer, BLE_MESH_IVU_TIMEOUT);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) {
|
||||
if (bt_mesh.sub[i].net_idx != BLE_MESH_KEY_UNUSED) {
|
||||
bt_mesh_net_beacon_update(&bt_mesh.sub[i]);
|
||||
size_t subnet_size = bt_mesh_rx_netkey_size();
|
||||
|
||||
for (i = 0; i < subnet_size; i++) {
|
||||
struct bt_mesh_subnet *sub = bt_mesh_rx_netkey_get(i);
|
||||
if (sub && sub->net_idx != BLE_MESH_KEY_UNUSED) {
|
||||
bt_mesh_net_beacon_update(sub);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user