From 7f8ecb218a5e76ea1a901926502395113529b8a2 Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Mon, 12 Jun 2023 16:24:34 +0530 Subject: [PATCH] Nimble: Add APIs to handle vs HCI commands and events --- components/bt/host/nimble/Kconfig.in | 6 ++++++ components/bt/host/nimble/nimble | 2 +- components/bt/host/nimble/port/include/esp_nimble_cfg.h | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index 15947c2f88..6c36c00f91 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -819,3 +819,9 @@ menu "GAP Service" Timeout = Value * 10 ms endmenu + +config BT_NIMBLE_VS_SUPPORT + bool "Enable support for VSC and VSE" + help + This option is used to enable support for sending Vendor Specific HCI commands and handling + Vendor Specific HCI Events. diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index 326292d478..46268fd9c0 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit 326292d47806594994f4b98fbeb20619a67132bd +Subproject commit 46268fd9c058fde006427b62b2198ace049b4e5f diff --git a/components/bt/host/nimble/port/include/esp_nimble_cfg.h b/components/bt/host/nimble/port/include/esp_nimble_cfg.h index 058aea77ed..cdf7eb05f2 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -1700,4 +1700,11 @@ #endif #endif +#ifndef MYNEWT_VAL_BLE_HCI_VS +#define MYNEWT_VAL_BLE_HCI_VS CONFIG_BT_NIMBLE_VS_SUPPORT +#define MYNEWT_VAL_BLE_HCI_VS_OCF_OFFSET (0) +#else +#define MYNEWT_VAL_BLE_HCI_VS (0) +#endif + #endif