diff --git a/nrf_wifi/CMakeLists.txt b/nrf_wifi/CMakeLists.txt index b5cfd36aaf..244fdff874 100644 --- a/nrf_wifi/CMakeLists.txt +++ b/nrf_wifi/CMakeLists.txt @@ -27,13 +27,13 @@ target_include_directories( ${NRF_WIFI_DIR}/fw_if/umac_if/inc/fw ) -target_include_directories_ifdef(CONFIG_NRF700X_RADIO_TEST +target_include_directories_ifdef(CONFIG_NRF70_RADIO_TEST nrf-wifi PUBLIC ${NRF_WIFI_DIR}/fw_if/umac_if/inc/radio_test ) -target_include_directories_ifndef(CONFIG_NRF700X_RADIO_TEST +target_include_directories_ifndef(CONFIG_NRF70_RADIO_TEST nrf-wifi PUBLIC ${NRF_WIFI_DIR}/fw_if/umac_if/inc/default @@ -60,7 +60,7 @@ target_sources( ${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_api_common.c ) -target_sources_ifndef(CONFIG_NRF700X_RADIO_TEST +target_sources_ifndef(CONFIG_NRF70_RADIO_TEST nrf-wifi PRIVATE ${NRF_WIFI_DIR}/fw_if/umac_if/src/rx.c @@ -69,7 +69,7 @@ target_sources_ifndef(CONFIG_NRF700X_RADIO_TEST ${NRF_WIFI_DIR}/fw_if/umac_if/src/default/fmac_api.c ) -target_sources_ifdef(CONFIG_NRF700X_RADIO_TEST +target_sources_ifdef(CONFIG_NRF70_RADIO_TEST nrf-wifi PRIVATE ${NRF_WIFI_DIR}/fw_if/umac_if/src/radio_test/fmac_api.c @@ -110,6 +110,12 @@ target_compile_definitions_ifdef(CONFIG_NRF_WIFI_LOW_POWER -DCONFIG_NRF_WIFI_LOW_POWER ) +target_compile_definitions_ifdef(CONFIG_NRF70_RADIO_TEST + nrf-wifi + PRIVATE + -DCONFIG_NRF700X_RADIO_TEST +) + target_compile_definitions( nrf-wifi PRIVATE diff --git a/nrf_wifi/Kconfig b/nrf_wifi/Kconfig index 95fe115863..15bc34939a 100644 --- a/nrf_wifi/Kconfig +++ b/nrf_wifi/Kconfig @@ -9,4 +9,10 @@ config NRF_WIFI bool "Enable nRF70 OS agnostic library" help Enable the nRF70 OS agnostic library. + +config NRF70_RADIO_TEST + bool "Enable nRF70 radio test" + help + Enable the nRF70 radio test. + endmenu