forked from espressif/esp-idf
fix(ble_mesh): Miscellaneous update
This commit is contained in:
@@ -27,7 +27,12 @@
|
|||||||
#else
|
#else
|
||||||
#define UNPROVISIONED_INTERVAL K_SECONDS(5)
|
#define UNPROVISIONED_INTERVAL K_SECONDS(5)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_BLE_MESH_BQB_TEST
|
||||||
|
#define PROVISIONED_INTERVAL K_SECONDS(3)
|
||||||
|
#else
|
||||||
#define PROVISIONED_INTERVAL K_SECONDS(10)
|
#define PROVISIONED_INTERVAL K_SECONDS(10)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BEACON_TYPE_UNPROVISIONED 0x00
|
#define BEACON_TYPE_UNPROVISIONED 0x00
|
||||||
#define BEACON_TYPE_SECURE 0x01
|
#define BEACON_TYPE_SECURE 0x01
|
||||||
|
@@ -1174,7 +1174,7 @@ static struct label *va_find(const uint8_t *label_uuid,
|
|||||||
return match;
|
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;
|
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) {
|
if (update) {
|
||||||
update->ref++;
|
update->ref++;
|
||||||
va_store(update);
|
va_store(update);
|
||||||
|
if (addr) {
|
||||||
|
*addr = update->addr;
|
||||||
|
}
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1201,7 +1204,7 @@ static uint8_t va_add(uint8_t *label_uuid, uint16_t *addr)
|
|||||||
return STATUS_SUCCESS;
|
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;
|
struct label *update = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user