Lines Matching refs:cpu_to_le16
164 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params()
308 tlv_akmp->header.type = cpu_to_le16(TLV_TYPE_UAP_AKMP); in mwifiex_uap_bss_wpa()
309 tlv_akmp->header.len = cpu_to_le16(sizeof(struct host_cmd_tlv_akmp) - in mwifiex_uap_bss_wpa()
311 tlv_akmp->key_mgmt_operation = cpu_to_le16(bss_cfg->key_mgmt_operation); in mwifiex_uap_bss_wpa()
312 tlv_akmp->key_mgmt = cpu_to_le16(bss_cfg->key_mgmt); in mwifiex_uap_bss_wpa()
318 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); in mwifiex_uap_bss_wpa()
320 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - in mwifiex_uap_bss_wpa()
322 pwk_cipher->proto = cpu_to_le16(PROTOCOL_WPA); in mwifiex_uap_bss_wpa()
330 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); in mwifiex_uap_bss_wpa()
332 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - in mwifiex_uap_bss_wpa()
334 pwk_cipher->proto = cpu_to_le16(PROTOCOL_WPA2); in mwifiex_uap_bss_wpa()
342 gwk_cipher->header.type = cpu_to_le16(TLV_TYPE_GWK_CIPHER); in mwifiex_uap_bss_wpa()
344 cpu_to_le16(sizeof(struct host_cmd_tlv_gwk_cipher) - in mwifiex_uap_bss_wpa()
354 cpu_to_le16(TLV_TYPE_UAP_WPA_PASSPHRASE); in mwifiex_uap_bss_wpa()
355 passphrase->header.len = cpu_to_le16(bss_cfg->wpa_cfg.length); in mwifiex_uap_bss_wpa()
423 cpu_to_le16(TLV_TYPE_UAP_WEP_KEY); in mwifiex_uap_bss_wep()
425 cpu_to_le16(bss_cfg->wep_cfg[i].length + 2); in mwifiex_uap_bss_wep()
492 ssid->header.type = cpu_to_le16(TLV_TYPE_UAP_SSID); in mwifiex_uap_bss_param_prepare()
493 ssid->header.len = cpu_to_le16((u16)bss_cfg->ssid.ssid_len); in mwifiex_uap_bss_param_prepare()
501 bcast_ssid->header.type = cpu_to_le16(TLV_TYPE_UAP_BCAST_SSID); in mwifiex_uap_bss_param_prepare()
503 cpu_to_le16(sizeof(bcast_ssid->bcast_ctl)); in mwifiex_uap_bss_param_prepare()
510 tlv_rates->header.type = cpu_to_le16(TLV_TYPE_UAP_RATES); in mwifiex_uap_bss_param_prepare()
516 tlv_rates->header.len = cpu_to_le16(i); in mwifiex_uap_bss_param_prepare()
526 chan_band->header.type = cpu_to_le16(TLV_TYPE_CHANNELBANDLIST); in mwifiex_uap_bss_param_prepare()
528 cpu_to_le16(sizeof(struct host_cmd_tlv_channel_band) - in mwifiex_uap_bss_param_prepare()
539 cpu_to_le16(TLV_TYPE_UAP_BEACON_PERIOD); in mwifiex_uap_bss_param_prepare()
541 cpu_to_le16(sizeof(struct host_cmd_tlv_beacon_period) - in mwifiex_uap_bss_param_prepare()
543 beacon_period->period = cpu_to_le16(bss_cfg->beacon_period); in mwifiex_uap_bss_param_prepare()
551 cpu_to_le16(TLV_TYPE_UAP_DTIM_PERIOD); in mwifiex_uap_bss_param_prepare()
553 cpu_to_le16(sizeof(struct host_cmd_tlv_dtim_period) - in mwifiex_uap_bss_param_prepare()
562 cpu_to_le16(TLV_TYPE_UAP_RTS_THRESHOLD); in mwifiex_uap_bss_param_prepare()
564 cpu_to_le16(sizeof(struct host_cmd_tlv_rts_threshold) - in mwifiex_uap_bss_param_prepare()
566 rts_threshold->rts_thr = cpu_to_le16(bss_cfg->rts_threshold); in mwifiex_uap_bss_param_prepare()
574 cpu_to_le16(TLV_TYPE_UAP_FRAG_THRESHOLD); in mwifiex_uap_bss_param_prepare()
576 cpu_to_le16(sizeof(struct host_cmd_tlv_frag_threshold) - in mwifiex_uap_bss_param_prepare()
578 frag_threshold->frag_thr = cpu_to_le16(bss_cfg->frag_threshold); in mwifiex_uap_bss_param_prepare()
585 cpu_to_le16(TLV_TYPE_UAP_RETRY_LIMIT); in mwifiex_uap_bss_param_prepare()
587 cpu_to_le16(sizeof(struct host_cmd_tlv_retry_limit) - in mwifiex_uap_bss_param_prepare()
603 auth_type->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); in mwifiex_uap_bss_param_prepare()
605 cpu_to_le16(sizeof(struct host_cmd_tlv_auth_type) - in mwifiex_uap_bss_param_prepare()
614 cpu_to_le16(TLV_TYPE_UAP_ENCRY_PROTOCOL); in mwifiex_uap_bss_param_prepare()
616 cpu_to_le16(sizeof(struct host_cmd_tlv_encrypt_protocol) in mwifiex_uap_bss_param_prepare()
618 encrypt_protocol->proto = cpu_to_le16(bss_cfg->protocol); in mwifiex_uap_bss_param_prepare()
625 htcap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_uap_bss_param_prepare()
627 cpu_to_le16(sizeof(struct ieee80211_ht_cap)); in mwifiex_uap_bss_param_prepare()
644 wmm_cap->header.type = cpu_to_le16(WLAN_EID_VENDOR_SPECIFIC); in mwifiex_uap_bss_param_prepare()
645 wmm_cap->header.len = cpu_to_le16(sizeof(wmm_cap->wmm_info)); in mwifiex_uap_bss_param_prepare()
654 ao_timer->header.type = cpu_to_le16(TLV_TYPE_UAP_AO_TIMER); in mwifiex_uap_bss_param_prepare()
655 ao_timer->header.len = cpu_to_le16(sizeof(*ao_timer) - in mwifiex_uap_bss_param_prepare()
664 pwr_ct->header.type = cpu_to_le16(TLV_TYPE_PWR_CONSTRAINT); in mwifiex_uap_bss_param_prepare()
665 pwr_ct->header.len = cpu_to_le16(sizeof(u8)); in mwifiex_uap_bss_param_prepare()
674 cpu_to_le16(TLV_TYPE_UAP_PS_AO_TIMER); in mwifiex_uap_bss_param_prepare()
675 ps_ao_timer->header.len = cpu_to_le16(sizeof(*ps_ao_timer) - in mwifiex_uap_bss_param_prepare()
700 tlv_ie->type = cpu_to_le16(TLV_TYPE_MGMT_IE); in mwifiex_uap_custom_ie_prepare()
720 cmd->command = cpu_to_le16(HostCmd_CMD_UAP_SYS_CONFIG); in mwifiex_cmd_uap_sys_config()
723 sys_cfg->action = cpu_to_le16(cmd_action); in mwifiex_cmd_uap_sys_config()
731 cmd->size = cpu_to_le16(param_size); in mwifiex_cmd_uap_sys_config()
737 cmd->size = cpu_to_le16(ie_size); in mwifiex_cmd_uap_sys_config()
754 cmd->command = cpu_to_le16(HostCmd_CMD_UAP_STA_DEAUTH); in mwifiex_cmd_uap_sta_deauth()
756 sta_deauth->reason = cpu_to_le16(WLAN_REASON_DEAUTH_LEAVING); in mwifiex_cmd_uap_sta_deauth()
758 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_sta_deauth) + in mwifiex_cmd_uap_sta_deauth()
783 cmd->command = cpu_to_le16(cmd_no); in mwifiex_uap_prepare_cmd()
784 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_uap_prepare_cmd()