Merge branch 'fix/idfgh-12762_v5.1' into 'release/v5.1'

fix(ble_mesh):Fixed a compatibility issue with the provisioner (v5.1)

See merge request espressif/esp-idf!30731
This commit is contained in:
Island
2024-06-05 10:44:02 +08:00

View File

@@ -1713,7 +1713,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;
}