Skip to content

Commit 7bbff2c

Browse files
committed
fixup! drivers: nrf_wifi: Restructure to carve out a new nrf70 bus lib
1 parent 6014a3c commit 7bbff2c

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

modules/nrf_wifi/os/CMakeLists.txt

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ target_compile_definitions(
3838
$<$<BOOL:${CONFIG_NRF_WIFI_MGMT_BUFF_OFFLOAD}>:NRF_WIFI_MGMT_BUFF_OFFLOAD>
3939
$<$<BOOL:${CONFIG_NRF_WIFI_FEAT_KEEPALIVE}>:NRF_WIFI_FEAT_KEEPALIVE>
4040
$<$<BOOL:${CONFIG_NRF_WIFI_FEAT_KEEPALIVE}>:NRF_WIFI_KEEPALIVE_PERIOD_S=${CONFIG_NRF_WIFI_KEEPALIVE_PERIOD_S}>
41+
$<$<BOOL:${CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS}>:WIFI_MGMT_RAW_SCAN_RESULTS>
4142
NRF70_RX_NUM_BUFS=${CONFIG_NRF70_RX_NUM_BUFS}
4243
NRF70_MAX_TX_TOKENS=${CONFIG_NRF70_MAX_TX_TOKENS}
4344
NRF70_RX_MAX_DATA_SIZE=${CONFIG_NRF70_RX_MAX_DATA_SIZE}
@@ -132,17 +133,24 @@ zephyr_library_sources(
132133
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_api_common.c
133134
)
134135

135-
zephyr_library_sources_ifndef(CONFIG_NRF70_RADIO_TEST
136-
${NRF_WIFI_DIR}/fw_if/umac_if/src/rx.c
137-
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_vif.c
138-
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_util.c
139-
${NRF_WIFI_DIR}/fw_if/umac_if/src/default/fmac_api.c
140-
)
141-
142-
zephyr_library_sources_ifdef(CONFIG_NRF70_RADIO_TEST
143-
${NRF_WIFI_DIR}/fw_if/umac_if/src/radio_test/fmac_api.c
144-
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_util.c
145-
)
136+
if(CONFIG_NRF70_RADIO_TEST)
137+
zephyr_library_sources(
138+
${NRF_WIFI_DIR}/fw_if/umac_if/src/radio_test/fmac_api.c
139+
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_util.c
140+
)
141+
elseif(CONFIG_NRF70_OFFLOADED_RAW_TX)
142+
zephyr_library_sources(
143+
${NRF_WIFI_DIR}/fw_if/umac_if/src/offload_raw_tx/fmac_api.c
144+
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_util.c
145+
)
146+
else()
147+
zephyr_library_sources(
148+
${NRF_WIFI_DIR}/fw_if/umac_if/src/rx.c
149+
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_vif.c
150+
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_util.c
151+
${NRF_WIFI_DIR}/fw_if/umac_if/src/default/fmac_api.c
152+
)
153+
endif()
146154

147155
zephyr_library_sources_ifdef(CONFIG_NRF70_DATA_TX
148156
${NRF_WIFI_DIR}/fw_if/umac_if/src/tx.c
@@ -155,7 +163,7 @@ zephyr_library_sources_ifdef(CONFIG_NRF70_STA_MODE
155163
)
156164

157165
zephyr_library_sources_ifdef(CONFIG_NRF70_PROMISC_DATA_RX
158-
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/fmac_promisc.c
166+
${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_promisc.c
159167
)
160168

161169
zephyr_library_sources_ifdef(CONFIG_NRF70_AP_MODE

0 commit comments

Comments
 (0)