@@ -229,7 +229,7 @@ config BT_BLE_ENABLED
229229 help
230230 This enables Bluetooth Low Energy
231231
232- config BT_GATTS_ENABLE
232+ menuconfig BT_GATTS_ENABLE
233233 bool "Include GATT server module(GATTS)"
234234 depends on BT_BLE_ENABLED
235235 default y
@@ -319,7 +319,7 @@ config BT_GATTS_APPEARANCE_WRITABLE
319319 help
320320 Enabling this option allows remote GATT clients to write appearance
321321
322- config BT_GATTC_ENABLE
322+ menuconfig BT_GATTC_ENABLE
323323 bool "Include GATT client module(GATTC)"
324324 depends on BT_BLE_ENABLED
325325 default y
@@ -357,7 +357,16 @@ config BT_GATTC_CONNECT_RETRY_COUNT
357357 help
358358 The number of attempts to reconnect if the connection establishment failed
359359
360- config BT_BLE_SMP_ENABLE
360+ config BT_BLE_ESTAB_LINK_CONN_TOUT
361+ int "Timeout of BLE connection establishment"
362+ depends on BT_GATTC_ENABLE
363+ range 1 60
364+ default 30
365+ help
366+ Bluetooth Connection establishment maximum time, if connection time exceeds this value, the connection
367+ establishment fails, ESP_GATTC_OPEN_EVT or ESP_GATTS_OPEN_EVT is triggered.
368+
369+ menuconfig BT_BLE_SMP_ENABLE
361370 bool "Include BLE security module(SMP)"
362371 depends on BT_BLE_ENABLED
363372 default y
@@ -390,6 +399,23 @@ config BT_BLE_SMP_BOND_NVS_FLASH
390399 help
391400 This select can save SMP bonding keys to nvs flash
392401
402+ config BT_BLE_RPA_SUPPORTED
403+ bool "Update RPA to Controller"
404+ depends on (BT_BLE_SMP_ENABLE && ((BT_CONTROLLER_ENABLED && !SOC_BLE_DEVICE_PRIVACY_SUPPORTED) || BT_CONTROLLER_DISABLED)) # NOERROR
405+ default n if (BT_CONTROLLER_ENABLED && !SOC_BLE_DEVICE_PRIVACY_SUPPORTED)
406+ default y if BT_CONTROLLER_DISABLED
407+ help
408+ This enables controller RPA list function.
409+ For ESP32, ESP32 only support network privacy mode. If this option is enabled, ESP32 will only accept
410+ advertising packets from peer devices that contain private address, HW will not receive the advertising
411+ packets contain identity address after IRK changed. If this option is disabled, address resolution will
412+ be performed in the host, so the functions that require controller to resolve address in the white list
413+ cannot be used. This option is disabled by default on ESP32, please enable or disable this option according
414+ to your own needs.
415+
416+ For other BLE chips, devices support network privacy mode and device privacy mode,
417+ users can switch the two modes according to their own needs. So this option is enabled by default.
418+
393419config BT_STACK_NO_LOG
394420 bool "Disable BT debug logs (minimize bin size)"
395421 depends on BT_BLUEDROID_ENABLED
@@ -1194,15 +1220,6 @@ config BT_BLE_ACT_SCAN_REP_ADV_SCAN
11941220
11951221 # Memory reserved at start of DRAM for Bluetooth stack
11961222
1197- config BT_BLE_ESTAB_LINK_CONN_TOUT
1198- int "Timeout of BLE connection establishment"
1199- depends on BT_BLE_ENABLED
1200- range 1 60
1201- default 30
1202- help
1203- Bluetooth Connection establishment maximum time, if connection time exceeds this value, the connection
1204- establishment fails, ESP_GATTC_OPEN_EVT or ESP_GATTS_OPEN_EVT is triggered.
1205-
12061223config BT_MAX_DEVICE_NAME_LEN
12071224 int "length of bluetooth device name"
12081225 depends on BT_BLUEDROID_ENABLED
@@ -1213,23 +1230,6 @@ config BT_MAX_DEVICE_NAME_LEN
12131230 the complete device name, then only the shortname will be displayed, the rest parts that can't fit in
12141231 will be truncated.
12151232
1216- config BT_BLE_RPA_SUPPORTED
1217- bool "Update RPA to Controller"
1218- depends on (BT_BLUEDROID_ENABLED && ((BT_CONTROLLER_ENABLED && !SOC_BLE_DEVICE_PRIVACY_SUPPORTED) || BT_CONTROLLER_DISABLED)) # NOERROR
1219- default n if (BT_CONTROLLER_ENABLED && !SOC_BLE_DEVICE_PRIVACY_SUPPORTED)
1220- default y if BT_CONTROLLER_DISABLED
1221- help
1222- This enables controller RPA list function.
1223- For ESP32, ESP32 only support network privacy mode. If this option is enabled, ESP32 will only accept
1224- advertising packets from peer devices that contain private address, HW will not receive the advertising
1225- packets contain identity address after IRK changed. If this option is disabled, address resolution will
1226- be performed in the host, so the functions that require controller to resolve address in the white list
1227- cannot be used. This option is disabled by default on ESP32, please enable or disable this option according
1228- to your own needs.
1229-
1230- For other BLE chips, devices support network privacy mode and device privacy mode,
1231- users can switch the two modes according to their own needs. So this option is enabled by default.
1232-
12331233config BT_BLE_RPA_TIMEOUT
12341234 int "Timeout of resolvable private address"
12351235 depends on BT_BLE_ENABLED
@@ -1239,7 +1239,7 @@ config BT_BLE_RPA_TIMEOUT
12391239 This set RPA timeout of Controller and Host.
12401240 Default is 900 s (15 minutes). Range is 1 s to 1 hour (3600 s).
12411241
1242- config BT_BLE_50_FEATURES_SUPPORTED
1242+ menuconfig BT_BLE_50_FEATURES_SUPPORTED
12431243 bool "Enable BLE 5.0 features(please disable BLE 4.2 if enable BLE 5.0)"
12441244 depends on (BT_BLE_ENABLED && ((BT_CONTROLLER_ENABLED && SOC_BLE_50_SUPPORTED) || BT_CONTROLLER_DISABLED))
12451245 default y
@@ -1248,6 +1248,41 @@ config BT_BLE_50_FEATURES_SUPPORTED
12481248 This option is universally supported in chips that support BLE, except for ESP32.
12491249 BLE 4.2 and BLE 5.0 cannot be used simultaneously.
12501250
1251+ config BT_BLE_50_EXTEND_ADV_EN
1252+ bool "Enable BLE extend advertising"
1253+ depends on BT_BLE_50_FEATURES_SUPPORTED
1254+ default y
1255+ help
1256+ This enables BLE extend advertising
1257+
1258+ config BT_BLE_50_PERIODIC_ADV_EN
1259+ bool "Enable BLE periodic advertising"
1260+ depends on BT_BLE_50_FEATURES_SUPPORTED
1261+ default y
1262+ help
1263+ This enables BLE periodic advertising
1264+
1265+ config BT_BLE_50_EXTEND_SCAN_EN
1266+ bool "Enable BLE extend scan"
1267+ depends on BT_BLE_50_FEATURES_SUPPORTED
1268+ default y
1269+ help
1270+ This enables BLE extend scan
1271+
1272+ config BT_BLE_50_EXTEND_SYNC_EN
1273+ bool "Enable BLE periodic advertising sync"
1274+ depends on BT_BLE_50_FEATURES_SUPPORTED
1275+ default y
1276+ help
1277+ This enables BLE periodic advertising sync
1278+
1279+ config BT_BLE_50_DTM_TEST_EN
1280+ bool "Enable BLE 5.0 DTM test"
1281+ depends on BT_BLE_50_FEATURES_SUPPORTED
1282+ default y
1283+ help
1284+ This enables BLE 5.0 direct test mode
1285+
12511286config BT_BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER
12521287 bool "Enable BLE periodic advertising sync transfer feature"
12531288 depends on (BT_BLUEDROID_ENABLED && BT_BLE_50_FEATURES_SUPPORTED && ((BT_CONTROLLER_ENABLED && SOC_ESP_NIMBLE_CONTROLLER) || BT_CONTROLLER_DISABLED)) # NOERROR
@@ -1269,15 +1304,37 @@ config BT_BLE_FEAT_CREATE_SYNC_ENH
12691304 help
12701305 Enable the create sync enhancements
12711306
1272- config BT_BLE_42_FEATURES_SUPPORTED
1307+ menuconfig BT_BLE_42_FEATURES_SUPPORTED
12731308 bool "Enable BLE 4.2 features(please disable BLE 5.0 if enable BLE 4.2)"
1274- depends on (BT_BLE_ENABLED && ((BT_CONTROLLER_ENABLED && SOC_BLE_50_SUPPORTED) || BT_CONTROLLER_DISABLED))
1309+ depends on BT_BLE_ENABLED
1310+ default y if IDF_TARGET_ESP32
12751311 default n
12761312 help
12771313 This enables BLE 4.2 features.
12781314 This option is universally supported by all ESP chips with BLE capabilities.
12791315 BLE 4.2 and BLE 5.0 cannot be used simultaneously.
12801316
1317+ config BT_BLE_42_DTM_TEST_EN
1318+ bool "Enable BLE 4.2 DTM test"
1319+ depends on BT_BLE_42_FEATURES_SUPPORTED
1320+ default y
1321+ help
1322+ This enables BLE 4.2 direct test mode
1323+
1324+ config BT_BLE_42_ADV_EN
1325+ bool "Enable BLE 4.2 advertising"
1326+ depends on BT_BLE_42_FEATURES_SUPPORTED
1327+ default y
1328+ help
1329+ This enables BLE v4.2 advertising
1330+
1331+ config BT_BLE_42_SCAN_EN
1332+ bool "Enable BLE 4.2 scan"
1333+ depends on BT_BLE_42_FEATURES_SUPPORTED
1334+ default y
1335+ help
1336+ This enables BLE v4.2 scan
1337+
12811338config BT_BLE_HIGH_DUTY_ADV_INTERVAL
12821339 bool "Enable BLE high duty advertising interval feature"
12831340 depends on BT_BLE_ENABLED
0 commit comments