Skip to content

Commit 1096fc3

Browse files
sachinthegreenkrish2718
authored andcommitted
[nrf fromlist] drivers: nrf_wifi: Move util to nrf70 shell
Move the wifi_util to the newly created nrf70 shell as a sub-shell. Upstream PR #: 87823 Signed-off-by: Sachin D Kulkarni <[email protected]>
1 parent 49713e4 commit 1096fc3

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
@@ -964,7 +964,7 @@ static int nrf_wifi_util_rpu_recovery_info(const struct shell *sh,
964964
#endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */
965965

966966
SHELL_STATIC_SUBCMD_SET_CREATE(
967-
nrf_wifi_util_subcmds,
967+
nrf70_util,
968968
SHELL_CMD_ARG(he_ltf,
969969
NULL,
970970
"0 - 1x HE LTF\n"
@@ -1069,10 +1069,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
10691069
SHELL_SUBCMD_SET_END);
10701070

10711071

1072-
SHELL_CMD_REGISTER(wifi_util,
1073-
&nrf_wifi_util_subcmds,
1074-
"nRF Wi-Fi utility shell commands",
1075-
NULL);
1072+
SHELL_SUBCMD_ADD((nrf70), util, &nrf70_util, "nRF70 utility commands\n", NULL, 0, 0);
10761073

10771074

10781075
static int nrf_wifi_util_init(void)

0 commit comments

Comments
 (0)