Home
last modified time | relevance | path

Searched refs:wpabuf_put_be16 (Results 1 – 25 of 30) sorted by relevance

12

/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c80 wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); in wps_build_public_key()
81 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key()
99 wpabuf_put_be16(msg, ATTR_REQUEST_TYPE); in wps_build_req_type()
100 wpabuf_put_be16(msg, 1); in wps_build_req_type()
109 wpabuf_put_be16(msg, ATTR_RESPONSE_TYPE); in wps_build_resp_type()
110 wpabuf_put_be16(msg, 1); in wps_build_resp_type()
119 wpabuf_put_be16(msg, ATTR_CONFIG_METHODS); in wps_build_config_methods()
120 wpabuf_put_be16(msg, 2); in wps_build_config_methods()
121 wpabuf_put_be16(msg, methods); in wps_build_config_methods()
131 wpabuf_put_be16(msg, ATTR_UUID_E); in wps_build_uuid_e()
[all …]
Dwps_dev_attr.c20 wpabuf_put_be16(msg, ATTR_MANUFACTURER); in wps_build_manufacturer()
29 wpabuf_put_be16(msg, 1); in wps_build_manufacturer()
34 wpabuf_put_be16(msg, len); in wps_build_manufacturer()
44 wpabuf_put_be16(msg, ATTR_MODEL_NAME); in wps_build_model_name()
53 wpabuf_put_be16(msg, 1); in wps_build_model_name()
58 wpabuf_put_be16(msg, len); in wps_build_model_name()
68 wpabuf_put_be16(msg, ATTR_MODEL_NUMBER); in wps_build_model_number()
77 wpabuf_put_be16(msg, 1); in wps_build_model_number()
82 wpabuf_put_be16(msg, len); in wps_build_model_number()
92 wpabuf_put_be16(msg, ATTR_SERIAL_NUMBER); in wps_build_serial_number()
[all …]
Dwps_enrollee.c28 wpabuf_put_be16(msg, ATTR_WPS_STATE); in wps_build_wps_state()
29 wpabuf_put_be16(msg, 1); in wps_build_wps_state()
54 wpabuf_put_be16(msg, ATTR_E_HASH1); in wps_build_e_hash()
55 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_e_hash()
70 wpabuf_put_be16(msg, ATTR_E_HASH2); in wps_build_e_hash()
71 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_e_hash()
86 wpabuf_put_be16(msg, ATTR_E_SNONCE1); in wps_build_e_snonce1()
87 wpabuf_put_be16(msg, WPS_SECRET_NONCE_LEN); in wps_build_e_snonce1()
96 wpabuf_put_be16(msg, ATTR_E_SNONCE2); in wps_build_e_snonce2()
97 wpabuf_put_be16(msg, WPS_SECRET_NONCE_LEN); in wps_build_e_snonce2()
[all …]
Dwps_registrar.c450 wpabuf_put_be16(msg, ATTR_WPS_STATE); in wps_build_wps_state()
451 wpabuf_put_be16(msg, 1); in wps_build_wps_state()
487 wpabuf_put_be16(msg, ATTR_AP_SETUP_LOCKED); in wps_build_ap_setup_locked()
488 wpabuf_put_be16(msg, 1); in wps_build_ap_setup_locked()
501 wpabuf_put_be16(msg, ATTR_SELECTED_REGISTRAR); in wps_build_selected_registrar()
502 wpabuf_put_be16(msg, 1); in wps_build_selected_registrar()
517 wpabuf_put_be16(msg, ATTR_DEV_PASSWORD_ID); in wps_build_sel_reg_dev_password_id()
518 wpabuf_put_be16(msg, 2); in wps_build_sel_reg_dev_password_id()
519 wpabuf_put_be16(msg, id); in wps_build_sel_reg_dev_password_id()
577 wpabuf_put_be16(msg, ATTR_SELECTED_REGISTRAR_CONFIG_METHODS); in wps_build_sel_reg_config_methods()
[all …]
Dwps_er.c1468 wpabuf_put_be16(msg, ATTR_SELECTED_REGISTRAR); in wps_er_build_selected_registrar()
1469 wpabuf_put_be16(msg, 1); in wps_er_build_selected_registrar()
1477 wpabuf_put_be16(msg, ATTR_DEV_PASSWORD_ID); in wps_er_build_dev_password_id()
1478 wpabuf_put_be16(msg, 2); in wps_er_build_dev_password_id()
1479 wpabuf_put_be16(msg, dev_passwd_id); in wps_er_build_dev_password_id()
1487 wpabuf_put_be16(msg, ATTR_SELECTED_REGISTRAR_CONFIG_METHODS); in wps_er_build_sel_reg_config_methods()
1488 wpabuf_put_be16(msg, 2); in wps_er_build_sel_reg_config_methods()
1489 wpabuf_put_be16(msg, sel_reg_config_methods); in wps_er_build_sel_reg_config_methods()
1496 wpabuf_put_be16(msg, ATTR_UUID_R); in wps_er_build_uuid_r()
1497 wpabuf_put_be16(msg, WPS_UUID_LEN); in wps_er_build_uuid_r()
Dwps_upnp.c595 wpabuf_put_be16(msg, ATTR_ENROLLEE_NONCE); in build_fake_wsc_ack()
596 wpabuf_put_be16(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
599 wpabuf_put_be16(msg, ATTR_REGISTRAR_NONCE); in build_fake_wsc_ack()
600 wpabuf_put_be16(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
Dwps_common.c743 wpabuf_put_be16(msg, ATTR_SSID); in wps_build_ssid()
744 wpabuf_put_be16(msg, wps->ssid_len); in wps_build_ssid()
/external/wpa_supplicant_8/src/p2p/
Dp2p_build.c180 wpabuf_put_be16(buf, methods); in p2p_buf_add_device_info()
196 wpabuf_put_be16(buf, ATTR_DEV_NAME); in p2p_buf_add_device_info()
197 wpabuf_put_be16(buf, nlen); in p2p_buf_add_device_info()
507 wpabuf_put_be16(buf, config_methods); in p2p_buf_add_service_info()
675 wpabuf_put_be16(buf, attr); in p2p_add_wps_string()
685 wpabuf_put_be16(buf, 1); in p2p_add_wps_string()
690 wpabuf_put_be16(buf, len); in p2p_add_wps_string()
715 wpabuf_put_be16(buf, ATTR_WPS_STATE); in p2p_build_wps_ie()
716 wpabuf_put_be16(buf, 1); in p2p_build_wps_ie()
724 wpabuf_put_be16(buf, ATTR_DEV_PASSWORD_ID); in p2p_build_wps_ie()
[all …]
Dp2p_pd.c35 wpabuf_put_be16(buf, ATTR_CONFIG_METHODS); in p2p_build_wps_ie_config_methods()
36 wpabuf_put_be16(buf, 2); in p2p_build_wps_ie_config_methods()
37 wpabuf_put_be16(buf, config_methods); in p2p_build_wps_ie_config_methods()
/external/wpa_supplicant_8/src/eap_peer/
Dtncc.c1187 wpabuf_put_be16(buf, EAP_TLV_VENDOR_SPECIFIC_TLV); /* TLV Type */ in tncc_build_soh()
1190 wpabuf_put_be16(buf, 0x01); /* TLV Type - SoH TLV */ in tncc_build_soh()
1194 wpabuf_put_be16(buf, EAP_TLV_VENDOR_SPECIFIC_TLV); /* Outer Type */ in tncc_build_soh()
1197 wpabuf_put_be16(buf, ver); /* Inner Type */ in tncc_build_soh()
1203 wpabuf_put_be16(buf, EAP_TLV_VENDOR_SPECIFIC_TLV); in tncc_build_soh()
1204 wpabuf_put_be16(buf, 4 + 24 + 1 + 1); /* Length */ in tncc_build_soh()
1214 wpabuf_put_be16(buf, 0x0002); /* Type */ in tncc_build_soh()
1215 wpabuf_put_be16(buf, 4); /* Length */ in tncc_build_soh()
1218 wpabuf_put_be16(buf, EAP_TLV_VENDOR_SPECIFIC_TLV); in tncc_build_soh()
1238 wpabuf_put_be16(buf, 0); /* spVersionMajor */ in tncc_build_soh()
[all …]
Deap_gpsk.c342 wpabuf_put_be16(resp, data->id_peer_len); in eap_gpsk_send_gpsk_2()
345 wpabuf_put_be16(resp, data->id_server_len); in eap_gpsk_send_gpsk_2()
360 wpabuf_put_be16(resp, csuite_list_len); in eap_gpsk_send_gpsk_2()
397 wpabuf_put_be16(resp, 0); in eap_gpsk_send_gpsk_2()
650 wpabuf_put_be16(resp, 0); in eap_gpsk_send_gpsk_4()
Deap_peap.c218 wpabuf_put_be16(msg, 6); /* Length */ in eap_tlv_build_nak()
220 wpabuf_put_be16(msg, nak_type); /* NAK-Type */ in eap_tlv_build_nak()
326 wpabuf_put_be16(buf, tlv_type); in eap_tlv_add_cryptobinding()
327 wpabuf_put_be16(buf, 56); in eap_tlv_add_cryptobinding()
378 wpabuf_put_be16(msg, 2); /* Length */ in eap_tlv_build_result()
379 wpabuf_put_be16(msg, status); /* Status */ in eap_tlv_build_result()
Deap_pax.c196 wpabuf_put_be16(resp, EAP_PAX_RAND_LEN); in eap_pax_process_std_1()
201 wpabuf_put_be16(resp, data->cid_len); in eap_pax_process_std_1()
206 wpabuf_put_be16(resp, EAP_PAX_MAC_LEN); in eap_pax_process_std_1()
Dikev2.c866 wpabuf_put_be16(msg, 0x800e); /* AF=1, AttrType=14 */ in ikev2_build_sar1()
867 wpabuf_put_be16(msg, 128); /* 128-bit key */ in ikev2_build_sar1()
919 wpabuf_put_be16(msg, data->proposal.dh); /* DH Group # */ in ikev2_build_ker()
1040 wpabuf_put_be16(msg, data->error_type); in ikev2_build_notification()
1049 wpabuf_put_be16(msg, data->proposal.dh); in ikev2_build_notification()
Deap_pwd.c337 wpabuf_put_be16(data->outbuf, data->group_num); in eap_pwd_perform_id_exchange()
999 wpabuf_put_be16(resp, tot_len); in eap_pwd_process()
Deap_wsc.c333 wpabuf_put_be16(resp, wpabuf_len(data->out_buf)); in eap_wsc_build_msg()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_gpsk.c132 wpabuf_put_be16(req, sm->server_id_len); in eap_gpsk_build_gpsk_1()
135 wpabuf_put_be16(req, in eap_gpsk_build_gpsk_1()
171 wpabuf_put_be16(req, sm->server_id_len); in eap_gpsk_build_gpsk_3()
178 wpabuf_put_be16(req, 0); in eap_gpsk_build_gpsk_3()
Dtncs.c1181 wpabuf_put_be16(buf, EAP_TLV_VENDOR_SPECIFIC_TLV); /* TLV Type */ in tncs_build_soh_request()
1182 wpabuf_put_be16(buf, 8); /* Length */ in tncs_build_soh_request()
1186 wpabuf_put_be16(buf, 0x02); /* TLV Type - SoH Request TLV */ in tncs_build_soh_request()
1187 wpabuf_put_be16(buf, 0); /* Length */ in tncs_build_soh_request()
Deap_server_peap.c364 wpabuf_put_be16(buf, 2); in eap_peap_build_phase2_tlv()
366 wpabuf_put_be16(buf, data->tlv_request == TLV_REQ_SUCCESS ? in eap_peap_build_phase2_tlv()
400 wpabuf_put_be16(buf, tlv_type); in eap_peap_build_phase2_tlv()
401 wpabuf_put_be16(buf, 56); in eap_peap_build_phase2_tlv()
Deap_server_pax.c104 wpabuf_put_be16(req, EAP_PAX_RAND_LEN); in eap_pax_build_std_1()
145 wpabuf_put_be16(req, EAP_PAX_MAC_LEN); in eap_pax_build_std_3()
Dikev2.c931 wpabuf_put_be16(msg, 0x800e); /* AF=1, AttrType=14 */ in ikev2_build_sai()
932 wpabuf_put_be16(msg, 128); /* 128-bit key */ in ikev2_build_sai()
985 wpabuf_put_be16(msg, data->proposal.dh); /* DH Group # */ in ikev2_build_kei()
Deap_server_wsc.c216 wpabuf_put_be16(req, wpabuf_len(data->out_buf)); in eap_wsc_build_msg()
Deap_server_pwd.c183 wpabuf_put_be16(data->outbuf, data->group_num); in eap_pwd_build_id_req()
528 wpabuf_put_be16(req, totlen); in eap_pwd_build_req()
/external/wpa_supplicant_8/src/utils/
Dwpabuf.h120 static inline void wpabuf_put_be16(struct wpabuf *buf, u16 data) in wpabuf_put_be16() function
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.c1091 wpabuf_put_be16(msg->buf, value); in eap_sim_msg_add()

12