From d4aa5c8cc03576c22043b6110210178487378f60 Mon Sep 17 00:00:00 2001 From: luoxu Date: Thu, 9 May 2024 10:50:41 +0800 Subject: [PATCH] fix(ble_mesh):Fixed a compatibility issue with the provisioner Closes https://github.com/espressif/esp-idf/issues/13741 --- components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..8f37309348 100644 --- a/components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c +++ b/components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c @@ -1702,7 +1702,7 @@ static void prov_capabilities(const uint8_t idx, const uint8_t *data) algorithms = sys_get_be16(&data[1]); BT_INFO("Algorithms: 0x%04x", algorithms); - if (algorithms != BIT(PROV_ALG_P256)) { + if (!(algorithms & BIT(PROV_ALG_P256))) { BT_ERR("Invalid algorithms 0x%04x", algorithms); goto fail; }