From 8f51aee8fae1aceb72eb28be292d2d3ab8833563 Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Wed, 16 Aug 2023 11:47:16 +0530 Subject: [PATCH] feat(nimble): Added support for high duty adv interval --- components/bt/host/nimble/Kconfig.in | 6 ++++++ components/bt/host/nimble/port/include/esp_nimble_cfg.h | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index 8b6a36d74a..d2f4530365 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -699,3 +699,9 @@ config BT_NIMBLE_MAX_EADS depends on BT_NIMBLE_ENABLED && BT_NIMBLE_ENC_ADV_DATA help Defines maximum number of encrypted advertising data key material to save + +config BT_NIMBLE_HIGH_DUTY_ADV_ITVL + bool "Enable BLE high duty advertising interval feature" + depends on BT_NIMBLE_ENABLED + help + This enable BLE high duty advertising interval feature 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 064b4194ce..4abd9cad87 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -1711,4 +1711,12 @@ #endif #endif +#ifndef MYNEWT_VAL_BLE_HIGH_DUTY_ADV_ITVL +#ifdef CONFIG_BT_NIMBLE_HIGH_DUTY_ADV_ITVL +#define MYNEWT_VAL_BLE_HIGH_DUTY_ADV_ITVL CONFIG_BT_NIMBLE_HIGH_DUTY_ADV_ITVL +#else +#define MYNEWT_VAL_BLE_HIGH_DUTY_ADV_ITVL (0) +#endif +#endif + #endif