Lines Matching refs:cpu_to_le16
49 ie_header.type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); in mwifiex_cmd_append_generic_ie()
50 ie_header.len = cpu_to_le16(priv->gen_ie_buf_len); in mwifiex_cmd_append_generic_ie()
103 tsf_tlv.header.type = cpu_to_le16(TLV_TYPE_TSFTIMESTAMP); in mwifiex_cmd_append_tsf_tlv()
104 tsf_tlv.header.len = cpu_to_le16(2 * sizeof(tsf_val)); in mwifiex_cmd_append_tsf_tlv()
244 ie_header.type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); in mwifiex_cmd_append_wps_ie()
245 ie_header.len = cpu_to_le16(priv->wps_ie_len); in mwifiex_cmd_append_wps_ie()
291 ie_header.type = cpu_to_le16(TLV_TYPE_WAPI_IE); in mwifiex_cmd_append_wapi_ie()
292 ie_header.len = cpu_to_le16(priv->wapi_ie_len); in mwifiex_cmd_append_wapi_ie()
328 rsn_ie_tlv->header.type = cpu_to_le16((u16) priv->wpa_ie[0]); in mwifiex_append_rsn_ie_wpa_wpa2()
329 rsn_ie_tlv->header.type = cpu_to_le16( in mwifiex_append_rsn_ie_wpa_wpa2()
331 rsn_ie_tlv->header.len = cpu_to_le16((u16) priv->wpa_ie[1]); in mwifiex_append_rsn_ie_wpa_wpa2()
332 rsn_ie_tlv->header.len = cpu_to_le16(le16_to_cpu(rsn_ie_tlv->header.len) in mwifiex_append_rsn_ie_wpa_wpa2()
396 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_ASSOCIATE); in mwifiex_cmd_802_11_associate()
406 assoc->listen_interval = cpu_to_le16(priv->listen_interval); in mwifiex_cmd_802_11_associate()
408 assoc->beacon_period = cpu_to_le16(bss_desc->beacon_period); in mwifiex_cmd_802_11_associate()
416 ssid_tlv->header.type = cpu_to_le16(WLAN_EID_SSID); in mwifiex_cmd_802_11_associate()
417 ssid_tlv->header.len = cpu_to_le16((u16) bss_desc->ssid.ssid_len); in mwifiex_cmd_802_11_associate()
423 phy_tlv->header.type = cpu_to_le16(WLAN_EID_DS_PARAMS); in mwifiex_cmd_802_11_associate()
424 phy_tlv->header.len = cpu_to_le16(sizeof(phy_tlv->fh_ds.ds_param_set)); in mwifiex_cmd_802_11_associate()
431 ss_tlv->header.type = cpu_to_le16(WLAN_EID_CF_PARAMS); in mwifiex_cmd_802_11_associate()
432 ss_tlv->header.len = cpu_to_le16(sizeof(ss_tlv->cf_ibss.cf_param_set)); in mwifiex_cmd_802_11_associate()
446 rates_tlv->header.type = cpu_to_le16(WLAN_EID_SUPP_RATES); in mwifiex_cmd_802_11_associate()
447 rates_tlv->header.len = cpu_to_le16((u16) rates_size); in mwifiex_cmd_802_11_associate()
455 auth_tlv->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); in mwifiex_cmd_802_11_associate()
456 auth_tlv->header.len = cpu_to_le16(sizeof(auth_tlv->auth_type)); in mwifiex_cmd_802_11_associate()
458 auth_tlv->auth_type = cpu_to_le16( in mwifiex_cmd_802_11_associate()
461 auth_tlv->auth_type = cpu_to_le16(NL80211_AUTHTYPE_OPEN_SYSTEM); in mwifiex_cmd_802_11_associate()
466 auth_tlv->auth_type = cpu_to_le16(MWIFIEX_AUTHTYPE_SAE); in mwifiex_cmd_802_11_associate()
474 cpu_to_le16(TLV_TYPE_SAE_PWE_MODE); in mwifiex_cmd_802_11_associate()
476 cpu_to_le16(sizeof(sae_pwe_tlv->pwe[0])); in mwifiex_cmd_802_11_associate()
494 chan_tlv->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); in mwifiex_cmd_802_11_associate()
496 cpu_to_le16(sizeof(struct mwifiex_chan_scan_param_set)); in mwifiex_cmd_802_11_associate()
516 host_mlme_tlv->header.type = cpu_to_le16(TLV_TYPE_HOST_MLME); in mwifiex_cmd_802_11_associate()
518 cpu_to_le16(sizeof(host_mlme_tlv->host_mlme)); in mwifiex_cmd_802_11_associate()
560 cmd->size = cpu_to_le16((u16) (pos - (u8 *) assoc) + S_DS_GEN); in mwifiex_cmd_802_11_associate()
572 assoc->cap_info_bitmap = cpu_to_le16(tmp_cap); in mwifiex_cmd_802_11_associate()
703 assoc_rsp->a_id = cpu_to_le16(aid); in mwifiex_ret_802_11_associate()
892 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_AD_HOC_START); in mwifiex_cmd_802_11_ad_hoc_start()
924 adhoc_start->beacon_period = cpu_to_le16(priv->beacon_period); in mwifiex_cmd_802_11_ad_hoc_start()
974 = cpu_to_le16(priv->atim_window); in mwifiex_cmd_802_11_ad_hoc_start()
1027 chan_tlv->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); in mwifiex_cmd_802_11_ad_hoc_start()
1029 cpu_to_le16(sizeof(struct mwifiex_chan_scan_param_set)); in mwifiex_cmd_802_11_ad_hoc_start()
1076 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_cmd_802_11_ad_hoc_start()
1078 cpu_to_le16(sizeof(struct ieee80211_ht_cap)); in mwifiex_cmd_802_11_ad_hoc_start()
1090 ht_cap->ht_cap.cap_info = cpu_to_le16(tmp_ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
1099 ht_info->header.type = cpu_to_le16(WLAN_EID_HT_OPERATION); in mwifiex_cmd_802_11_ad_hoc_start()
1101 cpu_to_le16(sizeof(struct ieee80211_ht_operation)); in mwifiex_cmd_802_11_ad_hoc_start()
1111 cpu_to_le16(IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT); in mwifiex_cmd_802_11_ad_hoc_start()
1119 cpu_to_le16((u16)(sizeof(struct host_cmd_ds_802_11_ad_hoc_start) in mwifiex_cmd_802_11_ad_hoc_start()
1127 adhoc_start->cap_info_bitmap = cpu_to_le16(tmp_cap); in mwifiex_cmd_802_11_ad_hoc_start()
1183 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_AD_HOC_JOIN); in mwifiex_cmd_802_11_ad_hoc_join()
1188 = cpu_to_le16(bss_desc->beacon_period); in mwifiex_cmd_802_11_ad_hoc_join()
1243 chan_tlv->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); in mwifiex_cmd_802_11_ad_hoc_join()
1245 cpu_to_le16(sizeof(struct mwifiex_chan_scan_param_set)); in mwifiex_cmd_802_11_ad_hoc_join()
1279 cmd->size = cpu_to_le16 in mwifiex_cmd_802_11_ad_hoc_join()
1283 adhoc_join->bss_descriptor.cap_info_bitmap = cpu_to_le16(tmp_cap); in mwifiex_cmd_802_11_ad_hoc_join()