Lines Matching full:ctrl
173 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print)
184 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len,
201 static inline int wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd)
203 return _wpa_ctrl_command(ctrl, cmd, 1);
207 static int hostapd_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[])
209 return wpa_ctrl_command(ctrl, "PING");
213 static int hostapd_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[])
215 return wpa_ctrl_command(ctrl, "RELOG");
219 static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[])
221 return wpa_ctrl_command(ctrl, "MIB");
270 static int hostapd_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[])
279 return wpa_ctrl_command(ctrl, buf);
283 static int hostapd_cli_cmd_new_sta(struct wpa_ctrl *ctrl, int argc,
293 return wpa_ctrl_command(ctrl, buf);
297 static int hostapd_cli_cmd_deauthenticate(struct wpa_ctrl *ctrl, int argc,
311 return wpa_ctrl_command(ctrl, buf);
315 static int hostapd_cli_cmd_disassociate(struct wpa_ctrl *ctrl, int argc,
329 return wpa_ctrl_command(ctrl, buf);
334 static int hostapd_cli_cmd_sa_query(struct wpa_ctrl *ctrl, int argc,
344 return wpa_ctrl_command(ctrl, buf);
350 static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc,
367 return wpa_ctrl_command(ctrl, buf);
371 static int hostapd_cli_cmd_wps_check_pin(struct wpa_ctrl *ctrl, int argc,
393 return wpa_ctrl_command(ctrl, cmd);
397 static int hostapd_cli_cmd_wps_pbc(struct wpa_ctrl *ctrl, int argc,
400 return wpa_ctrl_command(ctrl, "WPS_PBC");
404 static int hostapd_cli_cmd_wps_cancel(struct wpa_ctrl *ctrl, int argc,
407 return wpa_ctrl_command(ctrl, "WPS_CANCEL");
412 static int hostapd_cli_cmd_wps_nfc_tag_read(struct wpa_ctrl *ctrl, int argc,
431 ret = wpa_ctrl_command(ctrl, buf);
438 static int hostapd_cli_cmd_wps_nfc_config_token(struct wpa_ctrl *ctrl,
456 return wpa_ctrl_command(ctrl, cmd);
460 static int hostapd_cli_cmd_wps_nfc_token(struct wpa_ctrl *ctrl,
477 return wpa_ctrl_command(ctrl, cmd);
481 static int hostapd_cli_cmd_nfc_get_handover_sel(struct wpa_ctrl *ctrl,
499 return wpa_ctrl_command(ctrl, cmd);
505 static int hostapd_cli_cmd_wps_ap_pin(struct wpa_ctrl *ctrl, int argc,
522 return wpa_ctrl_command(ctrl, buf);
526 static int hostapd_cli_cmd_wps_get_status(struct wpa_ctrl *ctrl, int argc,
529 return wpa_ctrl_command(ctrl, "WPS_GET_STATUS");
533 static int hostapd_cli_cmd_wps_config(struct wpa_ctrl *ctrl, int argc,
573 return wpa_ctrl_command(ctrl, buf);
578 static int hostapd_cli_cmd_disassoc_imminent(struct wpa_ctrl *ctrl, int argc,
594 return wpa_ctrl_command(ctrl, buf);
598 static int hostapd_cli_cmd_ess_disassoc(struct wpa_ctrl *ctrl, int argc,
614 return wpa_ctrl_command(ctrl, buf);
618 static int hostapd_cli_cmd_get_config(struct wpa_ctrl *ctrl, int argc,
621 return wpa_ctrl_command(ctrl, "GET_CONFIG");
625 static int wpa_ctrl_command_sta(struct wpa_ctrl *ctrl, char *cmd,
637 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len,
661 static int hostapd_cli_cmd_all_sta(struct wpa_ctrl *ctrl, int argc,
666 if (wpa_ctrl_command_sta(ctrl, "STA-FIRST", addr, sizeof(addr)))
670 } while (wpa_ctrl_command_sta(ctrl, cmd, addr, sizeof(addr)) == 0);
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[])
709 return wpa_ctrl_command(ctrl, cmd);
713 static void hostapd_cli_list_interfaces(struct wpa_ctrl *ctrl)
736 static int hostapd_cli_cmd_interface(struct wpa_ctrl *ctrl, int argc,
740 hostapd_cli_list_interfaces(ctrl);
764 static int hostapd_cli_cmd_set(struct wpa_ctrl *ctrl, int argc, char *argv[])
780 return wpa_ctrl_command(ctrl, cmd);
784 static int hostapd_cli_cmd_get(struct wpa_ctrl *ctrl, int argc, char *argv[])
800 return wpa_ctrl_command(ctrl, cmd);
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]);
889 static void hostapd_cli_recv_pending(struct wpa_ctrl *ctrl, int in_read,
895 while (wpa_ctrl_pending(ctrl)) {
898 if (wpa_ctrl_recv(ctrl, buf, &len) == 0) {
1020 static void hostapd_cli_action(struct wpa_ctrl *ctrl)
1028 fd = wpa_ctrl_get_fd(ctrl);
1042 hostapd_cli_recv_pending(ctrl, 0, 1);
1045 if (wpa_ctrl_request(ctrl, "PING", 4, buf, &len,