Просмотр исходного кода

Merge branch 'bugfix/btdm_add_controller_support_RPA' into 'master'

add option to enable/disable esp32 controller RPA

See merge request espressif/esp-idf!12832
Jiang Jiang Jian 4 лет назад
Родитель
Сommit
bcbf1d2c3c
1 измененных файлов с 12 добавлено и 2 удалено
  1. 12 2
      components/bt/host/bluedroid/Kconfig.in

+ 12 - 2
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"