Skip to content

Commit aeefba6

Browse files
committed
[nrf fromlist] drivers: nrf_wifi: Fix NRF71 build
NRF71 doesn't have direct memory access, so, disabled the rpu stats memory variant. Upstream PR #: 96807 Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 47d83ea commit aeefba6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/wifi/nrf_wifi/src/wifi_util.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ static int nrf_wifi_util_rpu_recovery_info(const struct shell *sh,
973973
}
974974
#endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */
975975

976+
#ifndef CONFIG_NRF71_ON_IPC
976977
static int nrf_wifi_dump_stats(const struct shell *sh,
977978
struct nrf_wifi_hal_dev_ctx *hal_dev_ctx,
978979
const char *name,
@@ -1010,6 +1011,7 @@ static int nrf_wifi_dump_stats(const struct shell *sh,
10101011
return ret;
10111012
}
10121013

1014+
10131015
static int nrf_wifi_util_dump_rpu_stats_mem(const struct shell *sh,
10141016
size_t argc,
10151017
const char *argv[])
@@ -1095,6 +1097,7 @@ static int nrf_wifi_util_dump_rpu_stats_mem(const struct shell *sh,
10951097
k_mutex_unlock(&ctx->rpu_lock);
10961098
return ret;
10971099
}
1100+
#endif /* !CONFIG_NRF71_ON_IPC */
10981101

10991102
SHELL_STATIC_SUBCMD_SET_CREATE(
11001103
nrf70_util,
@@ -1199,13 +1202,15 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
11991202
1,
12001203
0),
12011204
#endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */
1205+
#ifndef CONFIG_NRF71_ON_IPC
12021206
SHELL_CMD_ARG(rpu_stats_mem,
12031207
NULL,
12041208
"Display RPU stats by reading from memory "
12051209
"Parameters: umac or lmac or or all (default)",
12061210
nrf_wifi_util_dump_rpu_stats_mem,
12071211
1,
12081212
1),
1213+
#endif /* !CONFIG_NRF71_ON_IPC */
12091214
SHELL_SUBCMD_SET_END);
12101215

12111216

0 commit comments

Comments
 (0)