/external/wpa_supplicant_8/src/p2p/ |
D | p2p_build.c | 20 wpabuf_put_u8(buf, WLAN_ACTION_VENDOR_SPECIFIC); in p2p_buf_add_action_hdr() 23 wpabuf_put_u8(buf, subtype); /* OUI Subtype */ in p2p_buf_add_action_hdr() 24 wpabuf_put_u8(buf, dialog_token); in p2p_buf_add_action_hdr() 32 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); in p2p_buf_add_public_action_hdr() 33 wpabuf_put_u8(buf, WLAN_PA_VENDOR_SPECIFIC); in p2p_buf_add_public_action_hdr() 36 wpabuf_put_u8(buf, subtype); /* OUI Subtype */ in p2p_buf_add_public_action_hdr() 37 wpabuf_put_u8(buf, dialog_token); in p2p_buf_add_public_action_hdr() 47 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in p2p_buf_add_ie_hdr() 65 wpabuf_put_u8(buf, P2P_ATTR_CAPABILITY); in p2p_buf_add_capability() 67 wpabuf_put_u8(buf, dev_capab); /* Device Capabilities */ in p2p_buf_add_capability() [all …]
|
D | p2p_group.c | 169 wpabuf_put_u8(ie, P2P_ATTR_NOTICE_OF_ABSENCE); in p2p_group_add_noa() 197 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in p2p_group_encaps_probe_resp() 198 wpabuf_put_u8(ie, 4 + frag_len); in p2p_group_encaps_probe_resp() 274 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wifi_display_encaps() 275 wpabuf_put_u8(ie, 4 + frag_len); in wifi_display_encaps() 334 wpabuf_put_u8(buf, 23); in wifi_display_add_dev_info_descr() 345 wpabuf_put_u8(buf, 0); in wifi_display_add_dev_info_descr() 380 wpabuf_put_u8(wfd_subelems, WFD_SUBELEM_SESSION_INFO); in wifi_display_build_go_ie() 423 wpabuf_put_u8(buf, P2P_ATTR_GROUP_INFO); in p2p_buf_add_group_info() 556 wpabuf_put_u8(buf, msg.capability[0]); in p2p_build_client_info()
|
/external/wpa_supplicant_8/src/ap/ |
D | hs20.c | 126 wpabuf_put_u8(buf, WLAN_ACTION_WNM); in hs20_send_wnm_notification() 127 wpabuf_put_u8(buf, WNM_NOTIFICATION_REQ); in hs20_send_wnm_notification() 128 wpabuf_put_u8(buf, 1); /* Dialog token */ in hs20_send_wnm_notification() 129 wpabuf_put_u8(buf, 1); /* Type - 1 reserved for WFA */ in hs20_send_wnm_notification() 132 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in hs20_send_wnm_notification() 133 wpabuf_put_u8(buf, 5 + len); in hs20_send_wnm_notification() 135 wpabuf_put_u8(buf, HS20_WNM_SUB_REM_NEEDED); in hs20_send_wnm_notification() 137 wpabuf_put_u8(buf, len - 1); in hs20_send_wnm_notification() 139 wpabuf_put_u8(buf, osu_method); in hs20_send_wnm_notification() 142 wpabuf_put_u8(buf, 0); in hs20_send_wnm_notification() [all …]
|
D | rrm.c | 217 wpabuf_put_u8(buf, WLAN_ACTION_RADIO_MEASUREMENT); in hostapd_send_nei_report_resp() 218 wpabuf_put_u8(buf, WLAN_RRM_NEIGHBOR_REPORT_RESPONSE); in hostapd_send_nei_report_resp() 219 wpabuf_put_u8(buf, dialog_token); in hostapd_send_nei_report_resp() 243 wpabuf_put_u8(buf, WLAN_EID_NEIGHBOR_REPORT); in hostapd_send_nei_report_resp() 244 wpabuf_put_u8(buf, len - 2); in hostapd_send_nei_report_resp() 248 wpabuf_put_u8(buf, WLAN_EID_MEASURE_REPORT); in hostapd_send_nei_report_resp() 249 wpabuf_put_u8(buf, wpabuf_len(nr->lci)); in hostapd_send_nei_report_resp() 260 wpabuf_put_u8(buf, WLAN_EID_MEASURE_REPORT); in hostapd_send_nei_report_resp() 261 wpabuf_put_u8(buf, wpabuf_len(nr->civic)); in hostapd_send_nei_report_resp() 403 wpabuf_put_u8(buf, WLAN_ACTION_RADIO_MEASUREMENT); in hostapd_send_lci_req() [all …]
|
D | gas_serv.c | 27 wpabuf_put_u8(buf, WLAN_EID_ADV_PROTO); in gas_serv_write_dpp_adv_proto() 28 wpabuf_put_u8(buf, 8); /* Length */ in gas_serv_write_dpp_adv_proto() 29 wpabuf_put_u8(buf, 0x7f); in gas_serv_write_dpp_adv_proto() 30 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in gas_serv_write_dpp_adv_proto() 31 wpabuf_put_u8(buf, 5); in gas_serv_write_dpp_adv_proto() 33 wpabuf_put_u8(buf, DPP_OUI_TYPE); in gas_serv_write_dpp_adv_proto() 34 wpabuf_put_u8(buf, 0x01); in gas_serv_write_dpp_adv_proto() 168 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); in anqp_add_hs_capab_list() 169 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST); in anqp_add_hs_capab_list() 170 wpabuf_put_u8(buf, 0); /* Reserved */ in anqp_add_hs_capab_list() [all …]
|
D | neighbor_db.c | 237 wpabuf_put_u8(nr, op_class); in hostapd_neighbor_set_own_report() 238 wpabuf_put_u8(nr, channel); in hostapd_neighbor_set_own_report() 239 wpabuf_put_u8(nr, ieee80211_get_phy_type(hapd->iface->freq, ht, vht)); in hostapd_neighbor_set_own_report() 246 wpabuf_put_u8(nr, WNM_NEIGHBOR_WIDE_BW_CHAN); in hostapd_neighbor_set_own_report() 247 wpabuf_put_u8(nr, 3); in hostapd_neighbor_set_own_report() 248 wpabuf_put_u8(nr, width); in hostapd_neighbor_set_own_report() 249 wpabuf_put_u8(nr, center_freq1_idx); in hostapd_neighbor_set_own_report() 250 wpabuf_put_u8(nr, center_freq2_idx); in hostapd_neighbor_set_own_report()
|
D | fils_hlp.c | 123 wpabuf_put_u8(sta->hlp_dhcp_discover, DHCP_OPT_REQUESTED_IP_ADDRESS); in fils_dhcp_request() 124 wpabuf_put_u8(sta->hlp_dhcp_discover, 4); in fils_dhcp_request() 126 wpabuf_put_u8(sta->hlp_dhcp_discover, DHCP_OPT_END); in fils_dhcp_request() 279 wpabuf_put_u8(resp, DHCP_OPT_RAPID_COMMIT); in fils_dhcp_handler() 280 wpabuf_put_u8(resp, 0); in fils_dhcp_handler() 294 wpabuf_put_u8(sta->fils_hlp_resp, WLAN_EID_EXTENSION); /* Element ID */ in fils_dhcp_handler() 299 wpabuf_put_u8(sta->fils_hlp_resp, len); /* Length */ in fils_dhcp_handler() 301 wpabuf_put_u8(sta->fils_hlp_resp, WLAN_EID_EXT_FILS_HLP_CONTAINER); in fils_dhcp_handler() 309 wpabuf_put_u8(sta->fils_hlp_resp, WLAN_EID_FRAGMENT); in fils_dhcp_handler() 311 wpabuf_put_u8(sta->fils_hlp_resp, len); in fils_dhcp_handler()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | mbo.c | 91 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].oper_class); in wpas_mbo_non_pref_chan_attr_body() 94 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[i].chan); in wpas_mbo_non_pref_chan_attr_body() 96 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].preference); in wpas_mbo_non_pref_chan_attr_body() 97 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].reason); in wpas_mbo_non_pref_chan_attr_body() 103 wpabuf_put_u8(mbo, MBO_ATTR_ID_NON_PREF_CHAN_REPORT); in wpas_mbo_non_pref_chan_attr_hdr() 104 wpabuf_put_u8(mbo, size); /* Length */ in wpas_mbo_non_pref_chan_attr_hdr() 123 wpabuf_put_u8(mbo, WLAN_EID_VENDOR_SPECIFIC); in wpas_mbo_non_pref_chan_subelem_hdr() 124 wpabuf_put_u8(mbo, len); /* Length */ in wpas_mbo_non_pref_chan_subelem_hdr() 126 wpabuf_put_u8(mbo, MBO_ATTR_ID_NON_PREF_CHAN_REPORT); in wpas_mbo_non_pref_chan_subelem_hdr() 207 wpabuf_put_u8(mbo, MBO_ATTR_ID_CELL_DATA_CAPA); in wpas_mbo_ie() [all …]
|
D | p2p_supplicant_sd.c | 193 wpabuf_put_u8(resp, srv_proto); in wpas_sd_add_empty() 194 wpabuf_put_u8(resp, srv_trans_id); in wpas_sd_add_empty() 196 wpabuf_put_u8(resp, status); in wpas_sd_add_empty() 245 wpabuf_put_u8(resp, P2P_SERV_BONJOUR); in wpas_sd_all_bonjour() 246 wpabuf_put_u8(resp, srv_trans_id); in wpas_sd_all_bonjour() 248 wpabuf_put_u8(resp, P2P_SD_SUCCESS); in wpas_sd_all_bonjour() 323 wpabuf_put_u8(resp, P2P_SERV_BONJOUR); in wpas_sd_req_bonjour() 324 wpabuf_put_u8(resp, srv_trans_id); in wpas_sd_req_bonjour() 327 wpabuf_put_u8(resp, P2P_SD_SUCCESS); in wpas_sd_req_bonjour() 347 wpabuf_put_u8(resp, P2P_SERV_BONJOUR); in wpas_sd_req_bonjour() [all …]
|
D | rrm.c | 184 wpabuf_put_u8(buf, WLAN_ACTION_RADIO_MEASUREMENT); in wpas_rrm_send_neighbor_rep_request() 185 wpabuf_put_u8(buf, WLAN_RRM_NEIGHBOR_REPORT_REQUEST); in wpas_rrm_send_neighbor_rep_request() 186 wpabuf_put_u8(buf, wpa_s->rrm.next_neighbor_rep_token); in wpas_rrm_send_neighbor_rep_request() 188 wpabuf_put_u8(buf, WLAN_EID_SSID); in wpas_rrm_send_neighbor_rep_request() 189 wpabuf_put_u8(buf, ssid->ssid_len); in wpas_rrm_send_neighbor_rep_request() 195 wpabuf_put_u8(buf, WLAN_EID_MEASURE_REQUEST); in wpas_rrm_send_neighbor_rep_request() 196 wpabuf_put_u8(buf, MEASURE_REQUEST_LCI_LEN); in wpas_rrm_send_neighbor_rep_request() 202 wpabuf_put_u8(buf, 1); /* Measurement Token */ in wpas_rrm_send_neighbor_rep_request() 208 wpabuf_put_u8(buf, 0); /* Measurement Request Mode */ in wpas_rrm_send_neighbor_rep_request() 209 wpabuf_put_u8(buf, MEASURE_TYPE_LCI); /* Measurement Type */ in wpas_rrm_send_neighbor_rep_request() [all …]
|
D | mesh_mpm.c | 261 wpabuf_put_u8(buf, WLAN_ACTION_SELF_PROTECTED); in mesh_mpm_send_plink_action() 262 wpabuf_put_u8(buf, type); in mesh_mpm_send_plink_action() 283 wpabuf_put_u8(buf, WLAN_EID_MESH_ID); in mesh_mpm_send_plink_action() 284 wpabuf_put_u8(buf, conf->meshid_len); in mesh_mpm_send_plink_action() 288 wpabuf_put_u8(buf, WLAN_EID_MESH_CONFIG); in mesh_mpm_send_plink_action() 289 wpabuf_put_u8(buf, 7); in mesh_mpm_send_plink_action() 290 wpabuf_put_u8(buf, conf->mesh_pp_id); in mesh_mpm_send_plink_action() 291 wpabuf_put_u8(buf, conf->mesh_pm_id); in mesh_mpm_send_plink_action() 292 wpabuf_put_u8(buf, conf->mesh_cc_id); in mesh_mpm_send_plink_action() 293 wpabuf_put_u8(buf, conf->mesh_sp_id); in mesh_mpm_send_plink_action() [all …]
|
D | wnm_sta.c | 885 wpabuf_put_u8(*buf, WLAN_EID_NEIGHBOR_REPORT); in wnm_add_nei_rep() 887 wpabuf_put_u8(*buf, 16); in wnm_add_nei_rep() 890 wpabuf_put_u8(*buf, op_class); in wnm_add_nei_rep() 891 wpabuf_put_u8(*buf, chan); in wnm_add_nei_rep() 892 wpabuf_put_u8(*buf, phy_type); in wnm_add_nei_rep() 893 wpabuf_put_u8(*buf, WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE); in wnm_add_nei_rep() 894 wpabuf_put_u8(*buf, 1); in wnm_add_nei_rep() 895 wpabuf_put_u8(*buf, pref); in wnm_add_nei_rep() 1026 wpabuf_put_u8(buf, WLAN_ACTION_WNM); in wnm_send_bss_transition_mgmt_resp() 1027 wpabuf_put_u8(buf, WNM_BSS_TRANS_MGMT_RESP); in wnm_send_bss_transition_mgmt_resp() [all …]
|
D | hs20_supplicant.c | 118 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in wpas_hs20_add_indication() 119 wpabuf_put_u8(buf, pps_mo_id >= 0 ? 7 : 5); in wpas_hs20_add_indication() 121 wpabuf_put_u8(buf, HS20_INDICATION_OUI_TYPE); in wpas_hs20_add_indication() 125 wpabuf_put_u8(buf, conf); in wpas_hs20_add_indication() 138 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in wpas_hs20_add_roam_cons_sel() 139 wpabuf_put_u8(buf, 4 + ssid->roaming_consortium_selection_len); in wpas_hs20_add_roam_cons_sel() 141 wpabuf_put_u8(buf, HS20_ROAMING_CONS_SEL_OUI_TYPE); in wpas_hs20_add_roam_cons_sel() 223 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); in hs20_put_anqp_req() 225 wpabuf_put_u8(buf, HS20_STYPE_NAI_HOME_REALM_QUERY); in hs20_put_anqp_req() 226 wpabuf_put_u8(buf, 0); /* Reserved */ in hs20_put_anqp_req() [all …]
|
D | wmm_ac.c | 189 wpabuf_put_u8(buf, WLAN_ACTION_WMM); in wmm_ac_send_addts_request() 190 wpabuf_put_u8(buf, WMM_ACTION_CODE_ADDTS_REQ); in wmm_ac_send_addts_request() 191 wpabuf_put_u8(buf, req->dialog_token); in wmm_ac_send_addts_request() 192 wpabuf_put_u8(buf, 0); /* status code */ in wmm_ac_send_addts_request() 223 wpabuf_put_u8(buf, WLAN_ACTION_WMM); in wmm_ac_send_delts() 224 wpabuf_put_u8(buf, WMM_ACTION_CODE_DELTS); in wmm_ac_send_delts() 225 wpabuf_put_u8(buf, 0); /* Dialog Token (not used) */ in wmm_ac_send_delts() 226 wpabuf_put_u8(buf, 0); /* Status Code (not used) */ in wmm_ac_send_delts()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_build.c | 102 wpabuf_put_u8(msg, type); in wps_build_req_type() 112 wpabuf_put_u8(msg, type); in wps_build_resp_type() 201 wpabuf_put_u8(msg, 0x10); in wps_build_version() 226 wpabuf_put_u8(msg, WFA_ELEM_VERSION2); in wps_build_wfa_ext() 227 wpabuf_put_u8(msg, 1); in wps_build_wfa_ext() 228 wpabuf_put_u8(msg, WPS_VERSION); in wps_build_wfa_ext() 232 wpabuf_put_u8(msg, WFA_ELEM_REQUEST_TO_ENROLL); in wps_build_wfa_ext() 233 wpabuf_put_u8(msg, 1); in wps_build_wfa_ext() 234 wpabuf_put_u8(msg, 1); in wps_build_wfa_ext() 241 wpabuf_put_u8(msg, WFA_ELEM_AUTHORIZEDMACS); in wps_build_wfa_ext() [all …]
|
D | ndef.c | 137 wpabuf_put_u8(record, local_flag); in ndef_build_record() 139 wpabuf_put_u8(record, type_length); in ndef_build_record() 142 wpabuf_put_u8(record, payload_length); in ndef_build_record() 147 wpabuf_put_u8(record, id_length); in ndef_build_record()
|
D | wps_dev_attr.c | 30 wpabuf_put_u8(msg, ' '); in wps_build_manufacturer() 54 wpabuf_put_u8(msg, ' '); in wps_build_model_name() 78 wpabuf_put_u8(msg, ' '); in wps_build_model_number() 102 wpabuf_put_u8(msg, ' '); in wps_build_serial_number() 172 wpabuf_put_u8(msg, ' '); in wps_build_dev_name()
|
/external/wpa_supplicant_8/src/common/ |
D | gas.c | 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); in gas_build_req() 27 wpabuf_put_u8(buf, action); in gas_build_req() 28 wpabuf_put_u8(buf, dialog_token); in gas_build_req() 57 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); in gas_build_resp() 58 wpabuf_put_u8(buf, action); in gas_build_resp() 59 wpabuf_put_u8(buf, dialog_token); in gas_build_resp() 62 wpabuf_put_u8(buf, frag_id | (more ? 0x80 : 0)); in gas_build_resp() 103 wpabuf_put_u8(buf, WLAN_EID_ADV_PROTO); in gas_add_adv_proto_anqp() 104 wpabuf_put_u8(buf, 2); /* Length */ in gas_add_adv_proto_anqp() 105 wpabuf_put_u8(buf, (query_resp_len_limit & 0x7f) | in gas_add_adv_proto_anqp() [all …]
|
D | gas_server.c | 130 wpabuf_put_u8(resp, WLAN_EID_ADV_PROTO); in gas_server_send_resp() 131 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */ in gas_server_send_resp() 132 wpabuf_put_u8(resp, 0x7f); in gas_server_send_resp() 269 wpabuf_put_u8(resp, WLAN_EID_ADV_PROTO); in gas_server_handle_rx_comeback_req() 270 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */ in gas_server_handle_rx_comeback_req() 271 wpabuf_put_u8(resp, 0x7f); in gas_server_handle_rx_comeback_req()
|
D | common_module_tests.c | 241 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); in gas_tests() 242 wpabuf_put_u8(buf, WLAN_PA_GAS_INITIAL_REQ); in gas_tests() 243 wpabuf_put_u8(buf, 0); in gas_tests() 245 wpabuf_put_u8(buf, 0); in gas_tests()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_eke.c | 126 wpabuf_put_u8(msg, eke_exch); in eap_eke_build_msg() 194 wpabuf_put_u8(msg, 4); /* NumProposals */ in eap_eke_build_identity() 195 wpabuf_put_u8(msg, 0); /* Reserved */ in eap_eke_build_identity() 198 wpabuf_put_u8(msg, EAP_EKE_DHGROUP_EKE_16); /* Group Description */ in eap_eke_build_identity() 199 wpabuf_put_u8(msg, EAP_EKE_ENCR_AES128_CBC); /* Encryption */ in eap_eke_build_identity() 200 wpabuf_put_u8(msg, EAP_EKE_PRF_HMAC_SHA2_256); /* PRF */ in eap_eke_build_identity() 201 wpabuf_put_u8(msg, EAP_EKE_MAC_HMAC_SHA2_256); /* MAC */ in eap_eke_build_identity() 204 wpabuf_put_u8(msg, EAP_EKE_DHGROUP_EKE_15); /* Group Description */ in eap_eke_build_identity() 205 wpabuf_put_u8(msg, EAP_EKE_ENCR_AES128_CBC); /* Encryption */ in eap_eke_build_identity() 206 wpabuf_put_u8(msg, EAP_EKE_PRF_HMAC_SHA2_256); /* PRF */ in eap_eke_build_identity() [all …]
|
D | eap_server_mschapv2.c | 127 wpabuf_put_u8(req, CHALLENGE_LEN); in eap_mschapv2_build_challenge() 166 wpabuf_put_u8(req, 'S'); in eap_mschapv2_build_success_req() 167 wpabuf_put_u8(req, '='); in eap_mschapv2_build_success_req() 172 wpabuf_put_u8(req, ' '); in eap_mschapv2_build_success_req() 173 wpabuf_put_u8(req, 'M'); in eap_mschapv2_build_success_req() 174 wpabuf_put_u8(req, '='); in eap_mschapv2_build_success_req()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_wsc_common.c | 29 wpabuf_put_u8(msg, WSC_FRAG_ACK); /* Op-Code */ in eap_wsc_build_frag_ack() 30 wpabuf_put_u8(msg, 0); /* Flags */ in eap_wsc_build_frag_ack()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_leap.c | 114 wpabuf_put_u8(resp, LEAP_VERSION); in eap_leap_process_request() 115 wpabuf_put_u8(resp, 0); /* unused */ in eap_leap_process_request() 116 wpabuf_put_u8(resp, LEAP_RESPONSE_LEN); in eap_leap_process_request() 165 wpabuf_put_u8(resp, LEAP_VERSION); in eap_leap_process_success() 166 wpabuf_put_u8(resp, 0); /* unused */ in eap_leap_process_success() 167 wpabuf_put_u8(resp, LEAP_CHALLENGE_LEN); in eap_leap_process_success()
|
D | tncc.c | 1209 wpabuf_put_u8(buf, 0x01); /* Intent Flag - Request */ in tncc_build_soh() 1210 wpabuf_put_u8(buf, 0x00); /* Content-Type Flag */ in tncc_build_soh() 1224 wpabuf_put_u8(buf, SSOH_MS_PACKET_INFO); in tncc_build_soh() 1231 wpabuf_put_u8(buf, 0x11); /* r=request, vers=1 */ in tncc_build_soh() 1235 wpabuf_put_u8(buf, SSOH_MS_MACHINE_INVENTORY); in tncc_build_soh() 1244 wpabuf_put_u8(buf, SSOH_MS_MACHINENAME); in tncc_build_soh() 1249 wpabuf_put_u8(buf, SSOH_MS_CORRELATIONID); in tncc_build_soh() 1253 wpabuf_put_u8(buf, SSOH_MS_QUARANTINE_STATE); in tncc_build_soh() 1258 wpabuf_put_u8(buf, 0); /* null termination for the url */ in tncc_build_soh() 1261 wpabuf_put_u8(buf, SSOH_MS_MACHINE_INVENTORY_EX); in tncc_build_soh() [all …]
|