File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
drivers/wifi/nrf_wifi/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1717LOG_MODULE_DECLARE (wifi_nrf , CONFIG_WIFI_NRF70_LOG_LEVEL );
1818
1919#include <fmac_main.h>
20+ #ifndef CONFIG_NRF71_ON_IPC
2021static const char fw_patch [] = {
2122 #include <nrf70_fw_patch/nrf70.bin.inc>
2223};
24+ #endif /* !CONFIG_NRF71_ON_IPC */
2325
2426enum 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}
You can’t perform that action at this time.
0 commit comments