From b278566acc79126719751d649331d4e26b8aee73 Mon Sep 17 00:00:00 2001 From: Wu Meng Shi Date: Tue, 2 Jan 2024 15:38:37 +0800 Subject: [PATCH] fix(ble_mesh): reject node-reseting when provision link is active (V5.0) --- components/bt/esp_ble_mesh/mesh_core/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/bt/esp_ble_mesh/mesh_core/main.c b/components/bt/esp_ble_mesh/mesh_core/main.c index 1a660260dd..880a829fcb 100644 --- a/components/bt/esp_ble_mesh/mesh_core/main.c +++ b/components/bt/esp_ble_mesh/mesh_core/main.c @@ -102,6 +102,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;