Lines Matching refs:os_snprintf
220 ret = os_snprintf(buf, buflen, "FAIL-CHECKSUM\n"); in hostapd_ctrl_iface_wps_check_pin()
227 ret = os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_check_pin()
463 return os_snprintf(buf, buflen, "OK\n"); in hostapd_ctrl_iface_wps_ap_pin()
472 return os_snprintf(buf, buflen, "%s", pin_txt); in hostapd_ctrl_iface_wps_ap_pin()
479 return os_snprintf(buf, buflen, "%s", pin_txt); in hostapd_ctrl_iface_wps_ap_pin()
496 return os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_ap_pin()
556 ret = os_snprintf(pos, end - pos, "PBC Status: %s\n", in hostapd_ctrl_iface_wps_get_status()
563 ret = os_snprintf(pos, end - pos, "Last WPS result: %s\n", in hostapd_ctrl_iface_wps_get_status()
576 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_wps_get_status()
586 ret = os_snprintf(pos, end - pos, "Peer Address: " MACSTR "\n", in hostapd_ctrl_iface_wps_get_status()
828 ret = os_snprintf(pos, end - pos, "WPA-PSK "); in hostapd_ctrl_iface_get_key_mgmt()
834 ret = os_snprintf(pos, end - pos, "WPA-EAP "); in hostapd_ctrl_iface_get_key_mgmt()
841 ret = os_snprintf(pos, end - pos, "FT-PSK "); in hostapd_ctrl_iface_get_key_mgmt()
847 ret = os_snprintf(pos, end - pos, "FT-EAP "); in hostapd_ctrl_iface_get_key_mgmt()
854 ret = os_snprintf(pos, end - pos, "FT-EAP-SHA384 "); in hostapd_ctrl_iface_get_key_mgmt()
862 ret = os_snprintf(pos, end - pos, "FT-SAE "); in hostapd_ctrl_iface_get_key_mgmt()
868 ret = os_snprintf(pos, end - pos, "FT-SAE-EXT-KEY "); in hostapd_ctrl_iface_get_key_mgmt()
876 ret = os_snprintf(pos, end - pos, "FT-FILS-SHA256 "); in hostapd_ctrl_iface_get_key_mgmt()
882 ret = os_snprintf(pos, end - pos, "FT-FILS-SHA384 "); in hostapd_ctrl_iface_get_key_mgmt()
890 ret = os_snprintf(pos, end - pos, "WPA-PSK-SHA256 "); in hostapd_ctrl_iface_get_key_mgmt()
896 ret = os_snprintf(pos, end - pos, "WPA-EAP-SHA256 "); in hostapd_ctrl_iface_get_key_mgmt()
903 ret = os_snprintf(pos, end - pos, "SAE "); in hostapd_ctrl_iface_get_key_mgmt()
909 ret = os_snprintf(pos, end - pos, "SAE-EXT-KEY "); in hostapd_ctrl_iface_get_key_mgmt()
916 ret = os_snprintf(pos, end - pos, "WPA-EAP-SUITE-B "); in hostapd_ctrl_iface_get_key_mgmt()
923 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_get_key_mgmt()
931 ret = os_snprintf(pos, end - pos, "FILS-SHA256 "); in hostapd_ctrl_iface_get_key_mgmt()
937 ret = os_snprintf(pos, end - pos, "FILS-SHA384 "); in hostapd_ctrl_iface_get_key_mgmt()
946 ret = os_snprintf(pos, end - pos, "OWE "); in hostapd_ctrl_iface_get_key_mgmt()
955 ret = os_snprintf(pos, end - pos, "DPP "); in hostapd_ctrl_iface_get_key_mgmt()
963 ret = os_snprintf(pos, end - pos, "WPA-EAP-SHA384 "); in hostapd_ctrl_iface_get_key_mgmt()
988 ret = os_snprintf(pos, end - pos, "bssid=" MACSTR "\n" in hostapd_ctrl_iface_get_config()
998 ret = os_snprintf(pos, end - pos, "config_id=%s\n", in hostapd_ctrl_iface_get_config()
1006 ret = os_snprintf(pos, end - pos, "wps_state=%s\n", in hostapd_ctrl_iface_get_config()
1016 ret = os_snprintf(pos, end - pos, "passphrase=%s\n", in hostapd_ctrl_iface_get_config()
1029 ret = os_snprintf(pos, end - pos, "psk=%s\n", hex); in hostapd_ctrl_iface_get_config()
1038 ret = os_snprintf(pos, end - pos, "multi_ap=%d\n", in hostapd_ctrl_iface_get_config()
1045 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_get_config()
1056 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_get_config()
1071 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_get_config()
1083 ret = os_snprintf(pos, end - pos, "wpa=%d\n", hapd->conf->wpa); in hostapd_ctrl_iface_get_config()
1090 ret = os_snprintf(pos, end - pos, "key_mgmt="); in hostapd_ctrl_iface_get_config()
1097 ret = os_snprintf(pos, end - pos, "\n"); in hostapd_ctrl_iface_get_config()
1104 ret = os_snprintf(pos, end - pos, "group_cipher=%s\n", in hostapd_ctrl_iface_get_config()
1112 ret = os_snprintf(pos, end - pos, "rsn_pairwise_cipher="); in hostapd_ctrl_iface_get_config()
1123 ret = os_snprintf(pos, end - pos, "\n"); in hostapd_ctrl_iface_get_config()
1130 ret = os_snprintf(pos, end - pos, "wpa_pairwise_cipher="); in hostapd_ctrl_iface_get_config()
1141 ret = os_snprintf(pos, end - pos, "\n"); in hostapd_ctrl_iface_get_config()
1148 ret = os_snprintf(pos, end - pos, "wpa_deny_ptk0_rekey=%d\n", in hostapd_ctrl_iface_get_config()
1156 ret = os_snprintf(pos, end - pos, "extended_key_id=%d\n", in hostapd_ctrl_iface_get_config()
1365 res = os_snprintf(buf, buflen, "%s", VERSION_STR); in hostapd_ctrl_iface_get()
1493 ret = os_snprintf(pos, end - pos, "r0kh=" MACSTR " ", in hostapd_ctrl_iface_get_rxkhs()
1505 ret = os_snprintf(pos, end - pos, "\n"); in hostapd_ctrl_iface_get_rxkhs()
1513 ret = os_snprintf(pos, end - pos, "r1kh=" MACSTR " " MACSTR " ", in hostapd_ctrl_iface_get_rxkhs()
1520 ret = os_snprintf(pos, end - pos, "\n"); in hostapd_ctrl_iface_get_rxkhs()
1912 os_snprintf(extra, sizeof(extra), " len=%d", ntohs(ip.ip_len)); in hostapd_data_test_rx()
3132 ret = os_snprintf(pos, end - pos, "Current level: %s\n" in hostapd_ctrl_iface_log_level()
3192 ret = os_snprintf(pos, end - pos, MACSTR " %u %d\n", in hostapd_ctrl_iface_track_sta_list()
3313 ret = os_snprintf(reply, reply_size, "%d", ret); in hostapd_ctrl_iface_req_beacon()
3333 ret = os_snprintf(reply, reply_size, "%d", ret); in hostapd_ctrl_iface_req_link_measurement()
3496 ret = os_snprintf(buf, buflen, "%016llX:\n", in hostapd_ctrl_driver_flags()
3506 ret = os_snprintf(pos, end - pos, "%s\n", in hostapd_ctrl_driver_flags()
3524 ret = os_snprintf(buf, buflen, "%016llX:\n", in hostapd_ctrl_driver_flags2()
3534 ret = os_snprintf(pos, end - pos, "%s\n", in hostapd_ctrl_driver_flags2()
3557 res = os_snprintf(buf, buflen, "DPP=3"); in hostapd_ctrl_iface_get_capability()
3559 res = os_snprintf(buf, buflen, "DPP=2"); in hostapd_ctrl_iface_get_capability()
3561 res = os_snprintf(buf, buflen, "DPP=1"); in hostapd_ctrl_iface_get_capability()
3584 ret = os_snprintf(buf, buflen, "%s\n", "OK"); in hostapd_ctrl_iface_driver_cmd()
3683 ret = os_snprintf(buf, buflen, "%s\n", "OK"); in hostapd_ctrl_iface_link_remove()
3764 ret = os_snprintf(buf, buflen, "%d", publish_id); in hostapd_ctrl_nan_publish()
3888 ret = os_snprintf(buf, buflen, "%d", subscribe_id); in hostapd_ctrl_nan_subscribe()
4393 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4402 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4411 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4420 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4429 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4445 reply_len = os_snprintf(reply, reply_size, "%s", uri); in hostapd_ctrl_iface_receive_process()
4473 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4498 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4700 os_snprintf(buf, len, "%s/%s", in hostapd_ctrl_iface_path()
4763 os_snprintf(p, sizeof(p), "%d", port); in hostapd_ctrl_iface_init()
4789 os_snprintf(port_str, sizeof(port_str), "udp:%d", port); in hostapd_ctrl_iface_init()
5185 os_snprintf(value, HOSTAPD_CLI_DUP_VALUE_MAX_LEN, "%d", in hostapd_ctrl_iface_dup_param()
5209 os_snprintf(value, HOSTAPD_CLI_DUP_VALUE_MAX_LEN, "%s", in hostapd_ctrl_iface_dup_param()
5257 res = os_snprintf(pos, end - pos, in hostapd_global_ctrl_iface_interfaces()
5263 res = os_snprintf(pos, end - pos, "%s\n", in hostapd_global_ctrl_iface_interfaces()
5335 res = os_snprintf(reply, reply_size, "FAIL-NO-IFNAME-MATCH\n"); in hostapd_global_ctrl_iface_ifname()
5461 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5466 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5475 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5519 os_snprintf(buf, len, "%s/%s", interface->global_iface_path, in hostapd_global_ctrl_iface_path()
5568 os_snprintf(p, sizeof(p), "%d", port); in hostapd_global_ctrl_iface_init()
5792 res = os_snprintf(levelstr, sizeof(levelstr), "<%d>", level); in hostapd_ctrl_iface_send_internal()