Lines Matching refs:argc

461 static int write_cmd(char *buf, size_t buflen, const char *cmd, int argc,  in write_cmd()  argument
475 for (i = 0; i < argc; i++) { in write_cmd()
492 int argc, char *argv[]) in wpa_cli_cmd() argument
495 if (argc < min_args) { in wpa_cli_cmd()
501 if (write_cmd(buf, sizeof(buf), cmd, argc, argv) < 0) in wpa_cli_cmd()
507 static int wpa_cli_cmd_ifname(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ifname() argument
513 static int wpa_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_status() argument
515 if (argc > 0 && os_strcmp(argv[0], "verbose") == 0) in wpa_cli_cmd_status()
517 if (argc > 0 && os_strcmp(argv[0], "wps") == 0) in wpa_cli_cmd_status()
519 if (argc > 0 && os_strcmp(argv[0], "driver") == 0) in wpa_cli_cmd_status()
522 if (argc > 0 && os_strcmp(argv[0], "no_events") == 0) in wpa_cli_cmd_status()
529 static int wpa_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ping() argument
535 static int wpa_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_relog() argument
541 static int wpa_cli_cmd_note(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_note() argument
543 return wpa_cli_cmd(ctrl, "NOTE", 1, argc, argv); in wpa_cli_cmd_note()
547 static int wpa_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_mib() argument
553 static int wpa_cli_cmd_pmksa(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_pmksa() argument
559 static int wpa_cli_cmd_pmksa_flush(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_pmksa_flush() argument
566 static int wpa_cli_cmd_help(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_help() argument
568 print_help(argc > 0 ? argv[0] : NULL); in wpa_cli_cmd_help()
588 static int wpa_cli_cmd_license(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_license() argument
595 static int wpa_cli_cmd_quit(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_quit() argument
604 static int wpa_cli_cmd_set(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_set() argument
609 if (argc == 1) { in wpa_cli_cmd_set()
618 return wpa_cli_cmd(ctrl, "SET", 2, argc, argv); in wpa_cli_cmd_set()
708 static int wpa_cli_cmd_dump(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_dump() argument
714 static int wpa_cli_cmd_get(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_get() argument
716 return wpa_cli_cmd(ctrl, "GET", 1, argc, argv); in wpa_cli_cmd_get()
788 static int wpa_cli_cmd_logoff(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_logoff() argument
794 static int wpa_cli_cmd_logon(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_logon() argument
800 static int wpa_cli_cmd_reassociate(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_reassociate() argument
807 static int wpa_cli_cmd_reattach(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_reattach() argument
813 static int wpa_cli_cmd_preauthenticate(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_preauthenticate() argument
816 return wpa_cli_cmd(ctrl, "PREAUTH", 1, argc, argv); in wpa_cli_cmd_preauthenticate()
820 static int wpa_cli_cmd_ap_scan(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ap_scan() argument
822 return wpa_cli_cmd(ctrl, "AP_SCAN", 1, argc, argv); in wpa_cli_cmd_ap_scan()
826 static int wpa_cli_cmd_scan_interval(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_scan_interval() argument
829 return wpa_cli_cmd(ctrl, "SCAN_INTERVAL", 1, argc, argv); in wpa_cli_cmd_scan_interval()
833 static int wpa_cli_cmd_bss_expire_age(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_bss_expire_age() argument
836 return wpa_cli_cmd(ctrl, "BSS_EXPIRE_AGE", 1, argc, argv); in wpa_cli_cmd_bss_expire_age()
840 static int wpa_cli_cmd_bss_expire_count(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_bss_expire_count() argument
843 return wpa_cli_cmd(ctrl, "BSS_EXPIRE_COUNT", 1, argc, argv); in wpa_cli_cmd_bss_expire_count()
847 static int wpa_cli_cmd_bss_flush(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_bss_flush() argument
852 if (argc < 1) in wpa_cli_cmd_bss_flush()
864 static int wpa_cli_cmd_stkstart(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_stkstart() argument
867 return wpa_cli_cmd(ctrl, "STKSTART", 1, argc, argv); in wpa_cli_cmd_stkstart()
871 static int wpa_cli_cmd_ft_ds(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ft_ds() argument
873 return wpa_cli_cmd(ctrl, "FT_DS", 1, argc, argv); in wpa_cli_cmd_ft_ds()
877 static int wpa_cli_cmd_wps_pbc(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_wps_pbc() argument
879 return wpa_cli_cmd(ctrl, "WPS_PBC", 0, argc, argv); in wpa_cli_cmd_wps_pbc()
883 static int wpa_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_wps_pin() argument
885 if (argc == 0) { in wpa_cli_cmd_wps_pin()
893 return wpa_cli_cmd(ctrl, "WPS_PIN", 1, argc, argv); in wpa_cli_cmd_wps_pin()
897 static int wpa_cli_cmd_wps_check_pin(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_check_pin() argument
900 return wpa_cli_cmd(ctrl, "WPS_CHECK_PIN", 1, argc, argv); in wpa_cli_cmd_wps_check_pin()
904 static int wpa_cli_cmd_wps_cancel(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_cancel() argument
913 static int wpa_cli_cmd_wps_nfc(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_wps_nfc() argument
915 return wpa_cli_cmd(ctrl, "WPS_NFC", 0, argc, argv); in wpa_cli_cmd_wps_nfc()
919 static int wpa_cli_cmd_wps_nfc_config_token(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_nfc_config_token() argument
922 return wpa_cli_cmd(ctrl, "WPS_NFC_CONFIG_TOKEN", 1, argc, argv); in wpa_cli_cmd_wps_nfc_config_token()
926 static int wpa_cli_cmd_wps_nfc_token(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_nfc_token() argument
929 return wpa_cli_cmd(ctrl, "WPS_NFC_TOKEN", 1, argc, argv); in wpa_cli_cmd_wps_nfc_token()
933 static int wpa_cli_cmd_wps_nfc_tag_read(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_nfc_tag_read() argument
940 if (argc != 1) { in wpa_cli_cmd_wps_nfc_tag_read()
959 static int wpa_cli_cmd_nfc_get_handover_req(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_nfc_get_handover_req() argument
962 return wpa_cli_cmd(ctrl, "NFC_GET_HANDOVER_REQ", 2, argc, argv); in wpa_cli_cmd_nfc_get_handover_req()
966 static int wpa_cli_cmd_nfc_get_handover_sel(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_nfc_get_handover_sel() argument
969 return wpa_cli_cmd(ctrl, "NFC_GET_HANDOVER_SEL", 2, argc, argv); in wpa_cli_cmd_nfc_get_handover_sel()
973 static int wpa_cli_cmd_nfc_report_handover(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_nfc_report_handover() argument
976 return wpa_cli_cmd(ctrl, "NFC_REPORT_HANDOVER", 4, argc, argv); in wpa_cli_cmd_nfc_report_handover()
982 static int wpa_cli_cmd_wps_reg(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_wps_reg() argument
987 if (argc == 2) in wpa_cli_cmd_wps_reg()
990 else if (argc == 5 || argc == 6) { in wpa_cli_cmd_wps_reg()
1003 if (argc == 6) { in wpa_cli_cmd_wps_reg()
1039 static int wpa_cli_cmd_wps_ap_pin(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_ap_pin() argument
1042 return wpa_cli_cmd(ctrl, "WPS_AP_PIN", 1, argc, argv); in wpa_cli_cmd_wps_ap_pin()
1046 static int wpa_cli_cmd_wps_er_start(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_er_start() argument
1049 return wpa_cli_cmd(ctrl, "WPS_ER_START", 0, argc, argv); in wpa_cli_cmd_wps_er_start()
1053 static int wpa_cli_cmd_wps_er_stop(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_er_stop() argument
1061 static int wpa_cli_cmd_wps_er_pin(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_er_pin() argument
1064 if (argc < 2) { in wpa_cli_cmd_wps_er_pin()
1073 return wpa_cli_cmd(ctrl, "WPS_ER_PIN", 2, argc, argv); in wpa_cli_cmd_wps_er_pin()
1077 static int wpa_cli_cmd_wps_er_pbc(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_er_pbc() argument
1080 return wpa_cli_cmd(ctrl, "WPS_ER_PBC", 1, argc, argv); in wpa_cli_cmd_wps_er_pbc()
1084 static int wpa_cli_cmd_wps_er_learn(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_er_learn() argument
1087 if (argc != 2) { in wpa_cli_cmd_wps_er_learn()
1094 return wpa_cli_cmd(ctrl, "WPS_ER_LEARN", 2, argc, argv); in wpa_cli_cmd_wps_er_learn()
1098 static int wpa_cli_cmd_wps_er_set_config(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_er_set_config() argument
1101 if (argc != 2) { in wpa_cli_cmd_wps_er_set_config()
1109 return wpa_cli_cmd(ctrl, "WPS_ER_SET_CONFIG", 2, argc, argv); in wpa_cli_cmd_wps_er_set_config()
1113 static int wpa_cli_cmd_wps_er_config(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_er_config() argument
1119 if (argc == 5 || argc == 6) { in wpa_cli_cmd_wps_er_config()
1132 if (argc == 6) { in wpa_cli_cmd_wps_er_config()
1165 static int wpa_cli_cmd_wps_er_nfc_config_token(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wps_er_nfc_config_token() argument
1168 if (argc != 2) { in wpa_cli_cmd_wps_er_nfc_config_token()
1176 return wpa_cli_cmd(ctrl, "WPS_ER_NFC_CONFIG_TOKEN", 2, argc, argv); in wpa_cli_cmd_wps_er_nfc_config_token()
1181 static int wpa_cli_cmd_ibss_rsn(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ibss_rsn() argument
1183 return wpa_cli_cmd(ctrl, "IBSS_RSN", 1, argc, argv); in wpa_cli_cmd_ibss_rsn()
1187 static int wpa_cli_cmd_level(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_level() argument
1189 return wpa_cli_cmd(ctrl, "LEVEL", 1, argc, argv); in wpa_cli_cmd_level()
1193 static int wpa_cli_cmd_identity(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_identity() argument
1198 if (argc < 2) { in wpa_cli_cmd_identity()
1213 for (i = 2; i < argc; i++) { in wpa_cli_cmd_identity()
1226 static int wpa_cli_cmd_password(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_password() argument
1231 if (argc < 2) { in wpa_cli_cmd_password()
1246 for (i = 2; i < argc; i++) { in wpa_cli_cmd_password()
1259 static int wpa_cli_cmd_new_password(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_new_password() argument
1265 if (argc < 2) { in wpa_cli_cmd_new_password()
1280 for (i = 2; i < argc; i++) { in wpa_cli_cmd_new_password()
1293 static int wpa_cli_cmd_pin(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_pin() argument
1298 if (argc < 2) { in wpa_cli_cmd_pin()
1313 for (i = 2; i < argc; i++) { in wpa_cli_cmd_pin()
1325 static int wpa_cli_cmd_otp(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_otp() argument
1330 if (argc < 2) { in wpa_cli_cmd_otp()
1345 for (i = 2; i < argc; i++) { in wpa_cli_cmd_otp()
1358 static int wpa_cli_cmd_sim(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_sim() argument
1363 if (argc < 2) { in wpa_cli_cmd_sim()
1378 for (i = 2; i < argc; i++) { in wpa_cli_cmd_sim()
1390 static int wpa_cli_cmd_passphrase(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_passphrase() argument
1396 if (argc < 2) { in wpa_cli_cmd_passphrase()
1411 for (i = 2; i < argc; i++) { in wpa_cli_cmd_passphrase()
1424 static int wpa_cli_cmd_bssid(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_bssid() argument
1426 if (argc < 2) { in wpa_cli_cmd_bssid()
1432 return wpa_cli_cmd(ctrl, "BSSID", 2, argc, argv); in wpa_cli_cmd_bssid()
1436 static int wpa_cli_cmd_blacklist(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_blacklist() argument
1438 return wpa_cli_cmd(ctrl, "BLACKLIST", 0, argc, argv); in wpa_cli_cmd_blacklist()
1442 static int wpa_cli_cmd_log_level(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_log_level() argument
1444 return wpa_cli_cmd(ctrl, "LOG_LEVEL", 0, argc, argv); in wpa_cli_cmd_log_level()
1448 static int wpa_cli_cmd_list_networks(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_list_networks() argument
1455 static int wpa_cli_cmd_select_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_select_network() argument
1458 return wpa_cli_cmd(ctrl, "SELECT_NETWORK", 1, argc, argv); in wpa_cli_cmd_select_network()
1462 static int wpa_cli_cmd_enable_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_enable_network() argument
1465 return wpa_cli_cmd(ctrl, "ENABLE_NETWORK", 1, argc, argv); in wpa_cli_cmd_enable_network()
1469 static int wpa_cli_cmd_disable_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_disable_network() argument
1472 return wpa_cli_cmd(ctrl, "DISABLE_NETWORK", 1, argc, argv); in wpa_cli_cmd_disable_network()
1476 static int wpa_cli_cmd_add_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_add_network() argument
1486 static int wpa_cli_cmd_remove_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_remove_network() argument
1489 int res = wpa_cli_cmd(ctrl, "REMOVE_NETWORK", 1, argc, argv); in wpa_cli_cmd_remove_network()
1517 static int wpa_cli_cmd_set_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_set_network() argument
1520 if (argc == 0) { in wpa_cli_cmd_set_network()
1525 if (argc < 3) { in wpa_cli_cmd_set_network()
1531 return wpa_cli_cmd(ctrl, "SET_NETWORK", 3, argc, argv); in wpa_cli_cmd_set_network()
1535 static int wpa_cli_cmd_get_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_get_network() argument
1538 if (argc == 0) { in wpa_cli_cmd_get_network()
1543 if (argc != 2) { in wpa_cli_cmd_get_network()
1549 return wpa_cli_cmd(ctrl, "GET_NETWORK", 2, argc, argv); in wpa_cli_cmd_get_network()
1652 static int wpa_cli_cmd_dup_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_dup_network() argument
1655 if (argc == 0) { in wpa_cli_cmd_dup_network()
1660 if (argc < 3) { in wpa_cli_cmd_dup_network()
1666 return wpa_cli_cmd(ctrl, "DUP_NETWORK", 3, argc, argv); in wpa_cli_cmd_dup_network()
1695 static int wpa_cli_cmd_list_creds(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_list_creds() argument
1702 static int wpa_cli_cmd_add_cred(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_add_cred() argument
1708 static int wpa_cli_cmd_remove_cred(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_remove_cred() argument
1711 return wpa_cli_cmd(ctrl, "REMOVE_CRED", 1, argc, argv); in wpa_cli_cmd_remove_cred()
1715 static int wpa_cli_cmd_set_cred(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_set_cred() argument
1717 if (argc != 3) { in wpa_cli_cmd_set_cred()
1723 return wpa_cli_cmd(ctrl, "SET_CRED", 3, argc, argv); in wpa_cli_cmd_set_cred()
1727 static int wpa_cli_cmd_get_cred(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_get_cred() argument
1729 if (argc != 2) { in wpa_cli_cmd_get_cred()
1735 return wpa_cli_cmd(ctrl, "GET_CRED", 2, argc, argv); in wpa_cli_cmd_get_cred()
1739 static int wpa_cli_cmd_disconnect(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_disconnect() argument
1746 static int wpa_cli_cmd_reconnect(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_reconnect() argument
1753 static int wpa_cli_cmd_save_config(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_save_config() argument
1760 static int wpa_cli_cmd_scan(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_scan() argument
1762 return wpa_cli_cmd(ctrl, "SCAN", 0, argc, argv); in wpa_cli_cmd_scan()
1766 static int wpa_cli_cmd_scan_results(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_scan_results() argument
1773 static int wpa_cli_cmd_abort_scan(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_abort_scan() argument
1780 static int wpa_cli_cmd_bss(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_bss() argument
1782 return wpa_cli_cmd(ctrl, "BSS", 1, argc, argv); in wpa_cli_cmd_bss()
1801 static int wpa_cli_cmd_get_capability(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_get_capability() argument
1804 if (argc < 1 || argc > 2) { in wpa_cli_cmd_get_capability()
1810 if ((argc == 2) && os_strcmp(argv[1], "strict") != 0) { in wpa_cli_cmd_get_capability()
1816 return wpa_cli_cmd(ctrl, "GET_CAPABILITY", 1, argc, argv); in wpa_cli_cmd_get_capability()
1827 static int wpa_cli_cmd_interface(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_interface() argument
1829 if (argc < 1) { in wpa_cli_cmd_interface()
1852 static int wpa_cli_cmd_reconfigure(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_reconfigure() argument
1859 static int wpa_cli_cmd_terminate(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_terminate() argument
1866 static int wpa_cli_cmd_interface_add(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_interface_add() argument
1872 if (argc < 1) { in wpa_cli_cmd_interface_add()
1887 argc > 1 ? argv[1] : "", argc > 2 ? argv[2] : "", in wpa_cli_cmd_interface_add()
1888 argc > 3 ? argv[3] : "", argc > 4 ? argv[4] : "", in wpa_cli_cmd_interface_add()
1889 argc > 5 ? argv[5] : "", argc > 6 ? argv[6] : "", in wpa_cli_cmd_interface_add()
1890 argc > 7 ? argv[7] : ""); in wpa_cli_cmd_interface_add()
1898 static int wpa_cli_cmd_interface_remove(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_interface_remove() argument
1901 return wpa_cli_cmd(ctrl, "INTERFACE_REMOVE", 1, argc, argv); in wpa_cli_cmd_interface_remove()
1905 static int wpa_cli_cmd_interface_list(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_interface_list() argument
1913 static int wpa_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_sta() argument
1915 return wpa_cli_cmd(ctrl, "STA", 1, argc, argv); in wpa_cli_cmd_sta()
1961 static int wpa_cli_cmd_all_sta(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_all_sta() argument
1975 static int wpa_cli_cmd_deauthenticate(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_deauthenticate() argument
1978 return wpa_cli_cmd(ctrl, "DEAUTHENTICATE", 1, argc, argv); in wpa_cli_cmd_deauthenticate()
1982 static int wpa_cli_cmd_disassociate(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_disassociate() argument
1985 return wpa_cli_cmd(ctrl, "DISASSOCIATE", 1, argc, argv); in wpa_cli_cmd_disassociate()
1988 static int wpa_cli_cmd_chanswitch(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_chanswitch() argument
1991 return wpa_cli_cmd(ctrl, "CHAN_SWITCH", 2, argc, argv); in wpa_cli_cmd_chanswitch()
1997 static int wpa_cli_cmd_suspend(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_suspend() argument
2003 static int wpa_cli_cmd_resume(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_resume() argument
2010 static int wpa_cli_cmd_drop_sa(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_drop_sa() argument
2017 static int wpa_cli_cmd_roam(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_roam() argument
2019 return wpa_cli_cmd(ctrl, "ROAM", 1, argc, argv); in wpa_cli_cmd_roam()
2025 static int wpa_cli_cmd_mesh_interface_add(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_mesh_interface_add() argument
2028 return wpa_cli_cmd(ctrl, "MESH_INTERFACE_ADD", 0, argc, argv); in wpa_cli_cmd_mesh_interface_add()
2032 static int wpa_cli_cmd_mesh_group_add(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_mesh_group_add() argument
2035 return wpa_cli_cmd(ctrl, "MESH_GROUP_ADD", 1, argc, argv); in wpa_cli_cmd_mesh_group_add()
2039 static int wpa_cli_cmd_mesh_group_remove(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_mesh_group_remove() argument
2042 return wpa_cli_cmd(ctrl, "MESH_GROUP_REMOVE", 1, argc, argv); in wpa_cli_cmd_mesh_group_remove()
2046 static int wpa_cli_cmd_mesh_peer_remove(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_mesh_peer_remove() argument
2049 return wpa_cli_cmd(ctrl, "MESH_PEER_REMOVE", 1, argc, argv); in wpa_cli_cmd_mesh_peer_remove()
2053 static int wpa_cli_cmd_mesh_peer_add(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_mesh_peer_add() argument
2056 return wpa_cli_cmd(ctrl, "MESH_PEER_ADD", 1, argc, argv); in wpa_cli_cmd_mesh_peer_add()
2064 static int wpa_cli_cmd_p2p_find(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_p2p_find() argument
2066 return wpa_cli_cmd(ctrl, "P2P_FIND", 0, argc, argv); in wpa_cli_cmd_p2p_find()
2099 static int wpa_cli_cmd_p2p_stop_find(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_stop_find() argument
2106 static int wpa_cli_cmd_p2p_asp_provision(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_asp_provision() argument
2109 return wpa_cli_cmd(ctrl, "P2P_ASP_PROVISION", 3, argc, argv); in wpa_cli_cmd_p2p_asp_provision()
2113 static int wpa_cli_cmd_p2p_asp_provision_resp(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_asp_provision_resp() argument
2116 return wpa_cli_cmd(ctrl, "P2P_ASP_PROVISION_RESP", 2, argc, argv); in wpa_cli_cmd_p2p_asp_provision_resp()
2120 static int wpa_cli_cmd_p2p_connect(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_connect() argument
2123 return wpa_cli_cmd(ctrl, "P2P_CONNECT", 2, argc, argv); in wpa_cli_cmd_p2p_connect()
2142 static int wpa_cli_cmd_p2p_listen(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_listen() argument
2145 return wpa_cli_cmd(ctrl, "P2P_LISTEN", 0, argc, argv); in wpa_cli_cmd_p2p_listen()
2149 static int wpa_cli_cmd_p2p_group_remove(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_group_remove() argument
2152 return wpa_cli_cmd(ctrl, "P2P_GROUP_REMOVE", 1, argc, argv); in wpa_cli_cmd_p2p_group_remove()
2171 static int wpa_cli_cmd_p2p_group_add(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_group_add() argument
2174 return wpa_cli_cmd(ctrl, "P2P_GROUP_ADD", 0, argc, argv); in wpa_cli_cmd_p2p_group_add()
2178 static int wpa_cli_cmd_p2p_prov_disc(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_prov_disc() argument
2181 if (argc != 2 && argc != 3) { in wpa_cli_cmd_p2p_prov_disc()
2188 return wpa_cli_cmd(ctrl, "P2P_PROV_DISC", 2, argc, argv); in wpa_cli_cmd_p2p_prov_disc()
2192 static int wpa_cli_cmd_p2p_get_passphrase(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_get_passphrase() argument
2199 static int wpa_cli_cmd_p2p_serv_disc_req(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_serv_disc_req() argument
2204 if (argc < 2) { in wpa_cli_cmd_p2p_serv_disc_req()
2210 if (write_cmd(cmd, sizeof(cmd), "P2P_SERV_DISC_REQ", argc, argv) < 0) in wpa_cli_cmd_p2p_serv_disc_req()
2217 int argc, char *argv[]) in wpa_cli_cmd_p2p_serv_disc_cancel_req() argument
2219 return wpa_cli_cmd(ctrl, "P2P_SERV_DISC_CANCEL_REQ", 1, argc, argv); in wpa_cli_cmd_p2p_serv_disc_cancel_req()
2223 static int wpa_cli_cmd_p2p_serv_disc_resp(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_serv_disc_resp() argument
2229 if (argc != 4) { in wpa_cli_cmd_p2p_serv_disc_resp()
2244 static int wpa_cli_cmd_p2p_service_update(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_service_update() argument
2252 int argc, char *argv[]) in wpa_cli_cmd_p2p_serv_disc_external() argument
2254 return wpa_cli_cmd(ctrl, "P2P_SERV_DISC_EXTERNAL", 1, argc, argv); in wpa_cli_cmd_p2p_serv_disc_external()
2258 static int wpa_cli_cmd_p2p_service_flush(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_service_flush() argument
2265 static int wpa_cli_cmd_p2p_service_add(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_service_add() argument
2268 if (argc < 3) { in wpa_cli_cmd_p2p_service_add()
2273 return wpa_cli_cmd(ctrl, "P2P_SERVICE_ADD", 3, argc, argv); in wpa_cli_cmd_p2p_service_add()
2277 static int wpa_cli_cmd_p2p_service_rep(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_service_rep() argument
2280 if (argc < 5 || argc > 6) { in wpa_cli_cmd_p2p_service_rep()
2286 return wpa_cli_cmd(ctrl, "P2P_SERVICE_REP", 5, argc, argv); in wpa_cli_cmd_p2p_service_rep()
2290 static int wpa_cli_cmd_p2p_service_del(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_service_del() argument
2296 if (argc != 2 && argc != 3) { in wpa_cli_cmd_p2p_service_del()
2302 if (argc == 3) in wpa_cli_cmd_p2p_service_del()
2318 int argc, char *argv[]) in wpa_cli_cmd_p2p_reject() argument
2320 return wpa_cli_cmd(ctrl, "P2P_REJECT", 1, argc, argv); in wpa_cli_cmd_p2p_reject()
2325 int argc, char *argv[]) in wpa_cli_cmd_p2p_invite() argument
2327 return wpa_cli_cmd(ctrl, "P2P_INVITE", 1, argc, argv); in wpa_cli_cmd_p2p_invite()
2331 static int wpa_cli_cmd_p2p_peer(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_p2p_peer() argument
2333 return wpa_cli_cmd(ctrl, "P2P_PEER", 1, argc, argv); in wpa_cli_cmd_p2p_peer()
2388 static int wpa_cli_cmd_p2p_peers(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_p2p_peers() argument
2393 discovered = argc > 0 && os_strcmp(argv[0], "discovered") == 0; in wpa_cli_cmd_p2p_peers()
2407 static int wpa_cli_cmd_p2p_set(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_p2p_set() argument
2409 return wpa_cli_cmd(ctrl, "P2P_SET", 2, argc, argv); in wpa_cli_cmd_p2p_set()
2457 static int wpa_cli_cmd_p2p_flush(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_p2p_flush() argument
2463 static int wpa_cli_cmd_p2p_cancel(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_cancel() argument
2470 static int wpa_cli_cmd_p2p_unauthorize(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_unauthorize() argument
2473 return wpa_cli_cmd(ctrl, "P2P_UNAUTHORIZE", 1, argc, argv); in wpa_cli_cmd_p2p_unauthorize()
2477 static int wpa_cli_cmd_p2p_presence_req(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_presence_req() argument
2480 if (argc != 0 && argc != 2 && argc != 4) { in wpa_cli_cmd_p2p_presence_req()
2488 return wpa_cli_cmd(ctrl, "P2P_PRESENCE_REQ", 0, argc, argv); in wpa_cli_cmd_p2p_presence_req()
2492 static int wpa_cli_cmd_p2p_ext_listen(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_ext_listen() argument
2495 if (argc != 0 && argc != 2) { in wpa_cli_cmd_p2p_ext_listen()
2504 return wpa_cli_cmd(ctrl, "P2P_EXT_LISTEN", 0, argc, argv); in wpa_cli_cmd_p2p_ext_listen()
2508 static int wpa_cli_cmd_p2p_remove_client(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_p2p_remove_client() argument
2511 return wpa_cli_cmd(ctrl, "P2P_REMOVE_CLIENT", 1, argc, argv); in wpa_cli_cmd_p2p_remove_client()
2515 static int wpa_cli_cmd_vendor_elem_add(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_vendor_elem_add() argument
2518 return wpa_cli_cmd(ctrl, "VENDOR_ELEM_ADD", 2, argc, argv); in wpa_cli_cmd_vendor_elem_add()
2522 static int wpa_cli_cmd_vendor_elem_get(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_vendor_elem_get() argument
2525 return wpa_cli_cmd(ctrl, "VENDOR_ELEM_GET", 1, argc, argv); in wpa_cli_cmd_vendor_elem_get()
2529 static int wpa_cli_cmd_vendor_elem_remove(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_vendor_elem_remove() argument
2532 return wpa_cli_cmd(ctrl, "VENDOR_ELEM_REMOVE", 2, argc, argv); in wpa_cli_cmd_vendor_elem_remove()
2539 static int wpa_cli_cmd_wfd_subelem_set(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wfd_subelem_set() argument
2545 if (argc != 1 && argc != 2) { in wpa_cli_cmd_wfd_subelem_set()
2552 argv[0], argc > 1 ? argv[1] : ""); in wpa_cli_cmd_wfd_subelem_set()
2560 static int wpa_cli_cmd_wfd_subelem_get(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wfd_subelem_get() argument
2566 if (argc != 1) { in wpa_cli_cmd_wfd_subelem_get()
2583 static int wpa_cli_cmd_fetch_anqp(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_fetch_anqp() argument
2590 static int wpa_cli_cmd_stop_fetch_anqp(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_stop_fetch_anqp() argument
2597 static int wpa_cli_cmd_interworking_select(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_interworking_select() argument
2600 return wpa_cli_cmd(ctrl, "INTERWORKING_SELECT", 0, argc, argv); in wpa_cli_cmd_interworking_select()
2604 static int wpa_cli_cmd_interworking_connect(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_interworking_connect() argument
2607 return wpa_cli_cmd(ctrl, "INTERWORKING_CONNECT", 1, argc, argv); in wpa_cli_cmd_interworking_connect()
2611 static int wpa_cli_cmd_interworking_add_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_interworking_add_network() argument
2614 return wpa_cli_cmd(ctrl, "INTERWORKING_ADD_NETWORK", 1, argc, argv); in wpa_cli_cmd_interworking_add_network()
2618 static int wpa_cli_cmd_anqp_get(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_anqp_get() argument
2620 return wpa_cli_cmd(ctrl, "ANQP_GET", 2, argc, argv); in wpa_cli_cmd_anqp_get()
2624 static int wpa_cli_cmd_gas_request(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_gas_request() argument
2627 return wpa_cli_cmd(ctrl, "GAS_REQUEST", 2, argc, argv); in wpa_cli_cmd_gas_request()
2631 static int wpa_cli_cmd_gas_response_get(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_gas_response_get() argument
2634 return wpa_cli_cmd(ctrl, "GAS_RESPONSE_GET", 2, argc, argv); in wpa_cli_cmd_gas_response_get()
2641 static int wpa_cli_cmd_hs20_anqp_get(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_hs20_anqp_get() argument
2644 return wpa_cli_cmd(ctrl, "HS20_ANQP_GET", 2, argc, argv); in wpa_cli_cmd_hs20_anqp_get()
2648 static int wpa_cli_cmd_get_nai_home_realm_list(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_get_nai_home_realm_list() argument
2653 if (argc == 0) { in wpa_cli_cmd_get_nai_home_realm_list()
2660 argc, argv) < 0) in wpa_cli_cmd_get_nai_home_realm_list()
2667 static int wpa_cli_cmd_hs20_icon_request(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_hs20_icon_request() argument
2672 if (argc < 2) { in wpa_cli_cmd_hs20_icon_request()
2678 if (write_cmd(cmd, sizeof(cmd), "HS20_ICON_REQUEST", argc, argv) < 0) in wpa_cli_cmd_hs20_icon_request()
2685 static int wpa_cli_cmd_fetch_osu(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_fetch_osu() argument
2691 static int wpa_cli_cmd_cancel_fetch_osu(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_cancel_fetch_osu() argument
2700 static int wpa_cli_cmd_sta_autoconnect(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_sta_autoconnect() argument
2703 return wpa_cli_cmd(ctrl, "STA_AUTOCONNECT", 1, argc, argv); in wpa_cli_cmd_sta_autoconnect()
2707 static int wpa_cli_cmd_tdls_discover(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_tdls_discover() argument
2710 return wpa_cli_cmd(ctrl, "TDLS_DISCOVER", 1, argc, argv); in wpa_cli_cmd_tdls_discover()
2714 static int wpa_cli_cmd_tdls_setup(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_tdls_setup() argument
2717 return wpa_cli_cmd(ctrl, "TDLS_SETUP", 1, argc, argv); in wpa_cli_cmd_tdls_setup()
2721 static int wpa_cli_cmd_tdls_teardown(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_tdls_teardown() argument
2724 return wpa_cli_cmd(ctrl, "TDLS_TEARDOWN", 1, argc, argv); in wpa_cli_cmd_tdls_teardown()
2728 static int wpa_cli_cmd_tdls_link_status(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_tdls_link_status() argument
2731 return wpa_cli_cmd(ctrl, "TDLS_LINK_STATUS", 1, argc, argv); in wpa_cli_cmd_tdls_link_status()
2735 static int wpa_cli_cmd_wmm_ac_addts(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wmm_ac_addts() argument
2738 return wpa_cli_cmd(ctrl, "WMM_AC_ADDTS", 3, argc, argv); in wpa_cli_cmd_wmm_ac_addts()
2742 static int wpa_cli_cmd_wmm_ac_delts(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wmm_ac_delts() argument
2745 return wpa_cli_cmd(ctrl, "WMM_AC_DELTS", 1, argc, argv); in wpa_cli_cmd_wmm_ac_delts()
2749 static int wpa_cli_cmd_wmm_ac_status(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_wmm_ac_status() argument
2756 static int wpa_cli_cmd_tdls_chan_switch(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_tdls_chan_switch() argument
2759 return wpa_cli_cmd(ctrl, "TDLS_CHAN_SWITCH", 2, argc, argv); in wpa_cli_cmd_tdls_chan_switch()
2763 static int wpa_cli_cmd_tdls_cancel_chan_switch(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_tdls_cancel_chan_switch() argument
2766 return wpa_cli_cmd(ctrl, "TDLS_CANCEL_CHAN_SWITCH", 1, argc, argv); in wpa_cli_cmd_tdls_cancel_chan_switch()
2770 static int wpa_cli_cmd_signal_poll(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_signal_poll() argument
2777 static int wpa_cli_cmd_signal_monitor(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_signal_monitor() argument
2780 return wpa_cli_cmd(ctrl, "SIGNAL_MONITOR", 0, argc, argv); in wpa_cli_cmd_signal_monitor()
2784 static int wpa_cli_cmd_pktcnt_poll(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_pktcnt_poll() argument
2791 static int wpa_cli_cmd_reauthenticate(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_reauthenticate() argument
2800 static int wpa_cli_cmd_autoscan(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_autoscan() argument
2802 if (argc == 0) in wpa_cli_cmd_autoscan()
2805 return wpa_cli_cmd(ctrl, "AUTOSCAN", 0, argc, argv); in wpa_cli_cmd_autoscan()
2813 static int wpa_cli_cmd_wnm_sleep(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_wnm_sleep() argument
2815 return wpa_cli_cmd(ctrl, "WNM_SLEEP", 0, argc, argv); in wpa_cli_cmd_wnm_sleep()
2819 static int wpa_cli_cmd_wnm_bss_query(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_wnm_bss_query() argument
2821 return wpa_cli_cmd(ctrl, "WNM_BSS_QUERY", 1, argc, argv); in wpa_cli_cmd_wnm_bss_query()
2827 static int wpa_cli_cmd_raw(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_raw() argument
2829 if (argc == 0) in wpa_cli_cmd_raw()
2831 return wpa_cli_cmd(ctrl, argv[0], 0, argc - 1, &argv[1]); in wpa_cli_cmd_raw()
2836 static int wpa_cli_cmd_driver(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_driver() argument
2838 return wpa_cli_cmd(ctrl, "DRIVER", 1, argc, argv); in wpa_cli_cmd_driver()
2843 static int wpa_cli_cmd_vendor(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_vendor() argument
2845 return wpa_cli_cmd(ctrl, "VENDOR", 1, argc, argv); in wpa_cli_cmd_vendor()
2849 static int wpa_cli_cmd_flush(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_flush() argument
2855 static int wpa_cli_cmd_radio_work(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_radio_work() argument
2857 return wpa_cli_cmd(ctrl, "RADIO_WORK", 1, argc, argv); in wpa_cli_cmd_radio_work()
2861 static int wpa_cli_cmd_neighbor_rep_request(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_neighbor_rep_request() argument
2864 return wpa_cli_cmd(ctrl, "NEIGHBOR_REP_REQUEST", 0, argc, argv); in wpa_cli_cmd_neighbor_rep_request()
2868 static int wpa_cli_cmd_erp_flush(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_erp_flush() argument
2874 static int wpa_cli_cmd_mac_rand_scan(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_mac_rand_scan() argument
2877 return wpa_cli_cmd(ctrl, "MAC_RAND_SCAN", 1, argc, argv); in wpa_cli_cmd_mac_rand_scan()
2881 static int wpa_cli_cmd_get_pref_freq_list(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_get_pref_freq_list() argument
2884 return wpa_cli_cmd(ctrl, "GET_PREF_FREQ_LIST", 1, argc, argv); in wpa_cli_cmd_get_pref_freq_list()
2895 int (*handler)(struct wpa_ctrl *ctrl, int argc, char *argv[]);
3614 static int wpa_request(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_request() argument
3620 if (argc > 1 && os_strncasecmp(argv[0], "IFNAME=", 7) == 0) { in wpa_request()
3623 argc--; in wpa_request()
3627 if (argc == 0) in wpa_request()
3662 ret = match->handler(ctrl, argc - 1, &argv[1]); in wpa_request()
3969 int argc = 0; in tokenize_cmd() local
3977 argv[argc] = pos; in tokenize_cmd()
3978 argc++; in tokenize_cmd()
3979 if (argc == max_args) in tokenize_cmd()
3992 return argc; in tokenize_cmd()
4026 int argc; in wpa_cli_edit_cmd_cb() local
4027 argc = tokenize_cmd(cmd, argv); in wpa_cli_edit_cmd_cb()
4028 if (argc) in wpa_cli_edit_cmd_cb()
4029 wpa_request(ctrl_conn, argc, argv); in wpa_cli_edit_cmd_cb()
4349 int main(int argc, char *argv[]) in main() argument
4360 c = getopt(argc, argv, "a:Bg:G:hi:p:P:s:v"); in main()
4401 interactive = (argc == optind) && (action_file == NULL); in main()
4474 ret = wpa_request(ctrl_conn, argc - optind, in main()
4486 int main(int argc, char *argv[]) in main() argument