/external/wpa_supplicant_8/src/fst/ |
D | fst_ctrl_iface.c | 50 os_snprintf(reject_str, sizeof(reject_str), "%u", in format_session_state_extra() 70 len = os_snprintf(buffer, size, in format_session_state_extra() 183 return os_snprintf(buf, buflen, "FAIL\n"); in session_get() 191 return os_snprintf(buf, buflen, in session_get() 222 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 226 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 241 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 244 return os_snprintf(buf, buflen, "%s\n", ret ? "FAIL" : "OK"); in session_set() 258 return os_snprintf(buf, buflen, "FAIL\n"); in session_add() 266 return os_snprintf(buf, buflen, "FAIL\n"); in session_add() [all …]
|
/external/wpa_supplicant_8/hostapd/ |
D | hostapd_cli.c | 235 res = os_snprintf(pos, end - pos, "%s", cmd); in write_cmd() 241 res = os_snprintf(pos, end - pos, " %s", argv[i]); in write_cmd() 296 os_snprintf(buf, sizeof(buf), "MIB %s", argv[0]); in hostapd_cli_cmd_mib() 314 os_snprintf(arg, len, "%s %s", arg1, arg2); in hostapd_cli_exec() 379 os_snprintf(buf, sizeof(buf), "DEAUTHENTICATE %s %s", in hostapd_cli_cmd_deauthenticate() 382 os_snprintf(buf, sizeof(buf), "DEAUTHENTICATE %s", argv[0]); in hostapd_cli_cmd_deauthenticate() 397 os_snprintf(buf, sizeof(buf), "DISASSOCIATE %s %s", in hostapd_cli_cmd_disassociate() 400 os_snprintf(buf, sizeof(buf), "DISASSOCIATE %s", argv[0]); in hostapd_cli_cmd_disassociate() 456 res = os_snprintf(cmd, sizeof(cmd), "WPS_CHECK_PIN %s %s", in hostapd_cli_cmd_wps_check_pin() 459 res = os_snprintf(cmd, sizeof(cmd), "WPS_CHECK_PIN %s", in hostapd_cli_cmd_wps_check_pin() [all …]
|
D | ctrl_iface.c | 207 ret = os_snprintf(buf, buflen, "FAIL-CHECKSUM\n"); in hostapd_ctrl_iface_wps_check_pin() 214 ret = os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_check_pin() 450 return os_snprintf(buf, buflen, "OK\n"); in hostapd_ctrl_iface_wps_ap_pin() 459 return os_snprintf(buf, buflen, "%s", pin_txt); in hostapd_ctrl_iface_wps_ap_pin() 466 return os_snprintf(buf, buflen, "%s", pin_txt); in hostapd_ctrl_iface_wps_ap_pin() 483 return os_snprintf(buf, buflen, "%s", pin); in hostapd_ctrl_iface_wps_ap_pin() 543 ret = os_snprintf(pos, end - pos, "PBC Status: %s\n", in hostapd_ctrl_iface_wps_get_status() 550 ret = os_snprintf(pos, end - pos, "Last WPS result: %s\n", in hostapd_ctrl_iface_wps_get_status() 563 ret = os_snprintf(pos, end - pos, in hostapd_ctrl_iface_wps_get_status() 573 ret = os_snprintf(pos, end - pos, "Peer Address: " MACSTR "\n", in hostapd_ctrl_iface_wps_get_status() [all …]
|
D | hlr_auc_gw.c | 115 os_snprintf(cmd, sizeof(cmd), "SELECT 1 FROM %s;", name); in db_table_exists() 213 os_snprintf(db_tmp_milenage.imsi, sizeof(db_tmp_milenage.imsi), in db_get_milenage() 215 os_snprintf(cmd, sizeof(cmd), in db_get_milenage() 237 os_snprintf(cmd, sizeof(cmd), in db_update_milenage_sqn() 677 ret = os_snprintf(rpos, rend - rpos, "GSM-AUTH-RESP %s", imsi); in gsm_auth_req() 703 ret = os_snprintf(rpos, rend - rpos, " FAILURE"); in gsm_auth_req()
|
/external/wpa_supplicant_8/src/ap/ |
D | ctrl_iface_ap.c | 38 ret = os_snprintf(buf, buflen, "rx_packets=%lu\ntx_packets=%lu\n" in hostapd_get_sta_tx_rx() 59 ret = os_snprintf(buf, buflen, "connected_time=%u\n", in hostapd_get_sta_conn_time() 96 ret = os_snprintf(buf + len, buflen - len, MACSTR "\nflags=", in hostapd_ctrl_iface_sta_mib() 107 ret = os_snprintf(buf + len, buflen - len, "\naid=%d\ncapability=0x%x\n" in hostapd_ctrl_iface_sta_mib() 115 ret = os_snprintf(buf + len, buflen - len, "%02x%s", in hostapd_ctrl_iface_sta_mib() 123 ret = os_snprintf(buf + len, buflen - len, "\ntimeout_next=%s\n", in hostapd_ctrl_iface_sta_mib() 151 res = os_snprintf(buf + len, buflen - len, "sae_group=%d\n", in hostapd_ctrl_iface_sta_mib() 159 res = os_snprintf(buf + len, buflen - len, "vlan_id=%d\n", in hostapd_ctrl_iface_sta_mib() 171 len += os_snprintf(buf + len, buflen - len, "supp_op_classes="); in hostapd_ctrl_iface_sta_mib() 175 len += os_snprintf(buf + len, buflen - len, "\n"); in hostapd_ctrl_iface_sta_mib() [all …]
|
D | mbo_ap.c | 68 ret = os_snprintf(pos, end - pos, "%s%u", in mbo_ap_parse_non_pref_chan() 127 ret = os_snprintf(pos, end - pos, "mbo_cell_capa=%u\n", sta->cell_capa); in mbo_ap_get_info() 135 ret = os_snprintf(pos2, end - pos2, in mbo_ap_get_info() 145 ret = os_snprintf(pos2, end - pos2, "%u%s", in mbo_ap_get_info() 158 ret = os_snprintf(pos2, end - pos2, "\n"); in mbo_ap_get_info()
|
D | vlan_full.c | 368 os_snprintf(vlan_ifname, sizeof(vlan_ifname), "%s.%d", in vlan_newlink_tagged() 371 os_snprintf(vlan_ifname, sizeof(vlan_ifname), "vlan%d", vid); in vlan_newlink_tagged() 392 os_snprintf(br_name, IFNAMSIZ, "%s%d", in vlan_bridge_name() 395 os_snprintf(br_name, IFNAMSIZ, "br%s.%d", in vlan_bridge_name() 398 os_snprintf(br_name, IFNAMSIZ, "brvlan%d", vid); in vlan_bridge_name() 479 os_snprintf(vlan_ifname, sizeof(vlan_ifname), "%s.%d", in vlan_dellink_tagged() 482 os_snprintf(vlan_ifname, sizeof(vlan_ifname), "vlan%d", vid); in vlan_dellink_tagged()
|
/external/wpa_supplicant_8/src/eapol_auth/ |
D | eapol_auth_dump.c | 130 ret = os_snprintf(pos, end - pos, "aWhile=%d\nquietWhile=%d\n" in eapol_auth_dump_state() 138 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state() 180 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state() 222 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state() 247 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state() 258 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state() 265 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state() 274 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface.c | 519 res = os_snprintf(buf, buflen, "%s", VERSION_STR); in wpa_supplicant_ctrl_iface_get() 522 res = os_snprintf(buf, buflen, "%c%c", in wpa_supplicant_ctrl_iface_get() 533 res = os_snprintf(buf, buflen, "%d", enabled); in wpa_supplicant_ctrl_iface_get() 697 ret = os_snprintf(buf, buflen, "%s\n", in ctrl_iface_get_capability_tdls() 825 ret = os_snprintf(buf, buflen, "TDLS link status: %s\n", tdls_status); in wpa_supplicant_ctrl_iface_tdls_link_status() 998 ret = os_snprintf(buf, buflen, "%s", pin); in wpa_supplicant_ctrl_iface_wps_pin() 1010 ret = os_snprintf(buf, buflen, "%08d", ret); in wpa_supplicant_ctrl_iface_wps_pin() 1047 ret = os_snprintf(buf, buflen, "FAIL-CHECKSUM\n"); in wpa_supplicant_ctrl_iface_wps_check_pin() 1054 ret = os_snprintf(buf, buflen, "%s", pin); in wpa_supplicant_ctrl_iface_wps_check_pin() 1542 return os_snprintf(buf, buflen, "OK\n"); in wpa_supplicant_ctrl_iface_wps_ap_pin() [all …]
|
D | wpa_cli.c | 176 os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(addr)); in cli_txt_list_del_addr() 225 os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(addr)); in cli_txt_list_add_addr() 354 res = os_snprintf(cfile, flen, "%s/%s", ctrl_iface_dir, in wpa_cli_open_connection() 430 os_snprintf(buf, sizeof(buf), "IFNAME=%s %s", in _wpa_ctrl_command() 470 res = os_snprintf(pos, end - pos, "%s", cmd); in write_cmd() 476 res = os_snprintf(pos, end - pos, " %s", argv[i]); in write_cmd() 610 res = os_snprintf(cmd, sizeof(cmd), "SET %s ", argv[0]); in wpa_cli_cmd_set() 853 res = os_snprintf(cmd, sizeof(cmd), "BSS_FLUSH 0"); in wpa_cli_cmd_bss_flush() 855 res = os_snprintf(cmd, sizeof(cmd), "BSS_FLUSH %s", argv[0]); in wpa_cli_cmd_bss_flush() 950 os_snprintf(buf, buflen, "WPS_NFC_TAG_READ %s", argv[0]); in wpa_cli_cmd_wps_nfc_tag_read() [all …]
|
D | config.c | 250 res = os_snprintf(value, 20, "%d", *src); in wpa_config_write_int() 388 res = os_snprintf(value, 20, MACSTR, MAC2STR(ssid->bssid)); in wpa_config_write_bssid() 527 res = os_snprintf(buf, len, "ext:%s", ssid->ext_psk); in wpa_config_write_psk() 617 ret = os_snprintf(pos, end - pos, "%sWPA", in wpa_config_write_proto() 625 ret = os_snprintf(pos, end - pos, "%sRSN", in wpa_config_write_proto() 633 ret = os_snprintf(pos, end - pos, "%sOSEN", in wpa_config_write_proto() 755 ret = os_snprintf(pos, end - pos, "%sWPA-PSK", in wpa_config_write_key_mgmt() 765 ret = os_snprintf(pos, end - pos, "%sWPA-EAP", in wpa_config_write_key_mgmt() 775 ret = os_snprintf(pos, end - pos, "%sIEEE8021X", in wpa_config_write_key_mgmt() 785 ret = os_snprintf(pos, end - pos, "%sNONE", in wpa_config_write_key_mgmt() [all …]
|
D | mesh.c | 468 ret = os_snprintf(pos, end - pos, "mesh_id=%s\n", mesh_id); in mesh_attr_text() 475 ret = os_snprintf(pos, end - pos, in mesh_attr_text() 511 ret = os_snprintf(pos, end - pos, "bss_basic_rate_set=%d", in mesh_attr_text() 518 ret = os_snprintf(pos, end - pos, " %d", in mesh_attr_text() 525 ret = os_snprintf(pos, end - pos, "\n"); in mesh_attr_text() 550 res = os_snprintf(ifname, len, "mesh-%s-%d", ifname_ptr, in wpas_mesh_get_ifname() 556 res = os_snprintf(ifname, len, "mesh-%d", wpa_s->mesh_if_idx); in wpas_mesh_get_ifname()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_sim_db.c | 89 os_snprintf(cmd, sizeof(cmd), "SELECT 1 FROM %s;", name); in db_table_exists() 192 os_snprintf(cmd, sizeof(cmd), "INSERT OR REPLACE INTO pseudonyms " in db_add_pseudonym() 231 os_snprintf(cmd, sizeof(cmd), in db_get_pseudonym() 257 pos += os_snprintf(pos, end - pos, "INSERT OR REPLACE INTO reauth " in db_add_reauth() 268 pos += os_snprintf(pos, end - pos, ", '"); in db_add_reauth() 270 pos += os_snprintf(pos, end - pos, "'"); in db_add_reauth() 274 pos += os_snprintf(pos, end - pos, ", '"); in db_add_reauth() 277 pos += os_snprintf(pos, end - pos, "'"); in db_add_reauth() 281 pos += os_snprintf(pos, end - pos, ", '"); in db_add_reauth() 284 pos += os_snprintf(pos, end - pos, "'"); in db_add_reauth() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps.c | 560 ret = os_snprintf(pos, end - pos, in wps_attr_text() 563 ret = os_snprintf(pos, end - pos, in wps_attr_text() 573 ret = os_snprintf(pos, end - pos, in wps_attr_text() 581 ret = os_snprintf(pos, end - pos, in wps_attr_text() 589 ret = os_snprintf(pos, end - pos, in wps_attr_text() 598 ret = os_snprintf(pos, end - pos, in wps_attr_text() 609 ret = os_snprintf(pos, end - pos, in wps_attr_text() 632 ret = os_snprintf(pos, end - pos, "wps_device_name=%s\n", str); in wps_attr_text() 640 ret = os_snprintf(pos, end - pos, in wps_attr_text()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_android.c | 109 os_snprintf(&buf[bp], WEXT_PNO_SCAN_INTERVAL_LENGTH + 1, "%x", in android_pno_start() 114 os_snprintf(&buf[bp], WEXT_PNO_REPEAT_LENGTH + 1, "%x", in android_pno_start() 119 os_snprintf(&buf[bp], WEXT_PNO_MAX_REPEAT_LENGTH + 1, "%x", in android_pno_start()
|
D | rfkill.c | 117 os_snprintf(buf, sizeof(buf), "/sys/class/net/%s/phy80211", in rfkill_init() 158 os_snprintf(buf2, sizeof(buf2), in rfkill_init()
|
D | linux_ioctl.c | 209 os_snprintf(path, sizeof(path), "/sys/class/net/%s/brport/bridge", in linux_br_get() 230 os_snprintf(buf, sizeof(buf), "/sys/class/net/%s/master", ifname); in linux_master_get()
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_new.c | 380 os_snprintf(net_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_network() 483 os_snprintf(net_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_network_request() 516 os_snprintf(path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_network_enabled_changed() 888 os_snprintf(sta_mac, WPAS_DBUS_OBJECT_PATH_MAX, MACSTR, MAC2STR(sta)); in wpas_dbus_signal_sta() 1062 os_snprintf(pin, sizeof(pin), "%08d", generated_pin); in wpas_dbus_signal_p2p_provision_discovery() 1075 os_snprintf(peer_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_p2p_provision_discovery() 1140 os_snprintf(peer_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_p2p_go_neg_req() 1180 os_snprintf(group_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_get_group_obj_path() 1343 os_snprintf(peer_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_p2p_go_neg_resp() 1510 os_snprintf(peer_obj_path, WPAS_DBUS_OBJECT_PATH_MAX, in wpas_dbus_signal_p2p_peer_joined() [all …]
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_parse.c | 725 ret = os_snprintf(pos, end - pos, "p2p_group_client: " in p2p_group_info_text() 733 ret = os_snprintf(pos, end - pos, in p2p_group_info_text() 745 ret = os_snprintf(pos, end - pos, " dev_type=%s", in p2p_group_info_text() 763 ret = os_snprintf(pos, end - pos, " dev_name='%s'\n", name); in p2p_group_info_text() 794 ret = os_snprintf(pos, end - pos, in p2p_attr_text() 805 ret = os_snprintf(pos, end - pos, in p2p_attr_text() 815 ret = os_snprintf(pos, end - pos, "p2p_device_name=%s\n", in p2p_attr_text() 822 ret = os_snprintf(pos, end - pos, "p2p_device_addr=" MACSTR in p2p_attr_text() 830 ret = os_snprintf(pos, end - pos, "p2p_config_methods=0x%x\n", in p2p_attr_text()
|
/external/wpa_supplicant_8/hs20/client/ |
D | est.c | 133 os_snprintf(buf, buflen, "%s/cacerts", url); in est_load_cacerts() 449 os_snprintf(name, sizeof(name), "cert-user-%u", val); in generate_csr() 603 os_snprintf(buf, buflen, "%s/csrattrs", url); in est_build_csr() 649 os_snprintf(old_cert_buf, sizeof(old_cert_buf), in est_build_csr() 697 os_snprintf(buf, buflen, "%s/simplereenroll", url); in est_simple_enroll() 698 os_snprintf(client_cert_buf, sizeof(client_cert_buf), in est_simple_enroll() 701 os_snprintf(client_key_buf, sizeof(client_key_buf), in est_simple_enroll() 705 os_snprintf(buf, buflen, "%s/simpleenroll", url); in est_simple_enroll()
|
D | osu_client.c | 231 os_snprintf(buf, sizeof(buf), "SP/%s/client-ca.pem", fqdn); in process_est_cert() 239 os_snprintf(buf, sizeof(buf), "SP/%s/client-cert.pem", fqdn); in process_est_cert() 256 os_snprintf(buf, sizeof(buf), "SP/%s/client-key.pem", fqdn); in process_est_cert() 757 os_snprintf(cmd, sizeof(cmd), "REMOVE_CRED provisioning_sp=%s", fqdn); in remove_sp_creds() 985 os_snprintf(buf, buflen, "%s:%s", proto, port); in set_pps_cred_policy_required_proto_port() 991 os_snprintf(buf, buflen, "%s", proto); in set_pps_cred_policy_required_proto_port() 1947 os_snprintf(last->osu_nai, sizeof(last->osu_nai), in parse_osu_providers() 2046 os_snprintf(fname, sizeof(fname), "%s/osu-ca.pem", dir); in osu_connect() 2281 os_snprintf(fname, sizeof(fname), "%s/osu-icon-%d.%s", in cmd_osu_select() 2417 os_snprintf(buf, sizeof(buf), "%s", address + 5); in cmd_sub_rem() [all …]
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_ctrl.c | 119 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2() 124 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2() 180 os_snprintf(buf, sizeof(buf), "wpa_%s", ctrl_path); in wpa_ctrl_open2() 265 dirnamelen = (size_t) os_snprintf(pathname, sizeof(pathname), "%s/", in wpa_ctrl_cleanup() 449 os_snprintf(ps, WPA_CTRL_MAX_PS_NAME, "%s/%s", in wpa_ctrl_get_remote_ifname() 659 ret = os_snprintf(name, 256, NAMED_PIPE_PREFIX); in wpa_ctrl_open() 661 ret = os_snprintf(name, 256, NAMED_PIPE_PREFIX "-%s", in wpa_ctrl_open()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_fast_pac.c | 507 ret = os_snprintf(*pos, end - *pos, "%s=", field); in eap_fast_write() 512 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_fast_write() 518 ret = os_snprintf(*pos, end - *pos, "%s-txt=", field); in eap_fast_write() 523 ret = os_snprintf(*pos, end - *pos, "%c", data[i]); in eap_fast_write() 528 ret = os_snprintf(*pos, end - *pos, "\n"); in eap_fast_write() 580 ret = os_snprintf(*pos, *buf + *buf_len - *pos, in eap_fast_add_pac_data() 603 ret = os_snprintf(*pos, *buf + *buf_len - *pos, "END\n"); in eap_fast_add_pac_data() 635 ret = os_snprintf(pos, buf + buf_len - pos, "%s\n", pac_file_hdr); in eap_fast_save_pac()
|
/external/wpa_supplicant_8/src/utils/ |
D | os.h | 474 int os_snprintf(char *str, size_t size, const char *format, ...); 548 #ifndef os_snprintf 550 #define os_snprintf _snprintf macro 552 #define os_snprintf snprintf macro
|
D | common.c | 202 res = os_snprintf(buf, len, MACSTR "/" MACSTR, in hwaddr_mask_txt() 205 res = os_snprintf(buf, len, MACSTR, MAC2STR(addr)); in hwaddr_mask_txt() 293 ret = os_snprintf(pos, end - pos, "%02x%c", in wpa_snprintf_hex_sep() 315 ret = os_snprintf(pos, end - pos, uppercase ? "%02X" : "%02x", in _wpa_snprintf_hex() 504 txt += os_snprintf(txt, end - txt, "\\x%02x", in printf_encode() 827 res = os_snprintf(pos, end - pos, "%s%u", in freq_range_list_str() 830 res = os_snprintf(pos, end - pos, "%s%u-%u", in freq_range_list_str()
|