From 1b16370e8316b1e699be5dbf1d2365123af3bbb8 Mon Sep 17 00:00:00 2001 From: luoxu Date: Tue, 7 May 2024 09:48:42 +0800 Subject: [PATCH] bugfix(ble_mesh): Close BLEQABR23-798 --- components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c b/components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c index 76eee45360..481dddc0cf 100644 --- a/components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c +++ b/components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c @@ -599,7 +599,7 @@ static int provisioner_start_prov_pb_adv(const uint8_t uuid[16], const bt_mesh_a if (is_unprov_dev_being_provision(uuid)) { bt_mesh_pb_adv_unlock(); - return -EALREADY; + return 0; } for (i = 0; i < CONFIG_BLE_MESH_PBA_SAME_TIME; i++) { @@ -660,7 +660,7 @@ static int provisioner_start_prov_pb_gatt(const uint8_t uuid[16], const bt_mesh_ if (is_unprov_dev_being_provision(uuid)) { bt_mesh_pb_gatt_unlock(); - return -EALREADY; + return 0; } for (i = CONFIG_BLE_MESH_PBA_SAME_TIME; i < BLE_MESH_PROV_SAME_TIME; i++) {