Lines Matching refs:tlv
300 u8 *tlv = *tlv_buf; in mwifiex_uap_bss_wpa() local
302 tlv_akmp = (struct host_cmd_tlv_akmp *)tlv; in mwifiex_uap_bss_wpa()
309 tlv += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa()
312 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
320 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa()
324 pwk_cipher = (struct host_cmd_tlv_pwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
332 tlv += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa()
336 gwk_cipher = (struct host_cmd_tlv_gwk_cipher *)tlv; in mwifiex_uap_bss_wpa()
343 tlv += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa()
347 passphrase = (struct host_cmd_tlv_passphrase *)tlv; in mwifiex_uap_bss_wpa()
355 tlv += sizeof(struct mwifiex_ie_types_header) + in mwifiex_uap_bss_wpa()
360 *tlv_buf = tlv; in mwifiex_uap_bss_wpa()
409 u8 *tlv = *tlv_buf; in mwifiex_uap_bss_wep() local
416 wep_key = (struct host_cmd_tlv_wep_key *)tlv; in mwifiex_uap_bss_wep()
427 tlv += sizeof(struct mwifiex_ie_types_header) + 2 + in mwifiex_uap_bss_wep()
433 *tlv_buf = tlv; in mwifiex_uap_bss_wep()
464 mwifiex_uap_bss_param_prepare(u8 *tlv, void *cmd_buf, u16 *param_size) in mwifiex_uap_bss_param_prepare() argument
486 mac_tlv = (struct host_cmd_tlv_mac_addr *)tlv; in mwifiex_uap_bss_param_prepare()
491 tlv += sizeof(struct host_cmd_tlv_mac_addr); in mwifiex_uap_bss_param_prepare()
494 ssid = (struct host_cmd_tlv_ssid *)tlv; in mwifiex_uap_bss_param_prepare()
500 tlv += sizeof(struct mwifiex_ie_types_header) + in mwifiex_uap_bss_param_prepare()
503 bcast_ssid = (struct host_cmd_tlv_bcast_ssid *)tlv; in mwifiex_uap_bss_param_prepare()
509 tlv += sizeof(struct host_cmd_tlv_bcast_ssid); in mwifiex_uap_bss_param_prepare()
512 tlv_rates = (struct host_cmd_tlv_rates *)tlv; in mwifiex_uap_bss_param_prepare()
521 tlv += sizeof(struct host_cmd_tlv_rates) + i; in mwifiex_uap_bss_param_prepare()
528 chan_band = (struct host_cmd_tlv_channel_band *)tlv; in mwifiex_uap_bss_param_prepare()
536 tlv += sizeof(struct host_cmd_tlv_channel_band); in mwifiex_uap_bss_param_prepare()
540 beacon_period = (struct host_cmd_tlv_beacon_period *)tlv; in mwifiex_uap_bss_param_prepare()
548 tlv += sizeof(struct host_cmd_tlv_beacon_period); in mwifiex_uap_bss_param_prepare()
552 dtim_period = (struct host_cmd_tlv_dtim_period *)tlv; in mwifiex_uap_bss_param_prepare()
560 tlv += sizeof(struct host_cmd_tlv_dtim_period); in mwifiex_uap_bss_param_prepare()
563 rts_threshold = (struct host_cmd_tlv_rts_threshold *)tlv; in mwifiex_uap_bss_param_prepare()
571 tlv += sizeof(struct host_cmd_tlv_frag_threshold); in mwifiex_uap_bss_param_prepare()
575 frag_threshold = (struct host_cmd_tlv_frag_threshold *)tlv; in mwifiex_uap_bss_param_prepare()
583 tlv += sizeof(struct host_cmd_tlv_frag_threshold); in mwifiex_uap_bss_param_prepare()
586 retry_limit = (struct host_cmd_tlv_retry_limit *)tlv; in mwifiex_uap_bss_param_prepare()
594 tlv += sizeof(struct host_cmd_tlv_retry_limit); in mwifiex_uap_bss_param_prepare()
599 mwifiex_uap_bss_wpa(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare()
601 mwifiex_uap_bss_wep(&tlv, cmd_buf, &cmd_size); in mwifiex_uap_bss_param_prepare()
605 auth_type = (struct host_cmd_tlv_auth_type *)tlv; in mwifiex_uap_bss_param_prepare()
612 tlv += sizeof(struct host_cmd_tlv_auth_type); in mwifiex_uap_bss_param_prepare()
615 encrypt_protocol = (struct host_cmd_tlv_encrypt_protocol *)tlv; in mwifiex_uap_bss_param_prepare()
623 tlv += sizeof(struct host_cmd_tlv_encrypt_protocol); in mwifiex_uap_bss_param_prepare()
627 htcap = (struct mwifiex_ie_types_htcap *)tlv; in mwifiex_uap_bss_param_prepare()
642 tlv += sizeof(struct mwifiex_ie_types_htcap); in mwifiex_uap_bss_param_prepare()
646 wmm_cap = (struct mwifiex_ie_types_wmmcap *)tlv; in mwifiex_uap_bss_param_prepare()
652 tlv += sizeof(struct mwifiex_ie_types_wmmcap); in mwifiex_uap_bss_param_prepare()
656 ao_timer = (struct host_cmd_tlv_ageout_timer *)tlv; in mwifiex_uap_bss_param_prepare()
662 tlv += sizeof(*ao_timer); in mwifiex_uap_bss_param_prepare()
666 pwr_ct = (void *)tlv; in mwifiex_uap_bss_param_prepare()
671 tlv += sizeof(*pwr_ct); in mwifiex_uap_bss_param_prepare()
675 ps_ao_timer = (struct host_cmd_tlv_ageout_timer *)tlv; in mwifiex_uap_bss_param_prepare()
683 tlv += sizeof(*ps_ao_timer); in mwifiex_uap_bss_param_prepare()
692 static int mwifiex_uap_custom_ie_prepare(u8 *tlv, void *cmd_buf, u16 *ie_size) in mwifiex_uap_custom_ie_prepare() argument
695 struct mwifiex_ie_types_header *tlv_ie = (void *)tlv; in mwifiex_uap_custom_ie_prepare()
705 tlv += sizeof(struct mwifiex_ie_types_header); in mwifiex_uap_custom_ie_prepare()
707 memcpy(tlv, ap_ie->ie_list, le16_to_cpu(ap_ie->len)); in mwifiex_uap_custom_ie_prepare()
719 u8 *tlv; in mwifiex_cmd_uap_sys_config() local
727 tlv = sys_cfg->tlv; in mwifiex_cmd_uap_sys_config()
732 if (mwifiex_uap_bss_param_prepare(tlv, cmd_buf, ¶m_size)) in mwifiex_cmd_uap_sys_config()
738 if (mwifiex_uap_custom_ie_prepare(tlv, cmd_buf, &ie_size)) in mwifiex_cmd_uap_sys_config()
754 struct mwifiex_ie_types_host_mlme *tlv; in mwifiex_cmd_uap_bss_start() local
761 tlv = (struct mwifiex_ie_types_host_mlme *)((u8 *)cmd + size); in mwifiex_cmd_uap_bss_start()
762 tlv->header.type = cpu_to_le16(TLV_TYPE_HOST_MLME); in mwifiex_cmd_uap_bss_start()
763 tlv->header.len = cpu_to_le16(sizeof(tlv->host_mlme)); in mwifiex_cmd_uap_bss_start()
764 tlv->host_mlme = 1; in mwifiex_cmd_uap_bss_start()
803 struct mwifiex_ie_types_data *tlv; in mwifiex_cmd_uap_add_station() local
830 pos = new_sta->tlv; in mwifiex_cmd_uap_add_station()
842 tlv = (struct mwifiex_ie_types_data *)pos; in mwifiex_cmd_uap_add_station()
843 tlv->header.type = cpu_to_le16(WLAN_EID_EXT_CAPABILITY); in mwifiex_cmd_uap_add_station()
845 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station()
846 memcpy(tlv->data, params->ext_capab, tlv_len); in mwifiex_cmd_uap_add_station()
852 tlv = (struct mwifiex_ie_types_data *)pos; in mwifiex_cmd_uap_add_station()
853 tlv->header.type = cpu_to_le16(WLAN_EID_SUPP_RATES); in mwifiex_cmd_uap_add_station()
855 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station()
856 memcpy(tlv->data, in mwifiex_cmd_uap_add_station()
863 tlv = (struct mwifiex_ie_types_data *)pos; in mwifiex_cmd_uap_add_station()
864 tlv->header.type = cpu_to_le16(WLAN_EID_QOS_CAPA); in mwifiex_cmd_uap_add_station()
866 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station()
868 memcpy(tlv->data, &qos_capa, tlv_len); in mwifiex_cmd_uap_add_station()
875 tlv = (struct mwifiex_ie_types_data *)pos; in mwifiex_cmd_uap_add_station()
876 tlv->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_cmd_uap_add_station()
878 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station()
879 memcpy(tlv->data, params->link_sta_params.ht_capa, tlv_len); in mwifiex_cmd_uap_add_station()
891 tlv = (struct mwifiex_ie_types_data *)pos; in mwifiex_cmd_uap_add_station()
892 tlv->header.type = cpu_to_le16(WLAN_EID_VHT_CAPABILITY); in mwifiex_cmd_uap_add_station()
894 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station()
895 memcpy(tlv->data, params->link_sta_params.vht_capa, tlv_len); in mwifiex_cmd_uap_add_station()
902 tlv = (struct mwifiex_ie_types_data *)pos; in mwifiex_cmd_uap_add_station()
903 tlv->header.type = cpu_to_le16(WLAN_EID_OPMODE_NOTIF); in mwifiex_cmd_uap_add_station()
905 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station()
906 memcpy(tlv->data, ¶ms->link_sta_params.opmode_notif, in mwifiex_cmd_uap_add_station()