Lines Matching refs:buflen

194 	struct hostapd_data *hapd, char *cmd, char *buf, size_t buflen)  in hostapd_ctrl_iface_wps_check_pin()  argument
223 ret = os_snprintf(buf, buflen, "FAIL-CHECKSUM\n"); in hostapd_ctrl_iface_wps_check_pin()
224 if (os_snprintf_error(buflen, ret)) in hostapd_ctrl_iface_wps_check_pin()
230 ret = os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_check_pin()
231 if (os_snprintf_error(buflen, ret)) in hostapd_ctrl_iface_wps_check_pin()
454 char *buf, size_t buflen) in hostapd_ctrl_iface_wps_ap_pin() argument
466 return os_snprintf(buf, buflen, "OK\n"); in hostapd_ctrl_iface_wps_ap_pin()
475 return os_snprintf(buf, buflen, "%s", pin_txt); in hostapd_ctrl_iface_wps_ap_pin()
482 return os_snprintf(buf, buflen, "%s", pin_txt); in hostapd_ctrl_iface_wps_ap_pin()
495 if (os_strlen(pin) > buflen) in hostapd_ctrl_iface_wps_ap_pin()
499 return os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_ap_pin()
551 char *buf, size_t buflen) in hostapd_ctrl_iface_wps_get_status() argument
557 end = buf + buflen; in hostapd_ctrl_iface_wps_get_status()
820 char *buf, size_t buflen) in hostapd_ctrl_iface_get_key_mgmt() argument
826 end = buf + buflen; in hostapd_ctrl_iface_get_key_mgmt()
983 char *buf, size_t buflen) in hostapd_ctrl_iface_get_config() argument
989 end = buf + buflen; in hostapd_ctrl_iface_get_config()
1363 char *buf, size_t buflen) in hostapd_ctrl_iface_get() argument
1370 res = os_snprintf(buf, buflen, "%s", VERSION_STR); in hostapd_ctrl_iface_get()
1371 if (os_snprintf_error(buflen, res)) in hostapd_ctrl_iface_get()
1375 res = tls_get_library_version(buf, buflen); in hostapd_ctrl_iface_get()
1376 if (os_snprintf_error(buflen, res)) in hostapd_ctrl_iface_get()
1485 char *buf, size_t buflen) in hostapd_ctrl_iface_get_rxkhs() argument
1494 end = buf + buflen; in hostapd_ctrl_iface_get_rxkhs()
2391 char *buf, size_t buflen) in hostapd_ctrl_get_pmksa_pmk() argument
2399 return wpa_snprintf_hex(buf, buflen, pmksa->pmk, pmksa->pmk_len); in hostapd_ctrl_get_pmksa_pmk()
2404 char *buf, size_t buflen) in hostapd_ctrl_get_pmk() argument
2418 return hostapd_ctrl_get_pmksa_pmk(hapd, addr, buf, buflen); in hostapd_ctrl_get_pmk()
2424 return hostapd_ctrl_get_pmksa_pmk(hapd, addr, buf, buflen); in hostapd_ctrl_get_pmk()
2427 return wpa_snprintf_hex(buf, buflen, pmk, pmk_len); in hostapd_ctrl_get_pmk()
3019 char *buf, size_t buflen) in hostapd_ctrl_iface_vendor() argument
3066 reply = wpabuf_alloc((buflen - 1) / 2); in hostapd_ctrl_iface_vendor()
3076 ret = wpa_snprintf_hex(buf, buflen, wpabuf_head_u8(reply), in hostapd_ctrl_iface_vendor()
3128 char *buf, size_t buflen) in hostapd_ctrl_iface_log_level() argument
3136 end = buf + buflen; in hostapd_ctrl_iface_log_level()
3175 char *buf, size_t buflen) in hostapd_ctrl_iface_track_sta_list() argument
3188 end = buf + buflen; in hostapd_ctrl_iface_track_sta_list()
3344 char *buf, size_t buflen) in hostapd_ctrl_iface_show_neighbor() argument
3353 return hostapd_neighbor_show(hapd, buf, buflen); in hostapd_ctrl_iface_show_neighbor()
3496 size_t buflen) in hostapd_ctrl_driver_flags() argument
3501 ret = os_snprintf(buf, buflen, "%016llX:\n", in hostapd_ctrl_driver_flags()
3503 if (os_snprintf_error(buflen, ret)) in hostapd_ctrl_driver_flags()
3507 end = buf + buflen; in hostapd_ctrl_driver_flags()
3524 size_t buflen) in hostapd_ctrl_driver_flags2() argument
3529 ret = os_snprintf(buf, buflen, "%016llX:\n", in hostapd_ctrl_driver_flags2()
3531 if (os_snprintf_error(buflen, ret)) in hostapd_ctrl_driver_flags2()
3535 end = buf + buflen; in hostapd_ctrl_driver_flags2()
3553 size_t buflen) in hostapd_ctrl_iface_get_capability() argument
3562 res = os_snprintf(buf, buflen, "DPP=3"); in hostapd_ctrl_iface_get_capability()
3564 res = os_snprintf(buf, buflen, "DPP=2"); in hostapd_ctrl_iface_get_capability()
3566 res = os_snprintf(buf, buflen, "DPP=1"); in hostapd_ctrl_iface_get_capability()
3568 if (os_snprintf_error(buflen, res)) in hostapd_ctrl_iface_get_capability()
3583 char *buf, size_t buflen) in hostapd_ctrl_iface_driver_cmd() argument
3587 ret = hostapd_drv_driver_cmd(hapd, cmd, buf, buflen); in hostapd_ctrl_iface_driver_cmd()
3589 ret = os_snprintf(buf, buflen, "%s\n", "OK"); in hostapd_ctrl_iface_driver_cmd()
3590 if (os_snprintf_error(buflen, ret)) in hostapd_ctrl_iface_driver_cmd()
3678 char *buf, size_t buflen) in hostapd_ctrl_iface_link_remove() argument
3688 ret = os_snprintf(buf, buflen, "%s\n", "OK"); in hostapd_ctrl_iface_link_remove()
3689 if (os_snprintf_error(buflen, ret)) in hostapd_ctrl_iface_link_remove()
3704 char *buf, size_t buflen) in hostapd_ctrl_nan_publish() argument
3769 ret = os_snprintf(buf, buflen, "%d", publish_id); in hostapd_ctrl_nan_publish()
3841 char *buf, size_t buflen) in hostapd_ctrl_nan_subscribe() argument
3893 ret = os_snprintf(buf, buflen, "%d", subscribe_id); in hostapd_ctrl_nan_subscribe()