Browse Source

drivers: wifi: Fix RPU recovery disabled build failures

Fix RPU recovery protection to solve build failures when RPU recovery is
disabled.

As recovery is primarily based on power-management, add a Kconfig
dependency to enforce, this simplies the macros to protect the code.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
pull/66505/merge
Chaitanya Tata 12 months ago committed by Carles Cufí
parent
commit
5c8f1807c1
  1. 1
      drivers/wifi/nrfwifi/Kconfig.nrfwifi
  2. 3
      drivers/wifi/nrfwifi/inc/fmac_main.h

1
drivers/wifi/nrfwifi/Kconfig.nrfwifi

@ -655,6 +655,7 @@ config NRF_WIFI_AP_DEAD_DETECT_TIMEOUT @@ -655,6 +655,7 @@ config NRF_WIFI_AP_DEAD_DETECT_TIMEOUT
config NRF_WIFI_RPU_RECOVERY
bool "RPU recovery mechanism"
depends on NRF_WIFI_LOW_POWER
select EXPERIMENTAL
help
Enable RPU recovery mechanism to recover from RPU (nRF70) hang.

3
drivers/wifi/nrfwifi/inc/fmac_main.h

@ -146,8 +146,9 @@ enum nrf_wifi_status nrf_wifi_fw_load(void *rpu_ctx); @@ -146,8 +146,9 @@ enum nrf_wifi_status nrf_wifi_fw_load(void *rpu_ctx);
#endif /* CONFIG_NRF_WIFI_BUILD_ONLY_MODE */
#ifndef CONFIG_NRF70_OFFLOADED_RAW_TX
struct nrf_wifi_vif_ctx_zep *nrf_wifi_get_vif_ctx(struct net_if *iface);
#ifdef CONFIG_NRF_WIFI_RPU_RECOVERY
void nrf_wifi_rpu_recovery_cb(void *vif_ctx,
void *event_data,
unsigned int event_len);
#endif /* !CONFIG_NRF_WIFI_BUILD_ONLY_MODE */
#endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */
#endif /* __ZEPHYR_FMAC_MAIN_H__ */

Loading…
Cancel
Save