/hostap-latest/src/common/ |
D | dpp_reconfig.c | 27 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 …]
|
D | dpp_pkex.c | 95 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 …]
|
D | dpp.c | 509 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 …]
|
D | dpp_auth.c | 35 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 …]
|
D | gas.c | 60 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()
|
D | nan_de.c | 234 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()
|
D | gas_server.c | 141 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()
|
D | dpp_tcp.c | 1322 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/ |
D | p2p_build.c | 67 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 …]
|
D | p2p_sd.c | 183 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()
|
D | p2p_group.c | 170 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/ |
D | gas_serv.c | 224 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 …]
|
D | rrm.c | 456 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()
|
D | ieee802_11_eht.c | 487 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()
|
D | dpp_hostapd.c | 1925 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 …]
|
D | comeback_token.c | 103 wpabuf_put_le16(buf, group); /* Finite Cyclic Group */ in auth_build_token_req()
|
/hostap-latest/src/pasn/ |
D | pasn_responder.c | 190 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()
|
D | pasn_initiator.c | 65 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/ |
D | twt.c | 81 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()
|
D | mesh_mpm.c | 287 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()
|
D | dpp_supplicant.c | 3825 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 …]
|
D | p2p_supplicant_sd.c | 656 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()
|
D | sme.c | 121 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()
|
D | robust_av.c | 233 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/ |
D | wpabuf.h | 124 static inline void wpabuf_put_le16(struct wpabuf *buf, u16 data) in wpabuf_put_le16() function
|