Skip to content

Commit b395871

Browse files
sachinthegreenkartben
authored andcommitted
drivers: nrf_wifi: Move util to nrf70 shell
Move the wifi_util to the newly created nrf70 shell as a sub-shell. Signed-off-by: Sachin D Kulkarni <[email protected]>
1 parent ceead4e commit b395871

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drivers/wifi/nrf_wifi/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ zephyr_library_sources_ifdef(CONFIG_NRF70_UTIL
6262
src/wifi_util.c
6363
)
6464

65+
if(CONFIG_NRF70_UTIL OR CONFIG_NRF70_DEBUG_SHELL)
66+
zephyr_library_sources(src/shell.c)
67+
endif()
68+
6569
zephyr_library_sources_ifdef(CONFIG_NRF70_DEBUG_SHELL
66-
src/shell.c
6770
src/debug_shell.c
6871
)
6972

drivers/wifi/nrf_wifi/src/wifi_util.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ static int nrf_wifi_util_dump_rpu_stats_mem(const struct shell *sh,
10901090
}
10911091

10921092
SHELL_STATIC_SUBCMD_SET_CREATE(
1093-
nrf_wifi_util_subcmds,
1093+
nrf70_util,
10941094
SHELL_CMD_ARG(he_ltf,
10951095
NULL,
10961096
"0 - 1x HE LTF\n"
@@ -1202,10 +1202,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
12021202
SHELL_SUBCMD_SET_END);
12031203

12041204

1205-
SHELL_CMD_REGISTER(wifi_util,
1206-
&nrf_wifi_util_subcmds,
1207-
"nRF Wi-Fi utility shell commands",
1208-
NULL);
1205+
SHELL_SUBCMD_ADD((nrf70), util, &nrf70_util, "nRF70 utility commands\n", NULL, 0, 0);
12091206

12101207

12111208
static int nrf_wifi_util_init(void)

0 commit comments

Comments
 (0)