Merge branch 'bugfix/add_nimble_50_feature_support_flag_v4.3' into 'release/v4.3'

fix(nimble): add flag to indicate 5.0 feature support(v4.3)

See merge request espressif/esp-idf!25766
This commit is contained in:
Rahul Tank
2023-09-12 19:22:28 +08:00
2 changed files with 15 additions and 1 deletions

View File

@ -445,10 +445,18 @@ config BT_NIMBLE_MAX_CONN_REATTEMPT
help help
Defines maximum number of connection reattempts. Defines maximum number of connection reattempts.
config BT_NIMBLE_50_FEATURE_SUPPORT
bool "Enable BLE 5 feature"
depends on BT_NIMBLE_ENABLED
default y if (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3)
default n if IDF_TARGET_ESP32
help
Enable BLE 5 features
config BT_NIMBLE_EXT_ADV config BT_NIMBLE_EXT_ADV
bool "Enable extended advertising." bool "Enable extended advertising."
default n default n
depends on BT_NIMBLE_ENABLED && BT_SOC_SUPPORT_5_0 depends on BT_NIMBLE_ENABLED && BT_NIMBLE_50_FEATURE_SUPPORT
help help
Enable this option to do extended advertising. Extended advertising Enable this option to do extended advertising. Extended advertising
will be supported from BLE 5.0 onwards. will be supported from BLE 5.0 onwards.

View File

@ -50,6 +50,12 @@
#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 CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT
#define BLE_50_FEATURE_SUPPORT (0)
#else
#define BLE_50_FEATURE_SUPPORT (CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT)
#endif
#ifndef MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE #ifndef MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE
#ifdef CONFIG_BT_NIMBLE_EXT_ADV #ifdef CONFIG_BT_NIMBLE_EXT_ADV
#define MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE (CONFIG_BT_NIMBLE_MAX_EXT_ADV_DATA_LEN) #define MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE (CONFIG_BT_NIMBLE_MAX_EXT_ADV_DATA_LEN)