Skip to content

Commit 26c5563

Browse files
style: format code with clang-format [skip ci]
1 parent 8dc82a5 commit 26c5563

1 file changed

Lines changed: 20 additions & 22 deletions

File tree

components/drivers/wlan/dev_wlan_cmd.c

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,35 @@ static int wifi_debug_set_autoconnect(int argc, char *argv[]);
5656
#endif
5757

5858
/* cmd table */
59-
static const struct wifi_cmd_des cmd_tab[] =
60-
{
61-
{"scan", wifi_scan},
62-
{"help", wifi_help},
63-
{"status", wifi_status},
64-
{"join", wifi_join},
65-
{"ap", wifi_ap},
66-
{"list_sta", wifi_list_sta},
67-
{"disc", wifi_disconnect},
68-
{"ap_stop", wifi_ap_stop},
69-
{"smartconfig", RT_NULL},
59+
static const struct wifi_cmd_des cmd_tab[] = {
60+
{ "scan", wifi_scan },
61+
{ "help", wifi_help },
62+
{ "status", wifi_status },
63+
{ "join", wifi_join },
64+
{ "ap", wifi_ap },
65+
{ "list_sta", wifi_list_sta },
66+
{ "disc", wifi_disconnect },
67+
{ "ap_stop", wifi_ap_stop },
68+
{ "smartconfig", RT_NULL },
7069
#ifdef RT_WLAN_CMD_DEBUG
71-
{"-d", wifi_debug},
70+
{ "-d", wifi_debug },
7271
#endif
7372
};
7473

7574
#ifdef RT_WLAN_CMD_DEBUG
7675
/* debug cmd table */
77-
static const struct wifi_cmd_des debug_tab[] =
78-
{
79-
{"save_cfg", wifi_debug_save_cfg},
80-
{"dump_cfg", wifi_debug_dump_cfg},
81-
{"clear_cfg", wifi_debug_clear_cfg},
76+
static const struct wifi_cmd_des debug_tab[] = {
77+
{ "save_cfg", wifi_debug_save_cfg },
78+
{ "dump_cfg", wifi_debug_dump_cfg },
79+
{ "clear_cfg", wifi_debug_clear_cfg },
8280
#ifdef RT_WLAN_PROT_ENABLE
83-
{"dump_prot", wifi_debug_dump_prot},
84-
{"mode", wifi_debug_set_mode},
85-
{"prot", wifi_debug_set_prot},
81+
{ "dump_prot", wifi_debug_dump_prot },
82+
{ "mode", wifi_debug_set_mode },
83+
{ "prot", wifi_debug_set_prot },
8684
#else
87-
{"mode", wifi_debug_set_mode },
85+
{ "mode", wifi_debug_set_mode },
8886
#endif /* RT_WLAN_PROT_ENABLE */
89-
{"auto", wifi_debug_set_autoconnect },
87+
{ "auto", wifi_debug_set_autoconnect },
9088
};
9189
#endif
9290

0 commit comments

Comments
 (0)