Home
last modified time | relevance | path

Searched refs:host_to_le16 (Results 1 – 25 of 32) sorted by relevance

12

/hostap-latest/src/ap/
Dieee802_11_ht.c38 cap->ht_capabilities_info = host_to_le16(hapd->iconf->ht_capab); in hostapd_eid_ht_capabilities()
58 host_to_le16(hapd->iconf->obss_interval); in hostapd_eid_ht_capabilities()
63 host_to_le16(20); in hostapd_eid_ht_capabilities()
65 host_to_le16(10); in hostapd_eid_ht_capabilities()
67 host_to_le16(200); in hostapd_eid_ht_capabilities()
69 host_to_le16(20); in hostapd_eid_ht_capabilities()
71 host_to_le16(5); in hostapd_eid_ht_capabilities()
73 host_to_le16(25); in hostapd_eid_ht_capabilities()
98 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); in hostapd_eid_ht_operation()
522 neg_ht_cap->ht_capabilities_info = host_to_le16(cap); in hostapd_get_ht_capab()
Dwnm_ap.c95 wnmsleep_ie.intval = host_to_le16(intval); in ieee802_11_send_wnmsleep_resp()
409 mgmt->u.action.u.bss_tm_req.disassoc_timer = host_to_le16(0); in ieee802_11_send_bss_trans_mgmt_request()
863 host_to_le16(disassoc_timer); in wnm_send_disassoc_imminent()
931 host_to_le16(disassoc_timer); in wnm_send_ess_disassoc_imminent()
989 host_to_le16(disassoc_timer); in wnm_send_bss_tm_req()
Dwmm.c139 ac->txop_limit = host_to_le16(acp->txop_limit); in hostapd_eid_wmm()
281 tspec->medium_time = host_to_le16(medium_time / 32); in wmm_process_tspec()
Dwpa_auth_ft.c151 type16 = host_to_le16(type); in wpa_ft_rrb_get_tlv()
345 hdr->type = host_to_le16(tlvs[i].type); in wpa_ft_tlv_lin()
346 hdr->len = host_to_le16(tlvs[i].len); in wpa_ft_tlv_lin()
400 hdr->type = host_to_le16(FT_RRB_VLAN_UNTAGGED); in wpa_ft_vlan_lin()
401 hdr->len = host_to_le16(sizeof(le16)); in wpa_ft_vlan_lin()
418 hdr->type = host_to_le16(FT_RRB_VLAN_TAGGED); in wpa_ft_vlan_lin()
431 hdr->len = host_to_le16(len); in wpa_ft_vlan_lin()
2449 rdie->status_code = host_to_le16(WLAN_STATUS_SUCCESS); in wpa_ft_process_rdie()
2456 host_to_le16(WLAN_STATUS_UNSPECIFIED_FAILURE); in wpa_ft_process_rdie()
2467 host_to_le16(WLAN_STATUS_UNSPECIFIED_FAILURE); in wpa_ft_process_rdie()
[all …]
Dieee802_11_he.c216 host_to_le16(hapd->iface->conf->he_op.he_basic_mcs_nss_set); in hostapd_eid_he_operation()
402 cap->capab = host_to_le16(capab); in hostapd_eid_he_6ghz_band_cap()
Dctrl_iface_ap.c589 host_to_le16(WLAN_REASON_PREV_AUTH_NOT_VALID); in p2p_manager_disconnect()
593 host_to_le16(WLAN_REASON_PREV_AUTH_NOT_VALID); in p2p_manager_disconnect()
647 mgmt.u.deauth.reason_code = host_to_le16(reason); in hostapd_ctrl_iface_deauthenticate()
709 mgmt.u.disassoc.reason_code = host_to_le16(reason); in hostapd_ctrl_iface_disassociate()
Dieee802_11_vht.c136 oper->vht_basic_mcs_set = host_to_le16(0xfffc); in hostapd_eid_vht_operation()
Dbeacon.c1022 host_to_le16(hapd->iconf->beacon_int); in hostapd_gen_probe_resp()
1026 host_to_le16(hostapd_own_capab_info(hapd)); in hostapd_gen_probe_resp()
2257 head->duration = host_to_le16(0); in ieee802_11_build_ap_params()
2263 host_to_le16(hapd->iconf->beacon_int); in ieee802_11_build_ap_params()
2267 head->u.beacon.capab_info = host_to_le16(capab_info); in ieee802_11_build_ap_params()
Dieee802_11_eht.c158 cap->mac_cap = host_to_le16(eht_cap->mac_cap); in hostapd_eid_eht_capab()
284 host_to_le16(punct_bitmap); in hostapd_eid_eht_operation()
Dieee802_11.c442 reply->u.auth.auth_alg = host_to_le16(auth_alg); in send_auth_reply()
443 reply->u.auth.auth_transaction = host_to_le16(auth_transaction); in send_auth_reply()
444 reply->u.auth.status_code = host_to_le16(resp); in send_auth_reply()
4717 reply.u.deauth.reason_code = host_to_le16(reason_code); in send_deauth()
4899 host_to_le16(hostapd_own_capab_info(hapd)); in send_assoc_resp()
4900 reply->u.assoc_resp.status_code = host_to_le16(status_code); in send_assoc_resp()
4902 reply->u.assoc_resp.aid = host_to_le16((sta ? sta->aid : 0) | in send_assoc_resp()
6021 !(mgmt->frame_control & host_to_le16(WLAN_FC_ISWEP)) && in handle_action()
/hostap-latest/src/drivers/
Ddriver_hostap.c274 hdr->frame_control |= host_to_le16(BIT(1)); in hostap_send_mlme()
276 hdr->frame_control &= ~host_to_le16(BIT(1)); in hostap_send_mlme()
302 hdr->frame_control |= host_to_le16(WLAN_FC_FROMDS); in hostap_send_eapol()
304 hdr->frame_control |= host_to_le16(WLAN_FC_ISWEP); in hostap_send_eapol()
1056 mgmt.u.deauth.reason_code = host_to_le16(reason); in hostap_sta_deauth()
1094 mgmt.u.disassoc.reason_code = host_to_le16(reason); in hostap_sta_disassoc()
1172 host_to_le16(WLAN_FC_FROMDS); in wpa_driver_hostap_poll_client()
Ddriver_zephyr.c2405 mgmt.u.deauth.reason_code = host_to_le16(reason_code); in wpa_drv_zep_sta_deauth()
2438 mgmt.u.disassoc.reason_code = host_to_le16(reason_code); in wpa_drv_zep_sta_disassoc()
/hostap-latest/src/utils/
Dcommon.h146 #define host_to_le16(n) (n) macro
163 #define host_to_le16(n) sys_cpu_to_le16(n) macro
194 #define host_to_le16(n) ((__force le16) (u16) (n)) macro
207 #define host_to_le16(n) bswap_16(n) macro
/hostap-latest/wlantest/
Dctrl.c504 mgmt.u.auth.auth_alg = host_to_le16(WLAN_AUTH_OPEN); in ctrl_inject_auth()
505 mgmt.u.auth.auth_transaction = host_to_le16(1); in ctrl_inject_auth()
506 mgmt.u.auth.status_code = host_to_le16(WLAN_STATUS_SUCCESS); in ctrl_inject_auth()
544 mgmt->u.assoc_req.capab_info = host_to_le16(sta->assocreq_capab_info); in ctrl_inject_assocreq()
546 host_to_le16(sta->assocreq_listen_int); in ctrl_inject_assocreq()
591 host_to_le16(sta->assocreq_capab_info); in ctrl_inject_reassocreq()
593 host_to_le16(sta->assocreq_listen_int); in ctrl_inject_reassocreq()
625 mgmt.u.deauth.reason_code = host_to_le16(WLAN_REASON_UNSPECIFIED); in ctrl_inject_deauth()
650 mgmt.u.disassoc.reason_code = host_to_le16(WLAN_REASON_UNSPECIFIED); in ctrl_inject_disassoc()
Dccmp.c226 hdr->frame_control |= host_to_le16(WLAN_FC_ISWEP); in ccmp_encrypt()
276 hdr->frame_control |= host_to_le16(BIT(12)); /* Protected Frame */ in ccmp_encrypt_pv1()
359 hdr->frame_control |= host_to_le16(WLAN_FC_ISWEP); in ccmp_256_encrypt()
Drx_eapol.c1061 h->frame_control = host_to_le16(0x0208); in rx_data_eapol_key_3_of_4()
1329 h->frame_control = host_to_le16(0x0208); in rx_data_eapol_key_1_of_2()
/hostap-latest/wpa_supplicant/
Dwmm_ac.c302 tspec->nominal_msdu_size = host_to_le16(params->nominal_msdu_size); in wmm_ac_build_addts_req()
305 host_to_le16(WMM_AC_FIXED_MSDU_SIZE); in wmm_ac_build_addts_req()
310 host_to_le16(params->surplus_bandwidth_allowance); in wmm_ac_build_addts_req()
Dibss_rsn.c517 auth.u.auth.auth_alg = host_to_le16(WLAN_AUTH_OPEN); in ibss_rsn_send_auth()
518 auth.u.auth.auth_transaction = host_to_le16(seq); in ibss_rsn_send_auth()
519 auth.u.auth.status_code = host_to_le16(WLAN_STATUS_SUCCESS); in ibss_rsn_send_auth()
Dpasn_supplicant.c959 deauth->frame_control = host_to_le16((WLAN_FC_TYPE_MGMT << 2) | in wpas_pasn_deauthenticate()
966 host_to_le16(WLAN_REASON_PREV_AUTH_NOT_VALID); in wpas_pasn_deauthenticate()
Dsme.c1353 resp->frame_control = host_to_le16((WLAN_FC_TYPE_MGMT << 2) | in sme_external_auth_build_buf()
1358 resp->u.auth.auth_alg = host_to_le16(WLAN_AUTH_SAE); in sme_external_auth_build_buf()
1359 resp->seq_ctrl = host_to_le16(seq_num << 4); in sme_external_auth_build_buf()
1360 resp->u.auth.auth_transaction = host_to_le16(auth_transaction); in sme_external_auth_build_buf()
1361 resp->u.auth.status_code = host_to_le16(status_code); in sme_external_auth_build_buf()
Dwpa_supplicant.c5930 msk = host_to_le16(HT_CAP_INFO_MAX_AMSDU_SIZE); in wpa_disable_max_amsdu()
6011 le16 msk = host_to_le16(HT_CAP_INFO_SHORT_GI20MHZ | in wpa_set_disable_sgi()
6034 le16 msk = host_to_le16(HT_CAP_INFO_LDPC_CODING_CAP); in wpa_set_disable_ldpc()
6055 le16 msk = host_to_le16(HT_CAP_INFO_TX_STBC); in wpa_set_tx_stbc()
6081 le16 msk = host_to_le16(HT_CAP_INFO_RX_STBC_MASK); in wpa_set_rx_stbc()
6130 le16 bit = host_to_le16(HT_CAP_INFO_40MHZ_INTOLERANT); in wpa_supplicant_apply_ht_overrides()
6191 host_to_le16(3 << 2 * (i - 1)); \ in wpa_supplicant_apply_vht_overrides()
6193 host_to_le16(ssid->vht_tx_mcs_nss_ ##i << \ in wpa_supplicant_apply_vht_overrides()
6198 host_to_le16(3 << 2 * (i - 1)); \ in wpa_supplicant_apply_vht_overrides()
6200 host_to_le16(ssid->vht_rx_mcs_nss_ ##i << \ in wpa_supplicant_apply_vht_overrides()
/hostap-latest/src/pasn/
Dpasn_initiator.c1052 if (mgmt->u.auth.auth_alg != host_to_le16(WLAN_AUTH_PASN)) in is_pasn_auth_frame()
1079 host_to_le16(pasn->trans_seq + 1)) { in wpa_pasn_auth_rx()
1378 if (mgmt->u.auth.auth_transaction != host_to_le16(pasn->trans_seq)) { in wpa_pasn_auth_tx_status()
/hostap-latest/src/crypto/
Dcrypto_mbedtls_alt.c584 u16 ctr, n_le = host_to_le16(buf_len_bits); in hmac_prf_bits()
592 ctr = host_to_le16(ctr); in hmac_prf_bits()
608 ctr = host_to_le16(ctr); in hmac_prf_bits()
653 unsigned short ctr, n_le = host_to_le16(buf_len_bits); in hmac_prf256()
/hostap-latest/src/common/
Dhw_features_common.c817 le16 msk = host_to_le16(HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET | in set_disable_ht40()
Dwpa_common.c3862 auth->frame_control = host_to_le16((WLAN_FC_TYPE_MGMT << 2) | in wpa_pasn_build_auth_header()
3870 auth->u.auth.auth_alg = host_to_le16(WLAN_AUTH_PASN); in wpa_pasn_build_auth_header()
3871 auth->u.auth.auth_transaction = host_to_le16(trans_seq); in wpa_pasn_build_auth_header()
3872 auth->u.auth.status_code = host_to_le16(status); in wpa_pasn_build_auth_header()

12