From a1ec0b0700d75916a7074475485c9e3333f12134 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Sun, 28 Jul 2024 00:38:06 +0530 Subject: [PATCH] nrf_wifi: Scan fixes Enable management buffer offload for scan and also pass missing args. Signed-off-by: Chaitanya Tata --- nrf_wifi/CMakeLists.txt | 6 ++++++ nrf_wifi/fw_bins/scan_only/nrf70.bin | Bin 25784 -> 25932 bytes nrf_wifi/fw_if/umac_if/src/cmd.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/nrf_wifi/CMakeLists.txt b/nrf_wifi/CMakeLists.txt index 60f59e82cc..b5cfd36aaf 100644 --- a/nrf_wifi/CMakeLists.txt +++ b/nrf_wifi/CMakeLists.txt @@ -104,6 +104,12 @@ target_sources_ifdef(CONFIG_NRF700X_STA_MODE ${NRF_WIFI_DIR}/fw_if/umac_if/src/fmac_util.c ) +target_compile_definitions_ifdef(CONFIG_NRF_WIFI_LOW_POWER + nrf-wifi + PRIVATE + -DCONFIG_NRF_WIFI_LOW_POWER +) + target_compile_definitions( nrf-wifi PRIVATE diff --git a/nrf_wifi/fw_bins/scan_only/nrf70.bin b/nrf_wifi/fw_bins/scan_only/nrf70.bin index 6edf6efee102c189d91a933f0258d5509aeb3212..e450858f59609b1aa687ce4f4da2a92936fe7900 100644 GIT binary patch delta 3943 zcmbVOdr(tX9zN&fLU;v&TrenB-VY%fUKSL2Bt*~#iAWV`6%0|#japl2bvw2o8(VB) zWqQ)Cuc^pGvEoRLTHQk1)#}ogDbAQyx3ArTAl9OSZ6|bN-QT%E>g?`co0**Z{l4@4 z9_MxMIr|Cj{S>F1c(gL`?c$zX~|iM^r|L$3;)@lcpJ*4HHLDou{p=H zMhz?_>C)n{!Ou8HF}*^e<>*>&sx#uAtqsqGYmx|6sXlFyV4-=~Sfl;IC z+O3Mt)9953qiW9&F82CpMdv6Q$mWpC9vro(cHgvgHlXX1+>otXvV-6On&loCcYV|V z&dkZu&;o%gf(A#`;GzZ>j|LWm{S84w^d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TJIL| z*#bwkL2%pW941&#$CT<-`U-YMW0|+SoSCxvarc7KTmtXNw)y$cUYuWt!>MCIDZGy# zFG#_o>FouHz>Irz47{}2j~>A|!+qy51txD4(SRokqIL+xH4jQe&8#e&Zl{>msB0A1 zd)dizbjcID#_kl1J`{j&cEZ%-_0~co%9_CXw{=;xjRH+CGb>dBX)hE%H)dUnKEOebDPm3QgWUqO(P}L!h6R>5_K}OAFaY$__?0pYNX0=aaJdkbY?) zOJ&zKi632)wi)a!Pyp4ICy`cxPA`updju+!uTn)l{+mVlzC4TzJP-uem2fE?x#)pV RFI+<49(fAxZIYE5^j~{Y0*?Ry diff --git a/nrf_wifi/fw_if/umac_if/src/cmd.c b/nrf_wifi/fw_if/umac_if/src/cmd.c index 04116048c7..e83f0ff42b 100644 --- a/nrf_wifi/fw_if/umac_if/src/cmd.c +++ b/nrf_wifi/fw_if/umac_if/src/cmd.c @@ -151,6 +151,8 @@ enum nrf_wifi_status umac_cmd_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, #endif /* CONFIG_NRF700X_TCP_IP_CHECKSUM_OFFLOAD */ umac_cmd_data->discon_timeout = CONFIG_NRF_WIFI_AP_DEAD_DETECT_TIMEOUT; + umac_cmd_data->mgmt_buff_offload = 1; + nrf_wifi_osal_log_dbg(fmac_dev_ctx->fpriv->opriv, "RPU LPM type: %s", umac_cmd_data->sys_params.sleep_enable == 2 ? "HW" : umac_cmd_data->sys_params.sleep_enable == 1 ? "SW" : "DISABLED");