@@ -550,10 +550,79 @@ config BT_CTRL_BLE_SECURITY_ENABLE
550550 depends on BT_CTRL_RUN_IN_FLASH_ONLY && BT_CONTROLLER_ONLY
551551 bool "Enable BLE security feature"
552552 default y
553+
553554config BT_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
554555 bool "Enable enhanced Access Address check in CONNECT_IND"
555556 default n
556557 help
557558 Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.
558559 This improves security by ensuring that only connection requests with valid Access Addresses are accepted.
559560 If disabled, only basic checks are applied, improving compatibility.
561+
562+ menu "Controller debug log Options (Experimental)"
563+ config BT_CTRL_LE_LOG_EN
564+ depends on BT_CTRL_RUN_IN_FLASH_ONLY
565+ bool "Enable BLE debug log"
566+ default n
567+
568+ config BT_CTRL_LE_HCI_LOG_EN
569+ depends on BT_CTRL_LE_LOG_EN
570+ bool "Enable BLE HCI log"
571+ default n
572+
573+ config BT_CTRL_LE_LOG_DUMP_ONLY
574+ depends on BT_CTRL_LE_LOG_EN
575+ bool "Enable BLE log dump only"
576+ default n
577+
578+ config BT_CTRL_LE_LOG_STORAGE_EN
579+ depends on BT_CTRL_LE_LOG_EN
580+ bool "Enable BLE log storage to flash"
581+ default n
582+
583+ config BT_CTRL_LE_LOG_PARTITION_SIZE
584+ int "The size of ble controller log partition(Multiples of 4K)"
585+ depends on BT_CTRL_LE_LOG_STORAGE_EN
586+ default 65536
587+ help
588+ The size of ble controller log partition shall be a multiples of 4K.
589+ The name of log partition shall be "bt_ctrl_log".
590+ The partition type shall be ESP_PARTITION_TYPE_DATA.
591+ The partition sub_type shall be ESP_PARTITION_SUBTYPE_ANY.
592+
593+ config BT_CTRL_LE_LOG_SPI_OUT_EN
594+ bool "Output ble controller logs to SPI bus"
595+ depends on BT_CTRL_LE_LOG_EN
596+ depends on !BT_CTRL_LE_LOG_DUMP_ONLY
597+ select BT_BLE_LOG_SPI_OUT_ENABLED
598+ default n
599+ help
600+ Output ble controller logs to SPI bus
601+
602+ config BT_CTRL_LE_LOG_MODE_EN
603+ depends on BT_CTRL_LE_LOG_EN
604+ int "Enable log for specified BLE mode"
605+ range 0 4095
606+ default 4093
607+
608+ config BT_CTRL_LE_LOG_LEVEL
609+ depends on BT_CTRL_LE_LOG_EN
610+ int "The level of BLE log"
611+ range 0 5
612+ default 2
613+
614+ config BT_CTRL_LE_LOG_BUF1_SIZE
615+ depends on BT_CTRL_LE_LOG_EN
616+ int "The size of BLE log buffer1"
617+ default 1024
618+
619+ config BT_CTRL_LE_LOG_HCI_BUF_SIZE
620+ depends on BT_CTRL_LE_LOG_EN
621+ int "The size of BLE log HCI buffer"
622+ default 1024
623+
624+ config BT_CTRL_LE_LOG_BUF2_SIZE
625+ depends on BT_CTRL_LE_LOG_EN
626+ int "The size of BLE log buffer2"
627+ default 1024
628+ endmenu
0 commit comments