Lines Matching refs:ctrl

23 static int hostapd_cli_cmd(struct wpa_ctrl *ctrl, const char *cmd,  in hostapd_cli_cmd()  argument
52 ret = hostapd_ctrl_command_interactive(ctrl, buf); in hostapd_cli_cmd()
54 ret = hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd()
61 static int hostapd_cli_cmd_set(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_set() argument
72 return hostapd_cli_cmd(ctrl, cmd, 0, argc, argv); in hostapd_cli_cmd_set()
75 return hostapd_cli_cmd(ctrl, "SET", 2, argc, argv); in hostapd_cli_cmd_set()
117 static int hostapd_cli_cmd_disassociate(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_disassociate() argument
131 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_disassociate()
135 static int hostapd_cli_cmd_deauthenticate(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_deauthenticate() argument
149 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_deauthenticate()
153 static int hostapd_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_status() argument
156 return hostapd_ctrl_command(ctrl, "STATUS-DRIVER"); in hostapd_cli_cmd_status()
157 return hostapd_ctrl_command(ctrl, "STATUS"); in hostapd_cli_cmd_status()
161 static int hostapd_cli_cmd_enable(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_enable() argument
164 return hostapd_ctrl_command(ctrl, "ENABLE"); in hostapd_cli_cmd_enable()
168 static int hostapd_cli_cmd_reload(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_reload() argument
171 return hostapd_ctrl_command(ctrl, "RELOAD"); in hostapd_cli_cmd_reload()
175 static int hostapd_cli_cmd_disable(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_disable() argument
178 return hostapd_ctrl_command(ctrl, "DISABLE"); in hostapd_cli_cmd_disable()
182 static int hostapd_cli_cmd_update_beacon(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_update_beacon() argument
185 return hostapd_ctrl_command(ctrl, "UPDATE_BEACON"); in hostapd_cli_cmd_update_beacon()
189 static int hostapd_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_sta() argument
201 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_sta()
220 static int hostapd_cli_cmd_new_sta(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_new_sta() argument
230 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_new_sta()
234 static int hostapd_cli_cmd_chan_switch(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_chan_switch() argument
269 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_chan_switch()
273 static int hostapd_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_ping() argument
275 return hostapd_ctrl_command(ctrl, "PING"); in hostapd_cli_cmd_ping()
279 static int hostapd_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_relog() argument
281 return hostapd_ctrl_command(ctrl, "RELOG"); in hostapd_cli_cmd_relog()
285 static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_mib() argument
290 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_mib()
292 return hostapd_ctrl_command(ctrl, "MIB"); in hostapd_cli_cmd_mib()
297 static int hostapd_cli_cmd_signature(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_signature() argument
307 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_signature()
312 static int hostapd_cli_cmd_sa_query(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_sa_query() argument
322 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_sa_query()
327 static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_wps_pin() argument
344 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_pin()
348 static int hostapd_cli_cmd_wps_check_pin(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_wps_check_pin() argument
370 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_wps_check_pin()
374 static int hostapd_cli_cmd_wps_pbc(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_wps_pbc() argument
377 return hostapd_ctrl_command(ctrl, "WPS_PBC"); in hostapd_cli_cmd_wps_pbc()
381 static int hostapd_cli_cmd_wps_cancel(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_wps_cancel() argument
384 return hostapd_ctrl_command(ctrl, "WPS_CANCEL"); in hostapd_cli_cmd_wps_cancel()
389 static int hostapd_cli_cmd_wps_nfc_tag_read(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_wps_nfc_tag_read() argument
408 ret = hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_nfc_tag_read()
415 static int hostapd_cli_cmd_wps_nfc_config_token(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_wps_nfc_config_token() argument
433 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_wps_nfc_config_token()
437 static int hostapd_cli_cmd_wps_nfc_token(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_wps_nfc_token() argument
454 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_wps_nfc_token()
458 static int hostapd_cli_cmd_nfc_get_handover_sel(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_nfc_get_handover_sel() argument
476 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_nfc_get_handover_sel()
482 static int hostapd_cli_cmd_wps_ap_pin(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_wps_ap_pin() argument
499 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_ap_pin()
503 static int hostapd_cli_cmd_wps_get_status(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_wps_get_status() argument
506 return hostapd_ctrl_command(ctrl, "WPS_GET_STATUS"); in hostapd_cli_cmd_wps_get_status()
510 static int hostapd_cli_cmd_wps_config(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_wps_config() argument
550 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_config()
555 static int hostapd_cli_cmd_disassoc_imminent(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_disassoc_imminent() argument
571 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_disassoc_imminent()
575 static int hostapd_cli_cmd_ess_disassoc(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_ess_disassoc() argument
591 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_ess_disassoc()
595 static int hostapd_cli_cmd_bss_tm_req(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_bss_tm_req() argument
618 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_bss_tm_req()
622 static int hostapd_cli_cmd_get_config(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_get_config() argument
625 return hostapd_ctrl_command(ctrl, "GET_CONFIG"); in hostapd_cli_cmd_get_config()
629 static int wpa_ctrl_command_sta(struct wpa_ctrl *ctrl, const char *cmd, in wpa_ctrl_command_sta() argument
637 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, in wpa_ctrl_command_sta()
662 static int hostapd_cli_cmd_all_sta(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_all_sta() argument
667 if (wpa_ctrl_command_sta(ctrl, "STA-FIRST", addr, sizeof(addr), 1)) in hostapd_cli_cmd_all_sta()
671 } while (wpa_ctrl_command_sta(ctrl, cmd, addr, sizeof(addr), 1) == 0); in hostapd_cli_cmd_all_sta()
677 static int hostapd_cli_cmd_list_sta(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_list_sta() argument
682 if (wpa_ctrl_command_sta(ctrl, "STA-FIRST", addr, sizeof(addr), 0)) in hostapd_cli_cmd_list_sta()
688 } while (wpa_ctrl_command_sta(ctrl, cmd, addr, sizeof(addr), 0) == 0); in hostapd_cli_cmd_list_sta()
694 static int hostapd_cli_cmd_set_qos_map_set(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_set_qos_map_set() argument
710 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_set_qos_map_set()
714 static int hostapd_cli_cmd_send_qos_map_conf(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_send_qos_map_conf() argument
729 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_send_qos_map_conf()
733 static int hostapd_cli_cmd_hs20_wnm_notif(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_hs20_wnm_notif() argument
749 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_hs20_wnm_notif()
753 static int hostapd_cli_cmd_hs20_deauth_req(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_hs20_deauth_req() argument
774 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_hs20_deauth_req()
778 static int hostapd_cli_cmd_get(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_get() argument
794 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_get()
824 static int hostapd_cli_cmd_fst(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_fst() argument
847 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_fst()
852 static int hostapd_cli_cmd_vendor(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_vendor() argument
870 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_vendor()
874 static int hostapd_cli_cmd_erp_flush(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_erp_flush() argument
877 return hostapd_ctrl_command(ctrl, "ERP_FLUSH"); in hostapd_cli_cmd_erp_flush()
881 static int hostapd_cli_cmd_log_level(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_log_level() argument
896 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_log_level()
900 static int hostapd_cli_cmd_raw(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_raw() argument
904 return hostapd_cli_cmd(ctrl, argv[0], 0, argc - 1, &argv[1]); in hostapd_cli_cmd_raw()
908 static int hostapd_cli_cmd_pmksa(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_pmksa() argument
910 return hostapd_ctrl_command(ctrl, "PMKSA"); in hostapd_cli_cmd_pmksa()
914 static int hostapd_cli_cmd_pmksa_flush(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_pmksa_flush() argument
917 return hostapd_ctrl_command(ctrl, "PMKSA_FLUSH"); in hostapd_cli_cmd_pmksa_flush()
921 static int hostapd_cli_cmd_set_neighbor(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_set_neighbor() argument
939 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_set_neighbor()
943 static int hostapd_cli_cmd_show_neighbor(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_show_neighbor() argument
946 return hostapd_ctrl_command(ctrl, "SHOW_NEIGHBOR"); in hostapd_cli_cmd_show_neighbor()
950 static int hostapd_cli_cmd_remove_neighbor(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_remove_neighbor() argument
953 return hostapd_cli_cmd(ctrl, "REMOVE_NEIGHBOR", 1, argc, argv); in hostapd_cli_cmd_remove_neighbor()
957 static int hostapd_cli_cmd_req_lci(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_req_lci() argument
973 return hostapd_ctrl_command(ctrl, cmd); in hostapd_cli_cmd_req_lci()
977 static int hostapd_cli_cmd_req_range(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_req_range() argument
985 return hostapd_cli_cmd(ctrl, "REQ_RANGE", 4, argc, argv); in hostapd_cli_cmd_req_range()
989 static int hostapd_cli_cmd_driver_flags(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_driver_flags() argument
992 return hostapd_ctrl_command(ctrl, "DRIVER_FLAGS"); in hostapd_cli_cmd_driver_flags()
998 static int hostapd_cli_cmd_dpp_qr_code(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_qr_code() argument
1001 return hostapd_cli_cmd(ctrl, "DPP_QR_CODE", 1, argc, argv); in hostapd_cli_cmd_dpp_qr_code()
1005 static int hostapd_cli_cmd_dpp_bootstrap_gen(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_bootstrap_gen() argument
1008 return hostapd_cli_cmd(ctrl, "DPP_BOOTSTRAP_GEN", 1, argc, argv); in hostapd_cli_cmd_dpp_bootstrap_gen()
1012 static int hostapd_cli_cmd_dpp_bootstrap_remove(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_bootstrap_remove() argument
1015 return hostapd_cli_cmd(ctrl, "DPP_BOOTSTRAP_REMOVE", 1, argc, argv); in hostapd_cli_cmd_dpp_bootstrap_remove()
1019 static int hostapd_cli_cmd_dpp_bootstrap_get_uri(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_dpp_bootstrap_get_uri() argument
1022 return hostapd_cli_cmd(ctrl, "DPP_BOOTSTRAP_GET_URI", 1, argc, argv); in hostapd_cli_cmd_dpp_bootstrap_get_uri()
1026 static int hostapd_cli_cmd_dpp_bootstrap_info(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_bootstrap_info() argument
1029 return hostapd_cli_cmd(ctrl, "DPP_BOOTSTRAP_INFO", 1, argc, argv); in hostapd_cli_cmd_dpp_bootstrap_info()
1033 static int hostapd_cli_cmd_dpp_bootstrap_set(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_bootstrap_set() argument
1036 return hostapd_cli_cmd(ctrl, "DPP_BOOTSTRAP_SET", 1, argc, argv); in hostapd_cli_cmd_dpp_bootstrap_set()
1040 static int hostapd_cli_cmd_dpp_auth_init(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_auth_init() argument
1043 return hostapd_cli_cmd(ctrl, "DPP_AUTH_INIT", 1, argc, argv); in hostapd_cli_cmd_dpp_auth_init()
1047 static int hostapd_cli_cmd_dpp_listen(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_listen() argument
1050 return hostapd_cli_cmd(ctrl, "DPP_LISTEN", 1, argc, argv); in hostapd_cli_cmd_dpp_listen()
1054 static int hostapd_cli_cmd_dpp_stop_listen(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_stop_listen() argument
1057 return hostapd_ctrl_command(ctrl, "DPP_STOP_LISTEN"); in hostapd_cli_cmd_dpp_stop_listen()
1061 static int hostapd_cli_cmd_dpp_configurator_add(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_configurator_add() argument
1064 return hostapd_cli_cmd(ctrl, "DPP_CONFIGURATOR_ADD", 0, argc, argv); in hostapd_cli_cmd_dpp_configurator_add()
1068 static int hostapd_cli_cmd_dpp_configurator_remove(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_dpp_configurator_remove() argument
1071 return hostapd_cli_cmd(ctrl, "DPP_CONFIGURATOR_REMOVE", 1, argc, argv); in hostapd_cli_cmd_dpp_configurator_remove()
1075 static int hostapd_cli_cmd_dpp_configurator_get_key(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_dpp_configurator_get_key() argument
1078 return hostapd_cli_cmd(ctrl, "DPP_CONFIGURATOR_GET_KEY", 1, argc, argv); in hostapd_cli_cmd_dpp_configurator_get_key()
1082 static int hostapd_cli_cmd_dpp_configurator_sign(struct wpa_ctrl *ctrl, in hostapd_cli_cmd_dpp_configurator_sign() argument
1085 return hostapd_cli_cmd(ctrl, "DPP_CONFIGURATOR_SIGN", 1, argc, argv); in hostapd_cli_cmd_dpp_configurator_sign()
1089 static int hostapd_cli_cmd_dpp_pkex_add(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_pkex_add() argument
1092 return hostapd_cli_cmd(ctrl, "DPP_PKEX_ADD", 1, argc, argv); in hostapd_cli_cmd_dpp_pkex_add()
1096 static int hostapd_cli_cmd_dpp_pkex_remove(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_pkex_remove() argument
1099 return hostapd_cli_cmd(ctrl, "DPP_PKEX_REMOVE", 1, argc, argv); in hostapd_cli_cmd_dpp_pkex_remove()
1105 static int hostapd_cli_cmd_dpp_controller_start(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_controller_start() argument
1108 return hostapd_cli_cmd(ctrl, "DPP_CONTROLLER_START", 1, argc, argv); in hostapd_cli_cmd_dpp_controller_start()
1112 static int hostapd_cli_cmd_dpp_controller_stop(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_controller_stop() argument
1115 return hostapd_ctrl_command(ctrl, "DPP_CONTROLLER_STOP"); in hostapd_cli_cmd_dpp_controller_stop()
1119 static int hostapd_cli_cmd_dpp_chirp(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_chirp() argument
1122 return hostapd_cli_cmd(ctrl, "DPP_CHIRP", 1, argc, argv); in hostapd_cli_cmd_dpp_chirp()
1126 static int hostapd_cli_cmd_dpp_stop_chirp(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_dpp_stop_chirp() argument
1129 return hostapd_ctrl_command(ctrl, "DPP_STOP_CHIRP"); in hostapd_cli_cmd_dpp_stop_chirp()
1136 static int hostapd_cli_cmd_accept_macacl(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_accept_macacl() argument
1139 return hostapd_cli_cmd(ctrl, "ACCEPT_ACL", 1, argc, argv); in hostapd_cli_cmd_accept_macacl()
1143 static int hostapd_cli_cmd_deny_macacl(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_deny_macacl() argument
1146 return hostapd_cli_cmd(ctrl, "DENY_ACL", 1, argc, argv); in hostapd_cli_cmd_deny_macacl()
1150 static int hostapd_cli_cmd_poll_sta(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_poll_sta() argument
1153 return hostapd_cli_cmd(ctrl, "POLL_STA", 1, argc, argv); in hostapd_cli_cmd_poll_sta()
1157 static int hostapd_cli_cmd_req_beacon(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_req_beacon() argument
1160 return hostapd_cli_cmd(ctrl, "REQ_BEACON", 2, argc, argv); in hostapd_cli_cmd_req_beacon()
1164 static int hostapd_cli_cmd_reload_wpa_psk(struct wpa_ctrl *ctrl, int argc, in hostapd_cli_cmd_reload_wpa_psk() argument
1167 return hostapd_ctrl_command(ctrl, "RELOAD_WPA_PSK"); in hostapd_cli_cmd_reload_wpa_psk()
1173 int (*handler)(struct wpa_ctrl *ctrl, int argc, char *argv[]);
1355 int hostapd_request(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_request() argument
1392 ret = match->handler(ctrl, argc - 1, &argv[1]); in hostapd_request()