diff --git a/subsys/bluetooth/controller/CMakeLists.txt b/subsys/bluetooth/controller/CMakeLists.txt index 2b75037a833a7d..4fef0c30ee6c02 100644 --- a/subsys/bluetooth/controller/CMakeLists.txt +++ b/subsys/bluetooth/controller/CMakeLists.txt @@ -162,7 +162,7 @@ if(CONFIG_SOC_COMPATIBLE_NRF) endif() zephyr_library_compile_options_ifdef( - CONFIG_BT_CTLR_FAST_ENC + CONFIG_BT_CTLR_OPTIMIZE_FOR_SPEED ${OPTIMIZE_FOR_SPEED_FLAG} ) diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index 98be4f502fed40..7046a55d208901 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -401,6 +401,12 @@ endif # BT_PHY_UPDATE if BT_LL_SW +config BT_CTLR_OPTIMIZE_FOR_SPEED + bool "Optimize for Speed" + default y if BT_CTLR_LE_ENC + help + Optimize compilation of controller for execution speed. + config BT_CTLR_WORKER_PRIO int "Radio and Ticker's Worker IRQ priority" range 0 3 if SOC_SERIES_NRF51X