From 3f4597d0c91b75f77f8af333c89c6464c51dee30 Mon Sep 17 00:00:00 2001 From: Krishna T Date: Thu, 15 Dec 2022 19:44:55 +0530 Subject: [PATCH] net: l2: wifi: Arrange commands in alphabetical order This helps find the command needed easily. Signed-off-by: Krishna T --- subsys/net/l2/wifi/wifi_shell.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subsys/net/l2/wifi/wifi_shell.c b/subsys/net/l2/wifi/wifi_shell.c index 7585cefe338..66afab8eec7 100644 --- a/subsys/net/l2/wifi/wifi_shell.c +++ b/subsys/net/l2/wifi/wifi_shell.c @@ -425,15 +425,16 @@ static int cmd_wifi_ap_disable(const struct shell *sh, size_t argc, } SHELL_STATIC_SUBCMD_SET_CREATE(wifi_cmd_ap, - SHELL_CMD(enable, NULL, " [channel] [PSK]", - cmd_wifi_ap_enable), SHELL_CMD(disable, NULL, "Disable Access Point mode", cmd_wifi_ap_disable), + SHELL_CMD(enable, NULL, " [channel] [PSK]", + cmd_wifi_ap_enable), SHELL_SUBCMD_SET_END ); SHELL_STATIC_SUBCMD_SET_CREATE(wifi_commands, + SHELL_CMD(ap, &wifi_cmd_ap, "Access Point mode commands", NULL), SHELL_CMD(connect, NULL, "Connect to a Wi-Fi AP\n" "\"\"\n" @@ -447,9 +448,8 @@ SHELL_STATIC_SUBCMD_SET_CREATE(wifi_commands, SHELL_CMD(disconnect, NULL, "Disconnect from the Wi-Fi AP", cmd_wifi_disconnect), SHELL_CMD(scan, NULL, "Scan for Wi-Fi APs", cmd_wifi_scan), - SHELL_CMD(status, NULL, "Status of the Wi-Fi interface", cmd_wifi_status), SHELL_CMD(statistics, NULL, "Wi-Fi interface statistics", cmd_wifi_stats), - SHELL_CMD(ap, &wifi_cmd_ap, "Access Point mode commands", NULL), + SHELL_CMD(status, NULL, "Status of the Wi-Fi interface", cmd_wifi_status), SHELL_SUBCMD_SET_END );