Lines Matching refs: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_status(struct wpa_ctrl *ctrl, int argc, char *argv[])
222 return wpa_ctrl_command(ctrl, "STATUS-DRIVER");
223 return wpa_ctrl_command(ctrl, "STATUS");
227 static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[])
232 return wpa_ctrl_command(ctrl, buf);
234 return wpa_ctrl_command(ctrl, "MIB");
274 static int hostapd_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[])
286 return wpa_ctrl_command(ctrl, buf);
290 static int hostapd_cli_cmd_new_sta(struct wpa_ctrl *ctrl, int argc,
300 return wpa_ctrl_command(ctrl, buf);
304 static int hostapd_cli_cmd_deauthenticate(struct wpa_ctrl *ctrl, int argc,
318 return wpa_ctrl_command(ctrl, buf);
322 static int hostapd_cli_cmd_disassociate(struct wpa_ctrl *ctrl, int argc,
336 return wpa_ctrl_command(ctrl, buf);
341 static int hostapd_cli_cmd_sa_query(struct wpa_ctrl *ctrl, int argc,
351 return wpa_ctrl_command(ctrl, buf);
357 static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc,
374 return wpa_ctrl_command(ctrl, buf);
378 static int hostapd_cli_cmd_wps_check_pin(struct wpa_ctrl *ctrl, int argc,
400 return wpa_ctrl_command(ctrl, cmd);
404 static int hostapd_cli_cmd_wps_pbc(struct wpa_ctrl *ctrl, int argc,
407 return wpa_ctrl_command(ctrl, "WPS_PBC");
411 static int hostapd_cli_cmd_wps_cancel(struct wpa_ctrl *ctrl, int argc,
414 return wpa_ctrl_command(ctrl, "WPS_CANCEL");
419 static int hostapd_cli_cmd_wps_nfc_tag_read(struct wpa_ctrl *ctrl, int argc,
438 ret = wpa_ctrl_command(ctrl, buf);
445 static int hostapd_cli_cmd_wps_nfc_config_token(struct wpa_ctrl *ctrl,
463 return wpa_ctrl_command(ctrl, cmd);
467 static int hostapd_cli_cmd_wps_nfc_token(struct wpa_ctrl *ctrl,
484 return wpa_ctrl_command(ctrl, cmd);
488 static int hostapd_cli_cmd_nfc_get_handover_sel(struct wpa_ctrl *ctrl,
506 return wpa_ctrl_command(ctrl, cmd);
512 static int hostapd_cli_cmd_wps_ap_pin(struct wpa_ctrl *ctrl, int argc,
529 return wpa_ctrl_command(ctrl, buf);
533 static int hostapd_cli_cmd_wps_get_status(struct wpa_ctrl *ctrl, int argc,
536 return wpa_ctrl_command(ctrl, "WPS_GET_STATUS");
540 static int hostapd_cli_cmd_wps_config(struct wpa_ctrl *ctrl, int argc,
580 return wpa_ctrl_command(ctrl, buf);
585 static int hostapd_cli_cmd_disassoc_imminent(struct wpa_ctrl *ctrl, int argc,
601 return wpa_ctrl_command(ctrl, buf);
605 static int hostapd_cli_cmd_ess_disassoc(struct wpa_ctrl *ctrl, int argc,
621 return wpa_ctrl_command(ctrl, buf);
625 static int hostapd_cli_cmd_get_config(struct wpa_ctrl *ctrl, int argc,
628 return wpa_ctrl_command(ctrl, "GET_CONFIG");
632 static int wpa_ctrl_command_sta(struct wpa_ctrl *ctrl, char *cmd,
644 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len,
668 static int hostapd_cli_cmd_all_sta(struct wpa_ctrl *ctrl, int argc,
673 if (wpa_ctrl_command_sta(ctrl, "STA-FIRST", addr, sizeof(addr)))
677 } while (wpa_ctrl_command_sta(ctrl, cmd, addr, sizeof(addr)) == 0);
683 static int hostapd_cli_cmd_help(struct wpa_ctrl *ctrl, int argc, char *argv[])
690 static int hostapd_cli_cmd_license(struct wpa_ctrl *ctrl, int argc,
698 static int hostapd_cli_cmd_set_qos_map_set(struct wpa_ctrl *ctrl,
714 return wpa_ctrl_command(ctrl, buf);
718 static int hostapd_cli_cmd_send_qos_map_conf(struct wpa_ctrl *ctrl,
733 return wpa_ctrl_command(ctrl, buf);
737 static int hostapd_cli_cmd_hs20_wnm_notif(struct wpa_ctrl *ctrl, int argc,
753 return wpa_ctrl_command(ctrl, buf);
757 static int hostapd_cli_cmd_hs20_deauth_req(struct wpa_ctrl *ctrl, int argc,
778 return wpa_ctrl_command(ctrl, buf);
782 static int hostapd_cli_cmd_quit(struct wpa_ctrl *ctrl, int argc, char *argv[])
791 static int hostapd_cli_cmd_level(struct wpa_ctrl *ctrl, int argc, char *argv[])
800 return wpa_ctrl_command(ctrl, cmd);
804 static void hostapd_cli_list_interfaces(struct wpa_ctrl *ctrl)
827 static int hostapd_cli_cmd_interface(struct wpa_ctrl *ctrl, int argc,
831 hostapd_cli_list_interfaces(ctrl);
857 static int hostapd_cli_cmd_set(struct wpa_ctrl *ctrl, int argc, char *argv[])
873 return wpa_ctrl_command(ctrl, cmd);
877 static int hostapd_cli_cmd_get(struct wpa_ctrl *ctrl, int argc, char *argv[])
893 return wpa_ctrl_command(ctrl, cmd);
897 static int hostapd_cli_cmd_chan_switch(struct wpa_ctrl *ctrl,
932 return wpa_ctrl_command(ctrl, cmd);
936 static int hostapd_cli_cmd_vendor(struct wpa_ctrl *ctrl, int argc, char *argv[])
953 return wpa_ctrl_command(ctrl, cmd);
959 int (*handler)(struct wpa_ctrl *ctrl, int argc, char *argv[]);
1010 static void wpa_request(struct wpa_ctrl *ctrl, int argc, char *argv[])
1044 match->handler(ctrl, argc - 1, &argv[1]);
1049 static void hostapd_cli_recv_pending(struct wpa_ctrl *ctrl, int in_read,
1055 while (wpa_ctrl_pending(ctrl)) {
1058 if (wpa_ctrl_recv(ctrl, buf, &len) == 0) {
1180 static void hostapd_cli_action(struct wpa_ctrl *ctrl)
1188 fd = wpa_ctrl_get_fd(ctrl);
1202 hostapd_cli_recv_pending(ctrl, 0, 1);
1205 if (wpa_ctrl_request(ctrl, "PING", 4, buf, &len,