Home | History | Annotate | Download | only in hostapd

Lines Matching defs:argc

207 static int hostapd_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[])
213 static int hostapd_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[])
219 static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[])
270 static int hostapd_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[])
273 if (argc != 1) {
283 static int hostapd_cli_cmd_new_sta(struct wpa_ctrl *ctrl, int argc,
287 if (argc != 1) {
297 static int hostapd_cli_cmd_deauthenticate(struct wpa_ctrl *ctrl, int argc,
301 if (argc < 1) {
306 if (argc > 1)
315 static int hostapd_cli_cmd_disassociate(struct wpa_ctrl *ctrl, int argc,
319 if (argc < 1) {
324 if (argc > 1)
334 static int hostapd_cli_cmd_sa_query(struct wpa_ctrl *ctrl, int argc,
338 if (argc != 1) {
350 static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc,
354 if (argc < 2) {
359 if (argc > 3)
362 else if (argc > 2)
371 static int hostapd_cli_cmd_wps_check_pin(struct wpa_ctrl *ctrl, int argc,
377 if (argc != 1 && argc != 2) {
383 if (argc == 2)
397 static int hostapd_cli_cmd_wps_pbc(struct wpa_ctrl *ctrl, int argc,
404 static int hostapd_cli_cmd_wps_cancel(struct wpa_ctrl *ctrl, int argc,
412 static int hostapd_cli_cmd_wps_nfc_tag_read(struct wpa_ctrl *ctrl, int argc,
419 if (argc != 1) {
439 int argc, char *argv[])
444 if (argc != 1) {
461 int argc, char *argv[])
466 if (argc != 1) {
482 int argc, char *argv[])
487 if (argc != 2) {
505 static int hostapd_cli_cmd_wps_ap_pin(struct wpa_ctrl *ctrl, int argc,
509 if (argc < 1) {
514 if (argc > 2)
517 else if (argc > 1)
526 static int hostapd_cli_cmd_wps_get_status(struct wpa_ctrl *ctrl, int argc,
533 static int hostapd_cli_cmd_wps_config(struct wpa_ctrl *ctrl, int argc,
541 if (argc < 1) {
555 if (argc > 3) {
564 if (argc > 3)
567 else if (argc > 2)
578 static int hostapd_cli_cmd_disassoc_imminent(struct wpa_ctrl *ctrl, int argc,
584 if (argc < 2) {
598 static int hostapd_cli_cmd_ess_disassoc(struct wpa_ctrl *ctrl, int argc,
604 if (argc < 3) {
618 static int hostapd_cli_cmd_get_config(struct wpa_ctrl *ctrl, int argc,
661 static int hostapd_cli_cmd_all_sta(struct wpa_ctrl *ctrl, int argc,
676 static int hostapd_cli_cmd_help(struct wpa_ctrl *ctrl, int argc, char *argv[])
683 static int hostapd_cli_cmd_license(struct wpa_ctrl *ctrl, int argc,
691 static int hostapd_cli_cmd_quit(struct wpa_ctrl *ctrl, int argc, char *argv[])
700 static int hostapd_cli_cmd_level(struct wpa_ctrl *ctrl, int argc, char *argv[])
703 if (argc != 1) {
736 static int hostapd_cli_cmd_interface(struct wpa_ctrl *ctrl, int argc,
739 if (argc < 1) {
764 static int hostapd_cli_cmd_set(struct wpa_ctrl *ctrl, int argc, char *argv[])
769 if (argc != 2) {
784 static int hostapd_cli_cmd_get(struct wpa_ctrl *ctrl, int argc, char *argv[])
789 if (argc != 1) {
806 int (*handler)(struct wpa_ctrl *ctrl, int argc, char *argv[]);
850 static void wpa_request(struct wpa_ctrl *ctrl, int argc, char *argv[])
884 match->handler(ctrl, argc - 1, &argv[1]);
921 int argc = 0;
929 argv[argc] = pos;
930 argc++;
931 if (argc == max_args)
944 return argc;
981 int argc;
982 argc = tokenize_cmd(cmd, argv);
983 if (argc)
984 wpa_request(ctrl_conn, argc, argv);
1057 int main(int argc, char *argv[])
1067 c = getopt(argc, argv, "a:BhG:i:p:v");
1099 interactive = (argc == optind) && (action_file == NULL);
1166 wpa_request(ctrl_conn, argc - optind, &argv[optind]);