From d31cb0d0cd3f2a5f6f9180fdce8e0c1ba5535e9c Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Wed, 18 Oct 2023 18:18:54 +0530 Subject: [PATCH] fix(nimble): Add support for VSC to clear legacy adv memory Legacy adv does not have an API for clear adv memory in controller. Added VSC for same. --- components/bt/host/nimble/nimble | 2 +- components/bt/porting/nimble/include/nimble/hci_common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index 13b94d91ba..8114a62475 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit 13b94d91ba0ed95d682df53fb35bbff6c6c0b2f8 +Subproject commit 8114a6247581004779bd7809ea1740cf23061da3 diff --git a/components/bt/porting/nimble/include/nimble/hci_common.h b/components/bt/porting/nimble/include/nimble/hci_common.h index e9c2d1f8fb..293b294e6d 100644 --- a/components/bt/porting/nimble/include/nimble/hci_common.h +++ b/components/bt/porting/nimble/include/nimble/hci_common.h @@ -1141,6 +1141,7 @@ struct ble_hci_vs_duplicate_exception_list_cp { uint8_t device_info[6]; } __attribute__((packed)); +#define BLE_HCI_OCF_VS_LEGACY_ADV_CLEAR (MYNEWT_VAL(BLE_HCI_VS_OCF_OFFSET) + (0x010C)) /* Command Specific Definitions */ /* --- Set controller to host flow control (OGF 0x03, OCF 0x0031) --- */