Skip to content

Commit

Permalink
nrf_wifi: Radio test fixes
Browse files Browse the repository at this point in the history
Fix radio test mode.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed Aug 25, 2024
1 parent 7c01481 commit 27478ae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
14 changes: 10 additions & 4 deletions nrf_wifi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions nrf_wifi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ config NRF_WIFI
help
Enable the nRF70 OS agnostic library.

config NRF70_RADIO_TEST
bool "Enable nRF70 radio test"
help
Enable the nRF70 radio test.

endmenu
Binary file modified nrf_wifi/fw_bins/radio_test/nrf70.bin
Binary file not shown.

0 comments on commit 27478ae

Please sign in to comment.