Lines Matching refs:argv
54 main(int argc, char** argv)
59 BNetworkDevice device(argv[1]);
61 fprintf(stderr, "\"%s\" does not exist!\n", argv[1]);
65 fprintf(stderr, "\"%s\" is not a WLAN device!\n", argv[1]);
70 if (!strcmp(argv[2], "join")) {
75 password = argv[4];
77 status_t status = device.JoinNetwork(argv[3], password);
83 } else if (!strcmp(argv[2], "leave")) {
87 status_t status = device.LeaveNetwork(argv[3]);
93 } else if (!strcmp(argv[2], "list")) {
98 status_t status = link.SetTo(AF_LINK, argv[3]);
102 status = device.GetNetwork(argv[3], network);