Merge branch 'fix/ble_mesh_bugs_fixed_v5.0' into 'release/v5.0'

fix(ble_mesh): Miscellaneous update (v5.0)

See merge request espressif/esp-idf!35423
This commit is contained in:
Island
2024-12-12 10:53:33 +08:00
2 changed files with 10 additions and 2 deletions

View File

@@ -27,7 +27,12 @@
#else
#define UNPROVISIONED_INTERVAL K_SECONDS(5)
#endif
#if CONFIG_BLE_MESH_BQB_TEST
#define PROVISIONED_INTERVAL K_SECONDS(3)
#else
#define PROVISIONED_INTERVAL K_SECONDS(10)
#endif
#define BEACON_TYPE_UNPROVISIONED 0x00
#define BEACON_TYPE_SECURE 0x01

View File

@@ -1174,7 +1174,7 @@ static struct label *va_find(const uint8_t *label_uuid,
return match;
}
static uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
{
struct label *update = NULL, *free_slot = NULL;
@@ -1182,6 +1182,9 @@ static uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
if (update) {
update->ref++;
va_store(update);
if (addr) {
*addr = update->addr;
}
return STATUS_SUCCESS;
}
@@ -1201,7 +1204,7 @@ static uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
return STATUS_SUCCESS;
}
static uint8_t va_del(uint8_t *label_uuid, uint16_t *addr)
uint8_t va_del(uint8_t *label_uuid, uint16_t *addr)
{
struct label *update = NULL;