fix(ble_mesh): reject node-reseting when provision link is active

This commit is contained in:
Wu Meng Shi
2024-01-02 15:37:41 +08:00
committed by Jiang Jiang Jian
parent 1677bfa0a3
commit 2f78a065bd

View File

@@ -109,6 +109,11 @@ void bt_mesh_node_reset(void)
return;
}
if (bt_prov_active()) {
BT_WARN("%s, link is still active", __func__);
return;
}
bt_mesh.iv_index = 0U;
bt_mesh.seq = 0U;