Lines Matching refs:argv
441 main(int argc, char **argv) in main() argument
454 av0 = argv[0]; in main()
456 argv++; in main()
458 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in main()
463 if (*argv && strncmp (*argv, "--wince", strlen(*argv)) == 0) { in main()
465 argv++; in main()
469 if (*argv && strncmp (*argv, "--socket", strlen(*argv)) == 0) { in main()
470 argv++; in main()
474 if (!(*argv)) { in main()
479 if (!dhd_atoip(*argv, &temp)) { in main()
483 g_rwl_servIP = *argv; in main()
484 argv++; in main()
487 if ((*argv) && isdigit(**argv)) { in main()
488 g_rwl_servport = atoi(*argv); in main()
489 argv++; in main()
496 if (*argv && strncmp (*argv, "--dongle", strlen(*argv)) == 0) { in main()
497 argv++; in main()
502 if (*argv && strncmp (*argv, "--wifi", strlen(*argv)) == 0) { in main()
503 argv++; in main()
522 if (!dhd_ether_atoe(*argv, (struct ether_addr *)g_rwl_buf_mac)) { in main()
527 argv++; in main()
535 err = process_args(&ifr, argv); in main()
540 if (*argv) { in main()
541 err = process_args(&ifr, argv); in main()
544 err = process_args((struct ifreq*)&ifr, argv); in main()
559 process_args(struct ifreq* ifr, char **argv) in process_args() argument
566 while (*argv) { in process_args()
568 if ((strcmp (*argv, "sh") == 0) && (remote_type != NO_REMOTE)) { in process_args()
569 argv++; /* Get the shell command */ in process_args()
570 if (*argv) { in process_args()
573 err = rwl_shell_cmd_proc((void*)ifr, argv, SHELL_CMD); in process_args()
582 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in process_args()
601 if (strcmp("dldn", *argv) != 0) { in process_args()
607 if (strcmp("dldn", *argv) != 0) { in process_args()
614 cmd = dhd_find_cmd(*argv); in process_args()
621 err = (*cmd->func)((void *) ifr, cmd, argv); in process_args()
626 if (help && *argv) { in process_args()
627 cmd = dhd_find_cmd(*argv); in process_args()
632 av0, *argv); in process_args()