mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
fix(nimble): Add configurable option to select ext adv v2 command
This commit is contained in:
@ -600,6 +600,13 @@ if BT_NIMBLE_50_FEATURE_SUPPORT
|
|||||||
will be supported from BLE 5.0 onwards.
|
will be supported from BLE 5.0 onwards.
|
||||||
|
|
||||||
if BT_NIMBLE_EXT_ADV
|
if BT_NIMBLE_EXT_ADV
|
||||||
|
config BT_NIMBLE_EXT_ADV_V2
|
||||||
|
bool "Enable support for extended adv v2"
|
||||||
|
default n
|
||||||
|
depends on BT_NIMBLE_EXT_ADV
|
||||||
|
help
|
||||||
|
Enable this option to use Extended Adv V2 command instead of V1.
|
||||||
|
|
||||||
config BT_NIMBLE_MAX_EXT_ADV_INSTANCES
|
config BT_NIMBLE_MAX_EXT_ADV_INSTANCES
|
||||||
int "Maximum number of extended advertising instances."
|
int "Maximum number of extended advertising instances."
|
||||||
range 0 4
|
range 0 4
|
||||||
|
Submodule components/bt/host/nimble/nimble updated: 5c6b832167...0cc70adeba
@ -98,6 +98,14 @@
|
|||||||
#define MYNEWT_VAL_BLE_EXT_ADV (CONFIG_BT_NIMBLE_EXT_ADV)
|
#define MYNEWT_VAL_BLE_EXT_ADV (CONFIG_BT_NIMBLE_EXT_ADV)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MYNEWT_VAL_BLE_EXT_ADV_V2
|
||||||
|
#ifdef CONFIG_BT_NIMBLE_EXT_ADV_V2
|
||||||
|
#define MYNEWT_VAL_BLE_EXT_ADV_V2 (CONFIG_BT_NIMBLE_EXT_ADV_V2)
|
||||||
|
#else
|
||||||
|
#define MYNEWT_VAL_BLE_EXT_ADV_V2 (0)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_BT_NIMBLE_EXT_ADV_MAX_SIZE
|
#ifndef CONFIG_BT_NIMBLE_EXT_ADV_MAX_SIZE
|
||||||
#define MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE (31)
|
#define MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE (31)
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user