Lines Matching refs:buf

26 	char buf[CMD_BUF_LEN] = {0};  in hostapd_cli_cmd()  local
46 if (write_cmd(buf, CMD_BUF_LEN, cmd, argc, argv) < 0){ in hostapd_cli_cmd()
52 ret = hostapd_ctrl_command_interactive(ctrl, buf); in hostapd_cli_cmd()
54 ret = hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd()
120 char buf[64]; in hostapd_cli_cmd_disassociate() local
127 os_snprintf(buf, sizeof(buf), "DISASSOCIATE %s %s", in hostapd_cli_cmd_disassociate()
130 os_snprintf(buf, sizeof(buf), "DISASSOCIATE %s", argv[0]); in hostapd_cli_cmd_disassociate()
131 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_disassociate()
138 char buf[64]; in hostapd_cli_cmd_deauthenticate() local
145 os_snprintf(buf, sizeof(buf), "DEAUTHENTICATE %s %s", in hostapd_cli_cmd_deauthenticate()
148 os_snprintf(buf, sizeof(buf), "DEAUTHENTICATE %s", argv[0]); in hostapd_cli_cmd_deauthenticate()
149 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_deauthenticate()
191 char buf[64]; in hostapd_cli_cmd_sta() local
198 os_snprintf(buf, sizeof(buf), "STA %s %s", argv[0], argv[1]); in hostapd_cli_cmd_sta()
200 os_snprintf(buf, sizeof(buf), "STA %s", argv[0]); in hostapd_cli_cmd_sta()
201 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_sta()
223 char buf[64]; in hostapd_cli_cmd_new_sta() local
229 os_snprintf(buf, sizeof(buf), "NEW_STA %s", argv[0]); in hostapd_cli_cmd_new_sta()
230 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_new_sta()
288 char buf[100]; in hostapd_cli_cmd_mib() local
289 os_snprintf(buf, sizeof(buf), "MIB %s", argv[0]); in hostapd_cli_cmd_mib()
290 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_mib()
300 char buf[64]; in hostapd_cli_cmd_signature() local
306 os_snprintf(buf, sizeof(buf), "SIGNATURE %s", argv[0]); in hostapd_cli_cmd_signature()
307 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_signature()
315 char buf[64]; in hostapd_cli_cmd_sa_query() local
321 os_snprintf(buf, sizeof(buf), "SA_QUERY %s", argv[0]); in hostapd_cli_cmd_sa_query()
322 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_sa_query()
330 char buf[256]; in hostapd_cli_cmd_wps_pin() local
337 os_snprintf(buf, sizeof(buf), "WPS_PIN %s %s %s %s", in hostapd_cli_cmd_wps_pin()
340 os_snprintf(buf, sizeof(buf), "WPS_PIN %s %s %s", in hostapd_cli_cmd_wps_pin()
343 os_snprintf(buf, sizeof(buf), "WPS_PIN %s %s", argv[0], argv[1]); in hostapd_cli_cmd_wps_pin()
344 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_pin()
393 char *buf; in hostapd_cli_cmd_wps_nfc_tag_read() local
403 buf = os_malloc(buflen); in hostapd_cli_cmd_wps_nfc_tag_read()
404 if (buf == NULL) in hostapd_cli_cmd_wps_nfc_tag_read()
406 os_snprintf(buf, buflen, "WPS_NFC_TAG_READ %s", argv[0]); in hostapd_cli_cmd_wps_nfc_tag_read()
408 ret = hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_nfc_tag_read()
409 os_free(buf); in hostapd_cli_cmd_wps_nfc_tag_read()
485 char buf[64]; in hostapd_cli_cmd_wps_ap_pin() local
492 os_snprintf(buf, sizeof(buf), "WPS_AP_PIN %s %s %s", in hostapd_cli_cmd_wps_ap_pin()
495 os_snprintf(buf, sizeof(buf), "WPS_AP_PIN %s %s", in hostapd_cli_cmd_wps_ap_pin()
498 os_snprintf(buf, sizeof(buf), "WPS_AP_PIN %s", argv[0]); in hostapd_cli_cmd_wps_ap_pin()
499 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_ap_pin()
513 char buf[256]; in hostapd_cli_cmd_wps_config() local
542 os_snprintf(buf, sizeof(buf), "WPS_CONFIG %s %s %s %s", in hostapd_cli_cmd_wps_config()
545 os_snprintf(buf, sizeof(buf), "WPS_CONFIG %s %s %s", in hostapd_cli_cmd_wps_config()
548 os_snprintf(buf, sizeof(buf), "WPS_CONFIG %s %s", in hostapd_cli_cmd_wps_config()
550 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_config()
558 char buf[300]; in hostapd_cli_cmd_disassoc_imminent() local
567 res = os_snprintf(buf, sizeof(buf), "DISASSOC_IMMINENT %s %s", in hostapd_cli_cmd_disassoc_imminent()
569 if (os_snprintf_error(sizeof(buf), res)) in hostapd_cli_cmd_disassoc_imminent()
571 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_disassoc_imminent()
578 char buf[300]; in hostapd_cli_cmd_ess_disassoc() local
587 res = os_snprintf(buf, sizeof(buf), "ESS_DISASSOC %s %s %s", in hostapd_cli_cmd_ess_disassoc()
589 if (os_snprintf_error(sizeof(buf), res)) in hostapd_cli_cmd_ess_disassoc()
591 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_ess_disassoc()
598 char buf[2000], *tmp; in hostapd_cli_cmd_bss_tm_req() local
606 res = os_snprintf(buf, sizeof(buf), "BSS_TM_REQ %s", argv[0]); in hostapd_cli_cmd_bss_tm_req()
607 if (os_snprintf_error(sizeof(buf), res)) in hostapd_cli_cmd_bss_tm_req()
612 tmp = &buf[total]; in hostapd_cli_cmd_bss_tm_req()
613 res = os_snprintf(tmp, sizeof(buf) - total, " %s", argv[i]); in hostapd_cli_cmd_bss_tm_req()
614 if (os_snprintf_error(sizeof(buf) - total, res)) in hostapd_cli_cmd_bss_tm_req()
618 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_bss_tm_req()
632 char buf[1024], *pos; in wpa_ctrl_command_sta() local
636 len = sizeof(buf) - 1; in wpa_ctrl_command_sta()
637 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, in wpa_ctrl_command_sta()
647 buf[len] = '\0'; in wpa_ctrl_command_sta()
648 if (memcmp(buf, "FAIL", 4) == 0) in wpa_ctrl_command_sta()
651 printf("%s", buf); in wpa_ctrl_command_sta()
653 pos = buf; in wpa_ctrl_command_sta()
657 os_strlcpy(addr, buf, addr_len); in wpa_ctrl_command_sta()
697 char buf[200]; in hostapd_cli_cmd_set_qos_map_set() local
707 res = os_snprintf(buf, sizeof(buf), "SET_QOS_MAP_SET %s", argv[0]); in hostapd_cli_cmd_set_qos_map_set()
708 if (os_snprintf_error(sizeof(buf), res)) in hostapd_cli_cmd_set_qos_map_set()
710 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_set_qos_map_set()
717 char buf[50]; in hostapd_cli_cmd_send_qos_map_conf() local
726 res = os_snprintf(buf, sizeof(buf), "SEND_QOS_MAP_CONF %s", argv[0]); in hostapd_cli_cmd_send_qos_map_conf()
727 if (os_snprintf_error(sizeof(buf), res)) in hostapd_cli_cmd_send_qos_map_conf()
729 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_send_qos_map_conf()
736 char buf[300]; in hostapd_cli_cmd_hs20_wnm_notif() local
745 res = os_snprintf(buf, sizeof(buf), "HS20_WNM_NOTIF %s %s", in hostapd_cli_cmd_hs20_wnm_notif()
747 if (os_snprintf_error(sizeof(buf), res)) in hostapd_cli_cmd_hs20_wnm_notif()
749 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_hs20_wnm_notif()
756 char buf[300]; in hostapd_cli_cmd_hs20_deauth_req() local
765 res = os_snprintf(buf, sizeof(buf), in hostapd_cli_cmd_hs20_deauth_req()
769 res = os_snprintf(buf, sizeof(buf), in hostapd_cli_cmd_hs20_deauth_req()
772 if (os_snprintf_error(sizeof(buf), res)) in hostapd_cli_cmd_hs20_deauth_req()
774 return hostapd_ctrl_command(ctrl, buf); in hostapd_cli_cmd_hs20_deauth_req()