Lines Matching refs:argc
213 static int cmd_ping(int s, int argc, char *argv[]) in cmd_ping() argument
222 static int cmd_terminate(int s, int argc, char *argv[]) in cmd_terminate() argument
228 static int cmd_list_bss(int s, int argc, char *argv[]) in cmd_list_bss() argument
253 static int cmd_list_sta(int s, int argc, char *argv[]) in cmd_list_sta() argument
261 if (argc < 1) { in cmd_list_sta()
303 static int cmd_flush(int s, int argc, char *argv[]) in cmd_flush() argument
309 static int cmd_clear_sta_counters(int s, int argc, char *argv[]) in cmd_clear_sta_counters() argument
315 if (argc < 2) { in cmd_clear_sta_counters()
373 static int cmd_clear_bss_counters(int s, int argc, char *argv[]) in cmd_clear_bss_counters() argument
379 if (argc < 1) { in cmd_clear_bss_counters()
413 static int cmd_clear_tdls_counters(int s, int argc, char *argv[]) in cmd_clear_tdls_counters() argument
419 if (argc < 3) { in cmd_clear_tdls_counters()
542 static int cmd_get_sta_counter(int s, int argc, char *argv[]) in cmd_get_sta_counter() argument
549 if (argc != 3) { in cmd_get_sta_counter()
650 static int cmd_get_bss_counter(int s, int argc, char *argv[]) in cmd_get_bss_counter() argument
657 if (argc != 2) { in cmd_get_bss_counter()
730 static int cmd_relog(int s, int argc, char *argv[]) in cmd_relog() argument
755 static int cmd_get_tdls_counter(int s, int argc, char *argv[]) in cmd_get_tdls_counter() argument
762 if (argc != 4) { in cmd_get_tdls_counter()
871 static int cmd_inject(int s, int argc, char *argv[]) in cmd_inject() argument
880 if (argc < 5) { in cmd_inject()
1054 static int cmd_send(int s, int argc, char *argv[]) in cmd_send() argument
1064 if (argc < 2) { in cmd_send()
1096 for (arg = 1; pos && arg < argc; arg++) in cmd_send()
1140 static int cmd_version(int s, int argc, char *argv[]) in cmd_version() argument
1166 static int cmd_add_passphrase(int s, int argc, char *argv[]) in cmd_add_passphrase() argument
1173 if (argc < 1) { in cmd_add_passphrase()
1189 if (argc > 1) { in cmd_add_passphrase()
1205 static int cmd_add_wepkey(int s, int argc, char *argv[]) in cmd_add_wepkey() argument
1211 if (argc < 1) { in cmd_add_wepkey()
1244 static int cmd_info_sta(int s, int argc, char *argv[]) in cmd_info_sta() argument
1252 if (argc != 3) { in cmd_info_sta()
1357 static int cmd_info_bss(int s, int argc, char *argv[]) in cmd_info_bss() argument
1365 if (argc != 2) { in cmd_info_bss()
1442 static int cmd_get_tx_tid(int s, int argc, char *argv[]) in cmd_get_tx_tid() argument
1449 if (argc != 3) { in cmd_get_tx_tid()
1488 static int cmd_get_rx_tid(int s, int argc, char *argv[]) in cmd_get_rx_tid() argument
1495 if (argc != 3) { in cmd_get_rx_tid()
1555 static int wlantest_cli_cmd_help(int s, int argc, char *argv[]) in wlantest_cli_cmd_help() argument
1557 print_help(stdout, argc > 0 ? argv[0] : NULL); in wlantest_cli_cmd_help()
1579 int (*handler)(int s, int argc, char *argv[]);
1673 static int ctrl_command(int s, int argc, char *argv[]) in ctrl_command() argument
1706 ret = match->handler(s, argc - 1, &argv[1]); in ctrl_command()
1722 int argc; in wlantest_cli_edit_cmd_cb() local
1723 argc = tokenize_cmd(cmd, argv); in wlantest_cli_edit_cmd_cb()
1724 if (argc) { in wlantest_cli_edit_cmd_cb()
1725 int ret = ctrl_command(cli->s, argc, argv); in wlantest_cli_edit_cmd_cb()
1838 int main(int argc, char *argv[]) in main() argument
1863 if (argc > 1) { in main()
1864 ret = ctrl_command(s, argc - 1, &argv[1]); in main()