Lines Matching refs:cmd
436 char cmd[100], *p, *val;
452 foreach(cmd, settings, p) {
453 val = strchr(cmd, '=');
455 if (strcmp(cmd, "be") == 0)
457 else if (strcmp(cmd, "bk") == 0)
459 else if (strcmp(cmd, "vi") == 0)
461 else if (strcmp(cmd, "vo") == 0)
472 if (strcmp(cmd, "cwmin") == 0)
474 else if (strcmp(cmd, "ecwmin") == 0)
476 else if (strcmp(cmd, "cwmax") == 0)
478 else if (strcmp(cmd, "ecwmax") == 0)
480 else if (strcmp(cmd, "aifsn") == 0)
482 else if (strcmp(cmd, "txop") == 0)
484 else if (strcmp(cmd, "force") == 0)
1013 static void usage(char *cmd)
1018 "Available commands:\n", cmd);
1026 static int do_command(const struct wlc_call *cmd, char *arg)
1036 fprintf(stderr, "do_command %-16s\t'%s'\n", cmd->name, arg);
1039 if ((arg == NULL) && ((cmd->param & PARAM_TYPE) != NONE)) {
1041 ret = cmd->handler(cmd->param | GET, (void *) &cmd->data, (void *) buf);
1043 switch(cmd->param & PARAM_TYPE) {
1067 switch(cmd->param & PARAM_TYPE) {
1073 fprintf(stderr, "%s: Invalid argument\n", cmd->name);
1084 fprintf(stderr, "%s: Invalid mac address '%s'\n", cmd->name, arg);
1090 ret = cmd->handler(cmd->param | SET, (void *) &cmd->data, ptr);
1094 fprintf(stderr, "Command '%s %s' failed: %d\n", (set == 1 ? "set" : "get"), cmd->name, ret);
1117 char *cmd = argv[0];
1135 usage(cmd);