Skip to content

Commit 9dc2a1c

Browse files
committed
Disable parsing the FW
FW loading isn't applicable, so, disable the parsing too. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 52600ff commit 9dc2a1c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/wifi/nrf_wifi/src/fw_load.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,32 @@
1717
LOG_MODULE_DECLARE(wifi_nrf, CONFIG_WIFI_NRF70_LOG_LEVEL);
1818

1919
#include <fmac_main.h>
20+
#ifndef CONFIG_NRF71_ON_IPC
2021
static const char fw_patch[] = {
2122
#include <nrf70_fw_patch/nrf70.bin.inc>
2223
};
24+
#endif /* !CONFIG_NRF71_ON_IPC */
2325

2426
enum nrf_wifi_status nrf_wifi_fw_load(void *rpu_ctx)
2527
{
2628
enum nrf_wifi_status status = NRF_WIFI_STATUS_FAIL;
29+
#ifndef CONFIG_NRF71_ON_IPC
2730
struct nrf_wifi_fmac_fw_info fw_info = { 0 };
2831

2932
status = nrf_wifi_fmac_fw_parse(rpu_ctx, fw_patch, sizeof(fw_patch), &fw_info);
3033
if (status != NRF_WIFI_STATUS_SUCCESS) {
3134
LOG_ERR("%s: nrf_wifi_fmac_fw_parse failed", __func__);
3235
return status;
3336
}
34-
#ifndef CONFIG_NRF71_ON_IPC
37+
3538
/* Load the FW patches to the RPU */
3639
status = nrf_wifi_fmac_fw_load(rpu_ctx, &fw_info);
3740

3841
if (status != NRF_WIFI_STATUS_SUCCESS) {
3942
LOG_ERR("%s: nrf_wifi_fmac_fw_load failed", __func__);
4043
}
44+
#else
45+
status = NRF_WIFI_STATUS_SUCCESS;
4146
#endif /* !CONFIG_NRF71_ON_IPC */
4247
return status;
4348
}

0 commit comments

Comments
 (0)