Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/src/common/
Ddpp_reconfig.c29 wpabuf_put_le16(msg, DPP_ATTR_C_SIGN_KEY_HASH); in dpp_build_attr_csign_key_hash()
30 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_csign_key_hash()
110 wpabuf_put_le16(msg, DPP_ATTR_FINITE_CYCLIC_GROUP); in dpp_build_reconfig_announcement()
111 wpabuf_put_le16(msg, 2); in dpp_build_reconfig_announcement()
112 wpabuf_put_le16(msg, own_curve->ike_group); in dpp_build_reconfig_announcement()
115 wpabuf_put_le16(msg, DPP_ATTR_A_NONCE); in dpp_build_reconfig_announcement()
116 wpabuf_put_le16(msg, wpabuf_len(a_nonce)); in dpp_build_reconfig_announcement()
120 wpabuf_put_le16(msg, DPP_ATTR_E_PRIME_ID); in dpp_build_reconfig_announcement()
121 wpabuf_put_le16(msg, wpabuf_len(e_id)); in dpp_build_reconfig_announcement()
147 wpabuf_put_le16(msg, DPP_ATTR_TRANSACTION_ID); in dpp_reconfig_build_req()
[all …]
Ddpp_pkex.c122 wpabuf_put_le16(msg, DPP_ATTR_FINITE_CYCLIC_GROUP); in dpp_pkex_build_exchange_req()
123 wpabuf_put_le16(msg, 2); in dpp_pkex_build_exchange_req()
124 wpabuf_put_le16(msg, curve->ike_group); in dpp_pkex_build_exchange_req()
132 wpabuf_put_le16(msg, DPP_ATTR_CODE_IDENTIFIER); in dpp_pkex_build_exchange_req()
133 wpabuf_put_le16(msg, os_strlen(pkex->identifier)); in dpp_pkex_build_exchange_req()
145 wpabuf_put_le16(msg, DPP_ATTR_ENCRYPTED_KEY); in dpp_pkex_build_exchange_req()
146 wpabuf_put_le16(msg, 2 * curve->prime_len); in dpp_pkex_build_exchange_req()
266 wpabuf_put_le16(msg, DPP_ATTR_CODE_IDENTIFIER); in dpp_pkex_build_exchange_resp()
267 wpabuf_put_le16(msg, os_strlen(pkex->identifier)); in dpp_pkex_build_exchange_resp()
282 wpabuf_put_le16(msg, DPP_ATTR_ENCRYPTED_KEY); in dpp_pkex_build_exchange_resp()
[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 …]
Ddpp.c434 wpabuf_put_le16(msg, DPP_ATTR_STATUS); in dpp_build_attr_status()
435 wpabuf_put_le16(msg, 1); in dpp_build_attr_status()
444 wpabuf_put_le16(msg, DPP_ATTR_R_BOOTSTRAP_KEY_HASH); in dpp_build_attr_r_bootstrap_key_hash()
445 wpabuf_put_le16(msg, SHA256_MAC_LEN); in dpp_build_attr_r_bootstrap_key_hash()
709 wpabuf_put_le16(clear, DPP_ATTR_ENROLLEE_NONCE); in dpp_build_conf_req_attr()
710 wpabuf_put_le16(clear, nonce_len - 1); in dpp_build_conf_req_attr()
721 wpabuf_put_le16(clear, DPP_ATTR_ENROLLEE_NONCE); in dpp_build_conf_req_attr()
722 wpabuf_put_le16(clear, nonce_len); in dpp_build_conf_req_attr()
734 wpabuf_put_le16(clear, DPP_ATTR_CONFIG_ATTR_OBJ); in dpp_build_conf_req_attr()
735 wpabuf_put_le16(clear, json_len); in dpp_build_conf_req_attr()
[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()
Dgas_server.c140 wpabuf_put_le16(resp, resp_frag_len); in gas_server_send_resp()
286 wpabuf_put_le16(resp, 0); in gas_server_handle_rx_comeback_req()
319 wpabuf_put_le16(resp, resp_frag_len); in gas_server_handle_rx_comeback_req()
Ddpp_tcp.c1016 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in dpp_tcp_send_comeback_delay()
1019 wpabuf_put_le16(buf, 500); /* GAS Comeback Delay */ in dpp_tcp_send_comeback_delay()
1022 wpabuf_put_le16(buf, 0); /* Query Response Length */ in dpp_tcp_send_comeback_delay()
1057 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in dpp_tcp_send_gas_resp()
1060 wpabuf_put_le16(buf, 0); /* GAS Comeback Delay */ in dpp_tcp_send_gas_resp()
Dsae.c1409 wpabuf_put_le16(groups, rejected_groups[i]); in sae_prepare_commit_pt()
1679 wpabuf_put_le16(buf, sae->group); /* Finite Cyclic Group */ in sae_write_commit()
2250 wpabuf_put_le16(buf, sae->send_confirm); in sae_write_confirm()
/external/wpa_supplicant_8/src/p2p/
Dp2p_build.c66 wpabuf_put_le16(buf, 2); in p2p_buf_add_capability()
78 wpabuf_put_le16(buf, 1); in p2p_buf_add_go_intent()
90 wpabuf_put_le16(buf, 5); in p2p_buf_add_listen_channel()
104 wpabuf_put_le16(buf, 5); in p2p_buf_add_operating_channel()
180 wpabuf_put_le16(buf, 1); in p2p_buf_add_status()
249 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_device_id()
260 wpabuf_put_le16(buf, 2); in p2p_buf_add_config_timeout()
272 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_intended_addr()
283 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_group_bssid()
295 wpabuf_put_le16(buf, ETH_ALEN + ssid_len); in p2p_buf_add_group_id()
[all …]
Dp2p_sd.c184 wpabuf_put_le16(buf, update_indic); /* Service Update Indicator */ in p2p_build_sd_query()
231 wpabuf_put_le16(buf, update_indic); in p2p_build_sd_response()
258 wpabuf_put_le16(buf, ANQP_VENDOR_SPECIFIC); /* Info ID */ in p2p_build_gas_comeback_resp()
259 wpabuf_put_le16(buf, 3 + 1 + 2 + total_len); in p2p_build_gas_comeback_resp()
262 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()
/external/wpa_supplicant_8/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.c406 wpabuf_put_le16(buf, 0); /* Number of repetitions */ in hostapd_send_lci_req()
423 wpabuf_put_le16(buf, 0xffff); in hostapd_send_lci_req()
493 wpabuf_put_le16(buf, 0); /* Number of Repetitions */ in hostapd_send_range_req()
508 wpabuf_put_le16(buf, random_interval); /* Randomization Interval */ in hostapd_send_range_req()
645 wpabuf_put_le16(buf, 0); /* Number of repetitions */ in hostapd_send_beacon_req()
Ddpp_hostapd.c1500 wpabuf_put_le16(msg, DPP_ATTR_TRANSACTION_ID); in hostapd_dpp_send_peer_disc_resp()
1501 wpabuf_put_le16(msg, 1); in hostapd_dpp_send_peer_disc_resp()
1517 wpabuf_put_le16(msg, DPP_ATTR_STATUS); in hostapd_dpp_send_peer_disc_resp()
1518 wpabuf_put_le16(msg, 1); in hostapd_dpp_send_peer_disc_resp()
1538 wpabuf_put_le16(msg, DPP_ATTR_CONNECTOR); in hostapd_dpp_send_peer_disc_resp()
1539 wpabuf_put_le16(msg, os_strlen(connector)); in hostapd_dpp_send_peer_disc_resp()
1548 wpabuf_put_le16(msg, DPP_ATTR_CONNECTOR); in hostapd_dpp_send_peer_disc_resp()
1549 wpabuf_put_le16(msg, os_strlen(hapd->conf->dpp_connector)); in hostapd_dpp_send_peer_disc_resp()
1560 wpabuf_put_le16(msg, DPP_ATTR_PROTOCOL_VERSION); in hostapd_dpp_send_peer_disc_resp()
1561 wpabuf_put_le16(msg, 1); in hostapd_dpp_send_peer_disc_resp()
Dieee802_11.c798 wpabuf_put_le16(buf, group); /* Finite Cyclic Group */ in auth_build_token_req()
2062 wpabuf_put_le16(data, hapd->conf->fils_dh_group); in prepare_auth_resp_fils()
2510 wpabuf_put_le16(buf, WLAN_AUTH_SAE); in pasn_get_sae_wd()
2511 wpabuf_put_le16(buf, 1); in pasn_get_sae_wd()
2512 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in pasn_get_sae_wd()
2521 wpabuf_put_le16(buf, WLAN_AUTH_SAE); in pasn_get_sae_wd()
2522 wpabuf_put_le16(buf, 2); in pasn_get_sae_wd()
2523 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in pasn_get_sae_wd()
2555 wpabuf_put_le16(buf, WLAN_AUTH_FILS_SK); in pasn_get_fils_wd()
2558 wpabuf_put_le16(buf, 2); in pasn_get_fils_wd()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dpasn_supplicant.c110 wpabuf_put_le16(buf, WLAN_AUTH_SAE); in wpas_pasn_wd_sae_commit()
111 wpabuf_put_le16(buf, 1); in wpas_pasn_wd_sae_commit()
112 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in wpas_pasn_wd_sae_commit()
233 wpabuf_put_le16(buf, WLAN_AUTH_SAE); in wpas_pasn_wd_sae_confirm()
234 wpabuf_put_le16(buf, 2); in wpas_pasn_wd_sae_confirm()
235 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in wpas_pasn_wd_sae_confirm()
277 wpabuf_put_le16(buf, WLAN_AUTH_FILS_SK); in wpas_pasn_fils_build_auth()
280 wpabuf_put_le16(buf, 1); in wpas_pasn_fils_build_auth()
283 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in wpas_pasn_fils_build_auth()
Dmesh_mpm.c276 wpabuf_put_le16(buf, ampe ? IEEE80211_CAP_PRIVACY : 0); in mesh_mpm_send_plink_action()
280 wpabuf_put_le16(buf, sta->aid); in mesh_mpm_send_plink_action()
338 wpabuf_put_le16(buf, 1); in mesh_mpm_send_plink_action()
340 wpabuf_put_le16(buf, 0); in mesh_mpm_send_plink_action()
341 wpabuf_put_le16(buf, sta->my_lid); in mesh_mpm_send_plink_action()
343 wpabuf_put_le16(buf, sta->peer_lid); in mesh_mpm_send_plink_action()
345 wpabuf_put_le16(buf, close_reason); in mesh_mpm_send_plink_action()
Ddpp_supplicant.c3180 wpabuf_put_le16(msg, DPP_ATTR_TRANSACTION_ID); in wpas_dpp_check_connect()
3181 wpabuf_put_le16(msg, 0); in wpas_dpp_check_connect()
3187 wpabuf_put_le16(msg, DPP_ATTR_TRANSACTION_ID); in wpas_dpp_check_connect()
3188 wpabuf_put_le16(msg, 1); in wpas_dpp_check_connect()
3207 wpabuf_put_le16(msg, DPP_ATTR_CONNECTOR); in wpas_dpp_check_connect()
3208 wpabuf_put_le16(msg, os_strlen(connector)); in wpas_dpp_check_connect()
3216 wpabuf_put_le16(msg, DPP_ATTR_CONNECTOR); in wpas_dpp_check_connect()
3217 wpabuf_put_le16(msg, os_strlen(ssid->dpp_connector)); in wpas_dpp_check_connect()
3227 wpabuf_put_le16(msg, DPP_ATTR_PROTOCOL_VERSION); in wpas_dpp_check_connect()
3228 wpabuf_put_le16(msg, 1); in wpas_dpp_check_connect()
Dsme.c111 wpabuf_put_le16(buf, 1); /* Transaction seq# */ in sme_auth_build_sae_commit()
112 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in sme_auth_build_sae_commit()
214 wpabuf_put_le16(buf, 1); /* Transaction seq# */ in sme_auth_build_sae_commit()
216 wpabuf_put_le16(buf, WLAN_STATUS_SAE_PK); in sme_auth_build_sae_commit()
218 wpabuf_put_le16(buf, WLAN_STATUS_SAE_HASH_TO_ELEMENT); in sme_auth_build_sae_commit()
220 wpabuf_put_le16(buf,WLAN_STATUS_SUCCESS); in sme_auth_build_sae_commit()
246 wpabuf_put_le16(buf, 2); /* Transaction seq# */ in sme_auth_build_sae_confirm()
247 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in sme_auth_build_sae_confirm()
Dp2p_supplicant_sd.c665 wpabuf_put_le16(resp, (u16) svc_info_len); in wpas_sd_req_asp()
985 wpabuf_put_le16(tlvs, 1 + 1 + 1 + os_strlen(query)); in wpas_p2p_sd_request_upnp()
1015 wpabuf_put_le16(tlvs, plen); in wpas_p2p_sd_request_asp()
Drrm.c231 wpabuf_put_le16(buf, 0xffff); in wpas_rrm_send_neighbor_rep_request()
262 wpabuf_put_le16(buf, 0); in wpas_rrm_send_neighbor_rep_request()
Dinterworking.c112 wpabuf_put_le16(buf, info_ids[i]); in anqp_build_req()
3259 wpabuf_put_le16(buf, wpabuf_len(query)); in gas_send_request()
3262 wpabuf_put_le16(buf, 0); in gas_send_request()
Dhs20_supplicant.c132 wpabuf_put_le16(buf, pps_mo_id); in wpas_hs20_add_indication()
/external/wpa_supplicant_8/src/utils/
Dwpabuf.h124 static inline void wpabuf_put_le16(struct wpabuf *buf, u16 data) in wpabuf_put_le16() function
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa.c4102 wpabuf_put_le16(buf, 1); in fils_build_auth()
4105 wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS); in fils_build_auth()
4111 wpabuf_put_le16(buf, dh_group); in fils_build_auth()
4501 wpabuf_put_le16(buf, 1); in fils_ft_build_assoc_req_rsne()
4514 wpabuf_put_le16(buf, 1); in fils_ft_build_assoc_req_rsne()
4539 wpabuf_put_le16(buf, capab); in fils_ft_build_assoc_req_rsne()
4542 wpabuf_put_le16(buf, 1); in fils_ft_build_assoc_req_rsne()
5064 wpabuf_put_le16(ie, group); in owe_build_assoc_req()
5192 wpabuf_put_le16(hkey, sm->owe_group); /* group */ in owe_process_assoc_resp()

12