From 9c56b6a0aa0c8e3bbbf251539e0effdd505a239e Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Sun, 8 Dec 2024 20:31:44 +0530 Subject: [PATCH] Fix structure mismatch The define should only be passed when it's enabled in the BM code, not unconditioanlly, this causes mismatch in the strucutre definition. Signed-off-by: Chaitanya Tata --- nrf_wifi/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nrf_wifi/CMakeLists.txt b/nrf_wifi/CMakeLists.txt index 56abf23800..9e7f9585e4 100644 --- a/nrf_wifi/CMakeLists.txt +++ b/nrf_wifi/CMakeLists.txt @@ -116,6 +116,12 @@ target_compile_definitions_ifdef(CONFIG_NRF70_RADIO_TEST -DCONFIG_NRF700X_RADIO_TEST ) +target_compile_definitions_ifdef(CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS + nrf-wifi + PRIVATE + -DCONFIG_WIFI_MGMT_RAW_SCAN_RESULTS +) + target_compile_definitions( nrf-wifi PRIVATE @@ -126,7 +132,6 @@ target_compile_definitions( -DCONFIG_NRF700X_MAX_TX_AGGREGATION=12 -DCONFIG_NRF700X_RX_NUM_BUFS=63 -DCONFIG_NRF700X_RX_MAX_DATA_SIZE=1600 - -DCONFIG_WIFI_MGMT_RAW_SCAN_RESULTS -DCONFIG_NRF700X_ANT_GAIN_2G=0 -DCONFIG_NRF700X_ANT_GAIN_5G_BAND1=0 -DCONFIG_NRF700X_ANT_GAIN_5G_BAND2=0