From f2ca74b139389c4bec6810c98a471586d9d34bba Mon Sep 17 00:00:00 2001 From: zwj Date: Mon, 22 Mar 2021 21:04:56 +0800 Subject: [PATCH] add option to enable/disable esp32 controller RPA --- components/bt/host/bluedroid/Kconfig.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/components/bt/host/bluedroid/Kconfig.in b/components/bt/host/bluedroid/Kconfig.in index f1be9b1424..19b00cd335 100644 --- a/components/bt/host/bluedroid/Kconfig.in +++ b/components/bt/host/bluedroid/Kconfig.in @@ -1004,10 +1004,20 @@ config BT_BLE_ESTAB_LINK_CONN_TOUT config BT_BLE_RPA_SUPPORTED bool "Update RPA to Controller" - depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3)) - default y + depends on BT_BLUEDROID_ENABLED + default y if (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3) + default n if IDF_TARGET_ESP32 help This enables controller RPA list function. + For ESP32, ESP32 only support network privacy mode. If this option is enabled, ESP32 will only accept + advertising packets from peer devices that contain private address, HW will not receive the advertising + packets contain identity address after IRK changed. If this option is disabled, address resolution will + be performed in the host, so the functions that require controller to resolve address in the white list + cannot be used. This option is disabled by default on ESP32, please enable or disable this option according + to your own needs. + + For ESP32C3 and esp32s3, devices support network privacy mode and device privacy mode, users can switch the + two modes according to their own needs. So this option is enabled by default. config BT_BLE_50_FEATURES_SUPPORTED bool "Enable BLE 5.0 features"