From aa830471f46752b4b5446f21c88d45032024f8c8 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 7ac0d8bf928c..02afa3c73bab 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; }