Home
last modified time | relevance | path

Searched refs:wpabuf_put_u8 (Results 1 – 25 of 90) sorted by relevance

1234

/netbsd/external/bsd/wpa/dist/src/p2p/
H A Dp2p_build.c24 wpabuf_put_u8(buf, dialog_token); in p2p_buf_add_action_hdr()
37 wpabuf_put_u8(buf, dialog_token); in p2p_buf_add_public_action_hdr()
79 wpabuf_put_u8(buf, go_intent); in p2p_buf_add_go_intent()
145 wpabuf_put_u8(buf, op_class); in p2p_buf_add_pref_channel_list()
146 wpabuf_put_u8(buf, op_channel); in p2p_buf_add_pref_channel_list()
181 wpabuf_put_u8(buf, status); in p2p_buf_add_status()
309 wpabuf_put_u8(buf, flags); in p2p_buf_add_invitation_flags()
332 wpabuf_put_u8(buf, noa_index); in p2p_buf_add_noa()
365 wpabuf_put_u8(buf, 1); in p2p_buf_add_p2p_interface()
547 wpabuf_put_u8(buf, svc_len); in p2p_buf_add_service_info()
[all …]
H A Dp2p_group.c169 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()
/netbsd/external/bsd/wpa/dist/src/ap/
H A Dhs20.c126 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()
133 wpabuf_put_u8(buf, 5 + len); 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()
168 wpabuf_put_u8(buf, WLAN_ACTION_WNM); in hs20_send_wnm_notification_deauth_req()
213 wpabuf_put_u8(buf, WLAN_ACTION_WNM); in hs20_send_wnm_notification_t_c()
220 wpabuf_put_u8(buf, 4 + 1 + url_len); in hs20_send_wnm_notification_t_c()
[all …]
H A Drrm.c219 wpabuf_put_u8(buf, dialog_token); in hostapd_send_nei_report_resp()
244 wpabuf_put_u8(buf, len - 2); in hostapd_send_nei_report_resp()
249 wpabuf_put_u8(buf, wpabuf_len(nr->lci)); in hostapd_send_nei_report_resp()
261 wpabuf_put_u8(buf, wpabuf_len(nr->civic)); in hostapd_send_nei_report_resp()
405 wpabuf_put_u8(buf, hapd->lci_req_token); in hostapd_send_lci_req()
409 wpabuf_put_u8(buf, 3 + 1 + 4); in hostapd_send_lci_req()
416 wpabuf_put_u8(buf, 0); in hostapd_send_lci_req()
417 wpabuf_put_u8(buf, MEASURE_TYPE_LCI); in hostapd_send_lci_req()
422 wpabuf_put_u8(buf, 2); in hostapd_send_lci_req()
537 wpabuf_put_u8(buf, wpabuf_len(nr->nr)); in hostapd_send_range_req()
[all …]
H A Dgas_serv.c29 wpabuf_put_u8(buf, 0x7f); 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()
421 wpabuf_put_u8(buf, 1); in anqp_add_nai_realm_eap()
562 wpabuf_put_u8(buf, ';'); in anqp_add_nai_realm()
757 wpabuf_put_u8(buf, 0); in anqp_add_osu_provider()
776 wpabuf_put_u8(buf, 0); in anqp_add_osu_provider()
830 wpabuf_put_u8(buf, 0); in anqp_add_osu_provider_nai()
892 wpabuf_put_u8(buf, 0); in anqp_add_icon_binary_file()
[all …]
H A Dneighbor_db.c242 wpabuf_put_u8(nr, op_class); in hostapd_neighbor_set_own_report()
243 wpabuf_put_u8(nr, channel); in hostapd_neighbor_set_own_report()
244 wpabuf_put_u8(nr, ieee80211_get_phy_type(hapd->iface->freq, ht, vht)); in hostapd_neighbor_set_own_report()
251 wpabuf_put_u8(nr, WNM_NEIGHBOR_WIDE_BW_CHAN); in hostapd_neighbor_set_own_report()
252 wpabuf_put_u8(nr, 3); in hostapd_neighbor_set_own_report()
253 wpabuf_put_u8(nr, width); in hostapd_neighbor_set_own_report()
254 wpabuf_put_u8(nr, center_freq1_idx); in hostapd_neighbor_set_own_report()
255 wpabuf_put_u8(nr, center_freq2_idx); in hostapd_neighbor_set_own_report()
H A Dfils_hlp.c123 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()
/netbsd/external/bsd/wpa/dist/wpa_supplicant/
H A Dmbo.c104 wpabuf_put_u8(mbo, size); /* Length */ in wpas_mbo_non_pref_chan_attr_hdr()
124 wpabuf_put_u8(mbo, len); /* Length */ in wpas_mbo_non_pref_chan_subelem_hdr()
208 wpabuf_put_u8(mbo, 1); in wpas_mbo_ie()
214 wpabuf_put_u8(mbo, 1); in wpas_mbo_ie()
215 wpabuf_put_u8(mbo, OCE_RELEASE); in wpas_mbo_ie()
246 wpabuf_put_u8(buf, WLAN_ACTION_WNM); in wpas_mbo_send_wnm_notification()
420 wpabuf_put_u8(ie, MBO_OUI_TYPE); in wpas_mbo_scan_ie()
423 wpabuf_put_u8(ie, 1); in wpas_mbo_scan_ie()
427 wpabuf_put_u8(ie, 1); in wpas_mbo_scan_ie()
428 wpabuf_put_u8(ie, OCE_RELEASE); in wpas_mbo_scan_ie()
[all …]
H A Dp2p_supplicant_sd.c193 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()
246 wpabuf_put_u8(resp, srv_trans_id); in wpas_sd_all_bonjour()
426 wpabuf_put_u8(resp, srv_trans_id); in wpas_sd_req_upnp()
450 wpabuf_put_u8(resp, version); in wpas_sd_req_upnp()
452 wpabuf_put_u8(resp, ','); in wpas_sd_req_upnp()
649 wpabuf_put_u8(resp, (u8) len); in wpas_sd_req_asp()
979 wpabuf_put_u8(tlvs, version); in wpas_p2p_sd_request_upnp()
1045 wpabuf_put_u8(tlvs, role); in wfd_add_sd_req_role()
[all …]
H A Drrm.c188 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()
196 wpabuf_put_u8(buf, MEASURE_REQUEST_LCI_LEN); in wpas_rrm_send_neighbor_rep_request()
213 wpabuf_put_u8(buf, LOCATION_SUBJECT_REMOTE); in wpas_rrm_send_neighbor_rep_request()
223 wpabuf_put_u8(buf, 2); in wpas_rrm_send_neighbor_rep_request()
252 wpabuf_put_u8(buf, 0); in wpas_rrm_send_neighbor_rep_request()
288 wpabuf_put_u8(*buf, 3 + data_len); in wpas_rrm_report_elem()
289 wpabuf_put_u8(*buf, token); in wpas_rrm_report_elem()
290 wpabuf_put_u8(*buf, mode); in wpas_rrm_report_elem()
291 wpabuf_put_u8(*buf, type); in wpas_rrm_report_elem()
[all …]
H A Dmesh_mpm.c272 wpabuf_put_u8(buf, type); in mesh_mpm_send_plink_action()
293 wpabuf_put_u8(buf, WLAN_EID_MESH_ID); in mesh_mpm_send_plink_action()
294 wpabuf_put_u8(buf, conf->meshid_len); in mesh_mpm_send_plink_action()
299 wpabuf_put_u8(buf, 7); in mesh_mpm_send_plink_action()
300 wpabuf_put_u8(buf, conf->mesh_pp_id); in mesh_mpm_send_plink_action()
301 wpabuf_put_u8(buf, conf->mesh_pm_id); in mesh_mpm_send_plink_action()
302 wpabuf_put_u8(buf, conf->mesh_cc_id); in mesh_mpm_send_plink_action()
303 wpabuf_put_u8(buf, conf->mesh_sp_id); in mesh_mpm_send_plink_action()
307 wpabuf_put_u8(buf, info); in mesh_mpm_send_plink_action()
313 wpabuf_put_u8(buf, WLAN_EID_MESH_ID); in mesh_mpm_send_plink_action()
[all …]
H A Dwnm_sta.c888 wpabuf_put_u8(*buf, 16); in wnm_add_nei_rep()
891 wpabuf_put_u8(*buf, op_class); in wnm_add_nei_rep()
892 wpabuf_put_u8(*buf, chan); in wnm_add_nei_rep()
893 wpabuf_put_u8(*buf, phy_type); in wnm_add_nei_rep()
895 wpabuf_put_u8(*buf, 1); in wnm_add_nei_rep()
896 wpabuf_put_u8(*buf, pref); in wnm_add_nei_rep()
1029 wpabuf_put_u8(buf, dialog_token); in wnm_send_bss_transition_mgmt_resp()
1030 wpabuf_put_u8(buf, status); in wnm_send_bss_transition_mgmt_resp()
1031 wpabuf_put_u8(buf, delay); in wnm_send_bss_transition_mgmt_resp()
1601 wpabuf_put_u8(buf, 1); in wnm_send_bss_transition_mgmt_query()
[all …]
H A Dhs20_supplicant.c117 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in wpas_hs20_add_indication()
118 wpabuf_put_u8(buf, pps_mo_id >= 0 ? 7 : 5); in wpas_hs20_add_indication()
120 wpabuf_put_u8(buf, HS20_INDICATION_OUI_TYPE); in wpas_hs20_add_indication()
124 wpabuf_put_u8(buf, conf); in wpas_hs20_add_indication()
137 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in wpas_hs20_add_roam_cons_sel()
222 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); in hs20_put_anqp_req()
225 wpabuf_put_u8(buf, 0); /* Reserved */ in hs20_put_anqp_req()
230 wpabuf_put_u8(buf, 0); /* Reserved */ in hs20_put_anqp_req()
235 wpabuf_put_u8(buf, HS20_STYPE_QUERY_LIST); in hs20_put_anqp_req()
236 wpabuf_put_u8(buf, 0); /* Reserved */ in hs20_put_anqp_req()
[all …]
H A Dwmm_ac.c189 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()
/netbsd/external/bsd/wpa/dist/src/wps/
H A Dwps_attr_build.c102 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()
227 wpabuf_put_u8(msg, 1); in wps_build_wfa_ext()
228 wpabuf_put_u8(msg, WPS_VERSION); 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()
267 wpabuf_put_u8(msg, 42); in wps_build_wfa_ext()
279 wpabuf_put_u8(msg, msg_type); in wps_build_msg_type()
354 wpabuf_put_u8(msg, WPS_CONN_ESS); in wps_build_conn_type_flags()
[all …]
H A Dndef.c137 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()
H A Dwps_dev_attr.c30 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()
/netbsd/external/bsd/wpa/dist/src/common/
H A Dgas.c26 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 …]
H A Dgas_server.c130 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()
H A Dcommon_module_tests.c241 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()
/netbsd/external/bsd/wpa/dist/src/eap_server/
H A Deap_server_eke.c126 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()
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()
206 wpabuf_put_u8(msg, EAP_EKE_PRF_HMAC_SHA2_256); /* PRF */ in eap_eke_build_identity()
207 wpabuf_put_u8(msg, EAP_EKE_MAC_HMAC_SHA2_256); /* MAC */ in eap_eke_build_identity()
212 wpabuf_put_u8(msg, EAP_EKE_PRF_HMAC_SHA2_256); /* PRF */ in eap_eke_build_identity()
221 wpabuf_put_u8(msg, EAP_EKE_PRF_HMAC_SHA1); /* PRF */ in eap_eke_build_identity()
222 wpabuf_put_u8(msg, EAP_EKE_MAC_HMAC_SHA1); /* MAC */ in eap_eke_build_identity()
[all …]
H A Deap_server_mschapv2.c127 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()
/netbsd/external/bsd/wpa/dist/src/eap_peer/
H A Deap_leap.c114 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()
H A Dtncc.c1209 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 …]
/netbsd/external/bsd/wpa/dist/src/eap_common/
H A Deap_wsc_common.c29 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()

1234