Home
last modified time | relevance | path

Searched refs:wpabuf_put_le16 (Results 1 – 25 of 36) sorted by relevance

12

/hostap-latest/src/common/
Ddpp_reconfig.c27 wpabuf_put_le16(msg, DPP_ATTR_C_SIGN_KEY_HASH); in dpp_build_attr_csign_key_hash()
28 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_csign_key_hash()
106 wpabuf_put_le16(msg, DPP_ATTR_FINITE_CYCLIC_GROUP); in dpp_build_reconfig_announcement()
107 wpabuf_put_le16(msg, 2); in dpp_build_reconfig_announcement()
108 wpabuf_put_le16(msg, own_curve->ike_group); in dpp_build_reconfig_announcement()
111 wpabuf_put_le16(msg, DPP_ATTR_A_NONCE); in dpp_build_reconfig_announcement()
112 wpabuf_put_le16(msg, wpabuf_len(a_nonce)); in dpp_build_reconfig_announcement()
116 wpabuf_put_le16(msg, DPP_ATTR_E_PRIME_ID); in dpp_build_reconfig_announcement()
117 wpabuf_put_le16(msg, wpabuf_len(e_id)); in dpp_build_reconfig_announcement()
144 wpabuf_put_le16(msg, DPP_ATTR_TRANSACTION_ID); in dpp_reconfig_build_req()
[all …]
Ddpp_pkex.c95 wpabuf_put_le16(msg, DPP_ATTR_PROTOCOL_VERSION); in dpp_pkex_build_exchange_req()
96 wpabuf_put_le16(msg, 1); in dpp_pkex_build_exchange_req()
109 wpabuf_put_le16(msg, DPP_ATTR_FINITE_CYCLIC_GROUP); in dpp_pkex_build_exchange_req()
110 wpabuf_put_le16(msg, 2); in dpp_pkex_build_exchange_req()
111 wpabuf_put_le16(msg, curve->ike_group); in dpp_pkex_build_exchange_req()
119 wpabuf_put_le16(msg, DPP_ATTR_CODE_IDENTIFIER); in dpp_pkex_build_exchange_req()
120 wpabuf_put_le16(msg, os_strlen(pkex->identifier)); in dpp_pkex_build_exchange_req()
132 wpabuf_put_le16(msg, DPP_ATTR_ENCRYPTED_KEY); in dpp_pkex_build_exchange_req()
133 wpabuf_put_le16(msg, 2 * curve->prime_len); in dpp_pkex_build_exchange_req()
260 wpabuf_put_le16(msg, DPP_ATTR_PROTOCOL_VERSION); in dpp_pkex_build_exchange_resp()
[all …]
Ddpp.c509 wpabuf_put_le16(msg, DPP_ATTR_STATUS); in dpp_build_attr_status()
510 wpabuf_put_le16(msg, 1); in dpp_build_attr_status()
519 wpabuf_put_le16(msg, DPP_ATTR_R_BOOTSTRAP_KEY_HASH); in dpp_build_attr_r_bootstrap_key_hash()
520 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_r_bootstrap_key_hash()
837 wpabuf_put_le16(clear, DPP_ATTR_ENROLLEE_NONCE); in dpp_build_conf_req_attr()
838 wpabuf_put_le16(clear, nonce_len - 1); in dpp_build_conf_req_attr()
849 wpabuf_put_le16(clear, DPP_ATTR_ENROLLEE_NONCE); in dpp_build_conf_req_attr()
850 wpabuf_put_le16(clear, nonce_len); in dpp_build_conf_req_attr()
864 wpabuf_put_le16(clear, DPP_ATTR_I_PROTOCOL_KEY); in dpp_build_conf_req_attr()
865 wpabuf_put_le16(clear, wpabuf_len(pe)); in dpp_build_conf_req_attr()
[all …]
Ddpp_auth.c35 wpabuf_put_le16(msg, DPP_ATTR_I_BOOTSTRAP_KEY_HASH); in dpp_build_attr_i_bootstrap_key_hash()
36 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_i_bootstrap_key_hash()
100 wpabuf_put_le16(msg, DPP_ATTR_I_PROTOCOL_KEY); in dpp_auth_build_req()
101 wpabuf_put_le16(msg, wpabuf_len(pi)); in dpp_auth_build_req()
118 wpabuf_put_le16(msg, DPP_ATTR_CHANNEL); in dpp_auth_build_req()
119 wpabuf_put_le16(msg, 2); in dpp_auth_build_req()
127 wpabuf_put_le16(msg, DPP_ATTR_PROTOCOL_VERSION); in dpp_auth_build_req()
128 wpabuf_put_le16(msg, 1); in dpp_auth_build_req()
214 wpabuf_put_le16(msg, DPP_ATTR_WRAPPED_DATA); in dpp_auth_build_req()
215 wpabuf_put_le16(msg, siv_len); in dpp_auth_build_req()
[all …]
Dgas.c60 wpabuf_put_le16(buf, status_code); in gas_build_resp()
63 wpabuf_put_le16(buf, comeback_delay); in gas_build_resp()
257 wpabuf_put_le16(buf, info_id); in gas_anqp_add_element()
Dnan_de.c234 wpabuf_put_le16(buf, sda_len); in nan_de_tx_sdf()
243 wpabuf_put_le16(buf, sdea_len); in nan_de_tx_sdf()
251 wpabuf_put_le16(buf, sdea_ctrl); in nan_de_tx_sdf()
253 wpabuf_put_le16(buf, 4 + wpabuf_len(ssi)); in nan_de_tx_sdf()
263 wpabuf_put_le16(buf, 1 + wpabuf_len(srv->elems)); in nan_de_tx_sdf()
897 wpabuf_put_le16(buf, sda_len); in nan_de_rx_subscribe()
907 wpabuf_put_le16(buf, sdea_len); in nan_de_rx_subscribe()
915 wpabuf_put_le16(buf, sdea_ctrl); in nan_de_rx_subscribe()
917 wpabuf_put_le16(buf, 4 + wpabuf_len(srv->ssi)); in nan_de_rx_subscribe()
927 wpabuf_put_le16(buf, 1 + wpabuf_len(srv->elems)); in nan_de_rx_subscribe()
Dgas_server.c141 wpabuf_put_le16(resp, resp_frag_len); in gas_server_send_resp()
298 wpabuf_put_le16(resp, 0); in gas_server_handle_rx_comeback_req()
331 wpabuf_put_le16(resp, resp_frag_len); in gas_server_handle_rx_comeback_req()
Ddpp_tcp.c1322 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in dpp_tcp_send_comeback_delay()
1325 wpabuf_put_le16(buf, 500); /* GAS Comeback Delay */ in dpp_tcp_send_comeback_delay()
1328 wpabuf_put_le16(buf, 0); /* Query Response Length */ in dpp_tcp_send_comeback_delay()
1363 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in dpp_tcp_send_gas_resp()
1366 wpabuf_put_le16(buf, 0); /* GAS Comeback Delay */ in dpp_tcp_send_gas_resp()
/hostap-latest/src/p2p/
Dp2p_build.c67 wpabuf_put_le16(buf, 2); in p2p_buf_add_capability()
79 wpabuf_put_le16(buf, 1); in p2p_buf_add_go_intent()
91 wpabuf_put_le16(buf, 5); in p2p_buf_add_listen_channel()
105 wpabuf_put_le16(buf, 5); in p2p_buf_add_operating_channel()
186 wpabuf_put_le16(buf, 1); in p2p_buf_add_status()
255 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_device_id()
266 wpabuf_put_le16(buf, 2); in p2p_buf_add_config_timeout()
278 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_intended_addr()
289 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_group_bssid()
301 wpabuf_put_le16(buf, ETH_ALEN + ssid_len); in p2p_buf_add_group_id()
[all …]
Dp2p_sd.c183 wpabuf_put_le16(buf, update_indic); /* Service Update Indicator */ in p2p_build_sd_query()
230 wpabuf_put_le16(buf, update_indic); in p2p_build_sd_response()
257 wpabuf_put_le16(buf, ANQP_VENDOR_SPECIFIC); /* Info ID */ in p2p_build_gas_comeback_resp()
258 wpabuf_put_le16(buf, 3 + 1 + 2 + total_len); in p2p_build_gas_comeback_resp()
261 wpabuf_put_le16(buf, update_indic); in p2p_build_gas_comeback_resp()
Dp2p_group.c170 wpabuf_put_le16(ie, wpabuf_len(noa)); in p2p_group_add_noa()
424 wpabuf_put_le16(buf, 0); /* Length to be filled */ in p2p_buf_add_group_info()
/hostap-latest/src/ap/
Dgas_serv.c224 wpabuf_put_le16(buf, infoid); in anqp_add_elem()
225 wpabuf_put_le16(buf, wpabuf_len(elem->payload)); in anqp_add_elem()
252 wpabuf_put_le16(buf, ANQP_CAPABILITY_LIST); in anqp_add_capab_list()
254 wpabuf_put_le16(buf, ANQP_VENUE_NAME); in anqp_add_capab_list()
256 wpabuf_put_le16(buf, ANQP_EMERGENCY_CALL_NUMBER); in anqp_add_capab_list()
259 wpabuf_put_le16(buf, ANQP_NETWORK_AUTH_TYPE); in anqp_add_capab_list()
262 wpabuf_put_le16(buf, ANQP_ROAMING_CONSORTIUM); in anqp_add_capab_list()
265 wpabuf_put_le16(buf, ANQP_IP_ADDR_TYPE_AVAILABILITY); in anqp_add_capab_list()
268 wpabuf_put_le16(buf, ANQP_NAI_REALM); in anqp_add_capab_list()
271 wpabuf_put_le16(buf, ANQP_3GPP_CELLULAR_NETWORK); in anqp_add_capab_list()
[all …]
Drrm.c456 wpabuf_put_le16(buf, 0); /* Number of repetitions */ in hostapd_send_lci_req()
473 wpabuf_put_le16(buf, 0xffff); in hostapd_send_lci_req()
543 wpabuf_put_le16(buf, 0); /* Number of Repetitions */ in hostapd_send_range_req()
558 wpabuf_put_le16(buf, random_interval); /* Randomization Interval */ in hostapd_send_range_req()
696 wpabuf_put_le16(buf, 0); /* Number of repetitions */ in hostapd_send_beacon_req()
Dieee802_11_eht.c487 wpabuf_put_le16(buf, control); in hostapd_eid_eht_basic_ml_common()
502 wpabuf_put_le16(buf, hapd->iface->mld_eml_capa); in hostapd_eid_eht_basic_ml_common()
523 wpabuf_put_le16(buf, mld_cap); in hostapd_eid_eht_basic_ml_common()
575 wpabuf_put_le16(buf, control); in hostapd_eid_eht_basic_ml_common()
582 wpabuf_put_le16(buf, link_bss->iconf->beacon_int); in hostapd_eid_eht_basic_ml_common()
825 wpabuf_put_le16(buf, MULTI_LINK_CONTROL_TYPE_BASIC); in hostapd_ml_auth_resp()
Ddpp_hostapd.c1925 wpabuf_put_le16(msg, DPP_ATTR_TRANSACTION_ID); in hostapd_dpp_send_peer_disc_resp()
1926 wpabuf_put_le16(msg, 1); in hostapd_dpp_send_peer_disc_resp()
1942 wpabuf_put_le16(msg, DPP_ATTR_STATUS); in hostapd_dpp_send_peer_disc_resp()
1943 wpabuf_put_le16(msg, 1); in hostapd_dpp_send_peer_disc_resp()
1963 wpabuf_put_le16(msg, DPP_ATTR_CONNECTOR); in hostapd_dpp_send_peer_disc_resp()
1964 wpabuf_put_le16(msg, os_strlen(connector)); in hostapd_dpp_send_peer_disc_resp()
1973 wpabuf_put_le16(msg, DPP_ATTR_CONNECTOR); in hostapd_dpp_send_peer_disc_resp()
1974 wpabuf_put_le16(msg, os_strlen(hapd->conf->dpp_connector)); in hostapd_dpp_send_peer_disc_resp()
2009 wpabuf_put_le16(msg, DPP_ATTR_PROTOCOL_VERSION); in hostapd_dpp_send_peer_disc_resp()
2010 wpabuf_put_le16(msg, 1); in hostapd_dpp_send_peer_disc_resp()
[all …]
Dcomeback_token.c103 wpabuf_put_le16(buf, group); /* Finite Cyclic Group */ in auth_build_token_req()
/hostap-latest/src/pasn/
Dpasn_responder.c190 wpabuf_put_le16(buf, WLAN_AUTH_SAE); in pasn_get_sae_wd()
191 wpabuf_put_le16(buf, 1); in pasn_get_sae_wd()
192 wpabuf_put_le16(buf, WLAN_STATUS_SAE_HASH_TO_ELEMENT); in pasn_get_sae_wd()
201 wpabuf_put_le16(buf, WLAN_AUTH_SAE); in pasn_get_sae_wd()
202 wpabuf_put_le16(buf, 2); in pasn_get_sae_wd()
203 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in pasn_get_sae_wd()
233 wpabuf_put_le16(buf, WLAN_AUTH_FILS_SK); in pasn_get_fils_wd()
236 wpabuf_put_le16(buf, 2); in pasn_get_fils_wd()
239 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in pasn_get_fils_wd()
Dpasn_initiator.c65 wpabuf_put_le16(buf, WLAN_AUTH_SAE); in wpas_pasn_wd_sae_commit()
66 wpabuf_put_le16(buf, 1); in wpas_pasn_wd_sae_commit()
67 wpabuf_put_le16(buf, WLAN_STATUS_SAE_HASH_TO_ELEMENT); in wpas_pasn_wd_sae_commit()
186 wpabuf_put_le16(buf, WLAN_AUTH_SAE); in wpas_pasn_wd_sae_confirm()
187 wpabuf_put_le16(buf, 2); in wpas_pasn_wd_sae_confirm()
188 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in wpas_pasn_wd_sae_confirm()
229 wpabuf_put_le16(buf, WLAN_AUTH_FILS_SK); in wpas_pasn_fils_build_auth()
232 wpabuf_put_le16(buf, 1); in wpas_pasn_fils_build_auth()
235 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in wpas_pasn_fils_build_auth()
/hostap-latest/wpa_supplicant/
Dtwt.c81 wpabuf_put_le16(buf, req_type); in wpas_twt_send_setup()
84 wpabuf_put_le16(buf, mantissa); /* TWT Wake Interval Mantissa */ in wpas_twt_send_setup()
Dmesh_mpm.c287 wpabuf_put_le16(buf, ampe ? IEEE80211_CAP_PRIVACY : 0); in mesh_mpm_send_plink_action()
291 wpabuf_put_le16(buf, sta->aid); in mesh_mpm_send_plink_action()
350 wpabuf_put_le16(buf, 1); in mesh_mpm_send_plink_action()
352 wpabuf_put_le16(buf, 0); in mesh_mpm_send_plink_action()
353 wpabuf_put_le16(buf, sta->my_lid); in mesh_mpm_send_plink_action()
355 wpabuf_put_le16(buf, sta->peer_lid); in mesh_mpm_send_plink_action()
357 wpabuf_put_le16(buf, close_reason); in mesh_mpm_send_plink_action()
Ddpp_supplicant.c3825 wpabuf_put_le16(pt, DPP_ATTR_PROTOCOL_VERSION); in wpas_dpp_send_private_peer_intro_update()
3826 wpabuf_put_le16(pt, 1); in wpas_dpp_send_private_peer_intro_update()
3830 wpabuf_put_le16(pt, DPP_ATTR_CONNECTOR); in wpas_dpp_send_private_peer_intro_update()
3831 wpabuf_put_le16(pt, os_strlen(ssid->dpp_connector)); in wpas_dpp_send_private_peer_intro_update()
3865 wpabuf_put_le16(msg, DPP_ATTR_TRANSACTION_ID); in wpas_dpp_send_private_peer_intro_update()
3866 wpabuf_put_le16(msg, 1); in wpas_dpp_send_private_peer_intro_update()
3870 wpabuf_put_le16(msg, DPP_ATTR_WRAPPED_DATA); in wpas_dpp_send_private_peer_intro_update()
3871 wpabuf_put_le16(msg, wpabuf_len(enc_ct)); in wpas_dpp_send_private_peer_intro_update()
4456 wpabuf_put_le16(msg, DPP_ATTR_TRANSACTION_ID); in wpas_dpp_start_private_peer_intro()
4457 wpabuf_put_le16(msg, 1); in wpas_dpp_start_private_peer_intro()
[all …]
Dp2p_supplicant_sd.c656 wpabuf_put_le16(resp, (u16) svc_info_len); in wpas_sd_req_asp()
976 wpabuf_put_le16(tlvs, 1 + 1 + 1 + os_strlen(query)); in wpas_p2p_sd_request_upnp()
1006 wpabuf_put_le16(tlvs, plen); in wpas_p2p_sd_request_asp()
Dsme.c121 wpabuf_put_le16(buf, 1); /* Transaction seq# */ in sme_auth_build_sae_commit()
122 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in sme_auth_build_sae_commit()
277 wpabuf_put_le16(buf, 1); /* Transaction seq# */ in sme_auth_build_sae_commit()
279 wpabuf_put_le16(buf, WLAN_STATUS_SAE_PK); in sme_auth_build_sae_commit()
281 wpabuf_put_le16(buf, WLAN_STATUS_SAE_HASH_TO_ELEMENT); in sme_auth_build_sae_commit()
283 wpabuf_put_le16(buf,WLAN_STATUS_SUCCESS); in sme_auth_build_sae_commit()
314 wpabuf_put_le16(buf, 2); /* Transaction seq# */ in sme_auth_build_sae_confirm()
315 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in sme_auth_build_sae_confirm()
Drobust_av.c233 wpabuf_put_le16(buf, qos_elem->max_msdu_size); in wpas_populate_scs_descriptor_ie()
249 wpabuf_put_le16(buf, qos_elem->msdu_lifetime); in wpas_populate_scs_descriptor_ie()
255 wpabuf_put_le16(buf, qos_elem->medium_time); in wpas_populate_scs_descriptor_ie()
/hostap-latest/src/utils/
Dwpabuf.h124 static inline void wpabuf_put_le16(struct wpabuf *buf, u16 data) in wpabuf_put_le16() function

12