|
14 | 14 | #include "fmac_main.h" |
15 | 15 | #include "wifi_util.h" |
16 | 16 |
|
| 17 | +#ifndef CONFIG_NRF71_ON_IPC |
17 | 18 | #include "rpu_lmac_phy_stats.h" |
18 | 19 | #include "rpu_umac_stats.h" |
| 20 | +#endif |
19 | 21 |
|
20 | 22 | extern struct nrf_wifi_drv_priv_zep rpu_drv_priv_zep; |
21 | 23 | struct nrf_wifi_ctx_zep *ctx = &rpu_drv_priv_zep.rpu_ctx_zep; |
@@ -973,6 +975,7 @@ static int nrf_wifi_util_rpu_recovery_info(const struct shell *sh, |
973 | 975 | } |
974 | 976 | #endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */ |
975 | 977 |
|
| 978 | +#ifndef CONFIG_NRF71_ON_IPC |
976 | 979 | static int nrf_wifi_dump_stats(const struct shell *sh, |
977 | 980 | struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, |
978 | 981 | const char *name, |
@@ -1010,6 +1013,7 @@ static int nrf_wifi_dump_stats(const struct shell *sh, |
1010 | 1013 | return ret; |
1011 | 1014 | } |
1012 | 1015 |
|
| 1016 | + |
1013 | 1017 | static int nrf_wifi_util_dump_rpu_stats_mem(const struct shell *sh, |
1014 | 1018 | size_t argc, |
1015 | 1019 | const char *argv[]) |
@@ -1095,6 +1099,7 @@ static int nrf_wifi_util_dump_rpu_stats_mem(const struct shell *sh, |
1095 | 1099 | k_mutex_unlock(&ctx->rpu_lock); |
1096 | 1100 | return ret; |
1097 | 1101 | } |
| 1102 | +#endif /* !CONFIG_NRF71_ON_IPC */ |
1098 | 1103 |
|
1099 | 1104 | SHELL_STATIC_SUBCMD_SET_CREATE( |
1100 | 1105 | nrf70_util, |
@@ -1199,13 +1204,15 @@ SHELL_STATIC_SUBCMD_SET_CREATE( |
1199 | 1204 | 1, |
1200 | 1205 | 0), |
1201 | 1206 | #endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */ |
| 1207 | +#ifndef CONFIG_NRF71_ON_IPC |
1202 | 1208 | SHELL_CMD_ARG(rpu_stats_mem, |
1203 | 1209 | NULL, |
1204 | 1210 | "Display RPU stats by reading from memory " |
1205 | 1211 | "Parameters: umac or lmac or or all (default)", |
1206 | 1212 | nrf_wifi_util_dump_rpu_stats_mem, |
1207 | 1213 | 1, |
1208 | 1214 | 1), |
| 1215 | +#endif /* !CONFIG_NRF71_ON_IPC */ |
1209 | 1216 | SHELL_SUBCMD_SET_END); |
1210 | 1217 |
|
1211 | 1218 |
|
|
0 commit comments