Skip to content

Commit 3d8ae60

Browse files
krish2718carlescufi
authored andcommitted
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>
1 parent 9a2b172 commit 3d8ae60

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/wifi/nrf700x/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ endchoice
646646

647647
config NRF_WIFI_RPU_RECOVERY
648648
bool "Enable RPU recovery mechanism"
649+
depends on NRF_WIFI_LOW_POWER
649650
select EXPERIMENTAL
650651
default y
651652
help

drivers/wifi/nrf700x/inc/fmac_main.h

+2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ enum nrf_wifi_status nrf_wifi_fmac_dev_add_zep(struct nrf_wifi_drv_priv_zep *drv
127127
enum nrf_wifi_status nrf_wifi_fmac_dev_rem_zep(struct nrf_wifi_drv_priv_zep *drv_priv_zep);
128128
enum nrf_wifi_status nrf_wifi_fw_load(void *rpu_ctx);
129129
struct nrf_wifi_vif_ctx_zep *nrf_wifi_get_vif_ctx(struct net_if *iface);
130+
#ifdef CONFIG_NRF_WIFI_RPU_RECOVERY
130131
void nrf_wifi_rpu_recovery_cb(void *vif_ctx,
131132
void *event_data,
132133
unsigned int event_len);
134+
#endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */
133135

134136
#endif /* __ZEPHYR_FMAC_MAIN_H__ */

0 commit comments

Comments
 (0)