/drivers/net/wireless/orinoco/ |
D | scan.c | 86 int ie_len; in orinoco_add_hostscan_result() local 98 ie_len = ie_buf[1] + 2; in orinoco_add_hostscan_result() 101 ie_len += symbol_build_supp_rates(ie, bss->s.rates); in orinoco_add_hostscan_result() 105 ie_len += prism_build_supp_rates(ie, bss->p.rates); in orinoco_add_hostscan_result() 128 beacon_interval, ie_buf, ie_len, signal, in orinoco_add_hostscan_result() 145 size_t ie_len; in orinoco_add_extscan_result() local 148 ie_len = len - sizeof(*bss); in orinoco_add_extscan_result() 149 ie = cfg80211_find_ie(WLAN_EID_DS_PARAMS, bss->data, ie_len); in orinoco_add_extscan_result() 162 beacon_interval, ie, ie_len, signal, in orinoco_add_extscan_result()
|
/drivers/net/wireless/mwifiex/ |
D | sta_ioctl.c | 738 u8 *ie_data_ptr, u16 ie_len) in mwifiex_set_wpa_ie_helper() argument 740 if (ie_len) { in mwifiex_set_wpa_ie_helper() 741 if (ie_len > sizeof(priv->wpa_ie)) { in mwifiex_set_wpa_ie_helper() 746 memcpy(priv->wpa_ie, ie_data_ptr, ie_len); in mwifiex_set_wpa_ie_helper() 747 priv->wpa_ie_len = (u8) ie_len; in mwifiex_set_wpa_ie_helper() 779 u8 *ie_data_ptr, u16 ie_len) in mwifiex_set_wapi_ie() argument 781 if (ie_len) { in mwifiex_set_wapi_ie() 782 if (ie_len > sizeof(priv->wapi_ie)) { in mwifiex_set_wapi_ie() 787 memcpy(priv->wapi_ie, ie_data_ptr, ie_len); in mwifiex_set_wapi_ie() 788 priv->wapi_ie_len = ie_len; in mwifiex_set_wapi_ie() [all …]
|
D | ie.c | 329 u16 rsn_idx = MWIFIEX_AUTO_IDX_MASK, ie_len = 0; in mwifiex_set_mgmt_ies() local 345 ie_len = rsn_ie->len + 2; in mwifiex_set_mgmt_ies() 346 gen_ie->ie_length = cpu_to_le16(ie_len); in mwifiex_set_mgmt_ies() 355 memcpy(gen_ie->ie_buffer + ie_len, in mwifiex_set_mgmt_ies() 357 ie_len += wpa_ie->len + 2; in mwifiex_set_mgmt_ies() 358 gen_ie->ie_length = cpu_to_le16(ie_len); in mwifiex_set_mgmt_ies()
|
D | tdls.c | 518 lnkid->ie_len = sizeof(struct ieee80211_tdls_lnkie) - in mwifiex_tdls_add_link_ie() 785 int ie_len = 0; in mwifiex_process_tdls_action_frame() local 807 ie_len = len - sizeof(struct ethhdr) - TDLS_REQ_FIX_LEN; in mwifiex_process_tdls_action_frame() 817 ie_len = len - sizeof(struct ethhdr) - TDLS_RESP_FIX_LEN; in mwifiex_process_tdls_action_frame() 825 ie_len = len - sizeof(struct ethhdr) - TDLS_CONFIRM_FIX_LEN; in mwifiex_process_tdls_action_frame() 838 for (end = pos + ie_len; pos + 1 < end; pos += 2 + pos[1]) { in mwifiex_process_tdls_action_frame()
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_ap.c | 717 int ie_len; in start_bss_network() local 787 …p = rtw_get_ie((pnetwork->IEs + sizeof(struct ndis_802_11_fixed_ie)), _HT_ADD_INFO_IE_, &ie_len, (… in start_bss_network() 788 if (p && ie_len) { in start_bss_network() 847 uint ie_len = 0; in rtw_check_beacon_data() local 901 …p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SSID_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_O… in rtw_check_beacon_data() 902 if (p && ie_len > 0) { in rtw_check_beacon_data() 904 memcpy(pbss_network->Ssid.Ssid, (p + 2), ie_len); in rtw_check_beacon_data() 905 pbss_network->Ssid.SsidLength = ie_len; in rtw_check_beacon_data() 911 …p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _DSSET_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_… in rtw_check_beacon_data() 912 if (p && ie_len > 0) in rtw_check_beacon_data() [all …]
|
D | rtw_mlme_ext.c | 661 unsigned int auth_mode, ie_len; in OnAuth() local 774 p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + 4 + _AUTH_IE_OFFSET_ , _CHLGETXT_IE_, (int *)&ie_len, in OnAuth() 777 if ((p == NULL) || (ie_len <= 0)) { in OnAuth() 914 int i, ie_len, wpa_ie_len, left; in OnAssocReq() local 987 p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + ie_offset, _SSID_IE_, &ie_len, in OnAssocReq() 992 if (ie_len == 0) { /* broadcast ssid, however it is not allowed in assocreq */ in OnAssocReq() 999 if (ie_len != cur->Ssid.SsidLength) in OnAssocReq() 1007 …p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + ie_offset, _SUPPORTEDRATES_IE_, &ie_len, pkt_len - WLAN_… in OnAssocReq() 1017 memcpy(supportRate, p+2, ie_len); in OnAssocReq() 1018 supportRateNum = ie_len; in OnAssocReq() [all …]
|
D | rtw_wlan_util.c | 1584 unsigned int ie_len; in update_sta_support_rate() local 1590 pIE = (struct ndis_802_11_var_ie *)rtw_get_ie(pvar_ie, _SUPPORTEDRATES_IE_, &ie_len, var_ie_len); in update_sta_support_rate() 1593 if (ie_len > NDIS_802_11_LENGTH_RATES_EX) in update_sta_support_rate() 1596 memcpy(pmlmeinfo->FW_sta_info[cam_idx].SupportedRates, pIE->data, ie_len); in update_sta_support_rate() 1597 supportRateNum = ie_len; in update_sta_support_rate() 1599 …pIE = (struct ndis_802_11_var_ie *)rtw_get_ie(pvar_ie, _EXT_SUPPORTEDRATES_IE_, &ie_len, var_ie_le… in update_sta_support_rate() 1601 if (supportRateNum + ie_len > NDIS_802_11_LENGTH_RATES_EX) in update_sta_support_rate() 1603 memcpy((pmlmeinfo->FW_sta_info[cam_idx].SupportedRates + supportRateNum), pIE->data, ie_len); in update_sta_support_rate()
|
D | rtw_mlme.c | 1764 static int rtw_append_pmkid(struct adapter *Adapter, int iEntry, u8 *ie, uint ie_len) in rtw_append_pmkid() argument 1770 ie[ie_len] = 1; in rtw_append_pmkid() 1771 ie_len++; in rtw_append_pmkid() 1772 ie[ie_len] = 0; /* PMKID count = 0x0100 */ in rtw_append_pmkid() 1773 ie_len++; in rtw_append_pmkid() 1774 memcpy(&ie[ie_len], &psecuritypriv->PMKIDList[iEntry].PMKID, 16); in rtw_append_pmkid() 1776 ie_len += 16; in rtw_append_pmkid() 1779 return ie_len; in rtw_append_pmkid() 2007 void rtw_update_ht_cap(struct adapter *padapter, u8 *pie, uint ie_len) in rtw_update_ht_cap() argument 2039 …p = rtw_get_ie(pie+sizeof(struct ndis_802_11_fixed_ie), _HT_CAPABILITY_IE_, &len, ie_len-sizeof(st… in rtw_update_ht_cap() [all …]
|
/drivers/staging/rtl8723au/core/ |
D | rtw_ap.c | 795 uint ie_len = 0; in rtw_check_beacon_data23a() local 841 p = rtw_get_ie23a(ie, WLAN_EID_SSID, &ie_len, pbss_network->IELength); in rtw_check_beacon_data23a() 842 if (p && ie_len > 0) { in rtw_check_beacon_data23a() 844 memcpy(pbss_network->Ssid.ssid, (p + 2), ie_len); in rtw_check_beacon_data23a() 845 pbss_network->Ssid.ssid_len = ie_len; in rtw_check_beacon_data23a() 850 p = rtw_get_ie23a(ie, WLAN_EID_DS_PARAMS, &ie_len, in rtw_check_beacon_data23a() 852 if (p && ie_len > 0) in rtw_check_beacon_data23a() 859 p = rtw_get_ie23a(ie, WLAN_EID_SUPP_RATES, &ie_len, in rtw_check_beacon_data23a() 862 memcpy(supportRate, p+2, ie_len); in rtw_check_beacon_data23a() 863 supportRateNum = ie_len; in rtw_check_beacon_data23a() [all …]
|
D | rtw_mlme.c | 1984 u8 *ie, uint ie_len) in rtw_append_pmkid() argument 1991 ie[ie_len] = 1; in rtw_append_pmkid() 1992 ie_len++; in rtw_append_pmkid() 1993 ie[ie_len] = 0; /* PMKID count = 0x0100 */ in rtw_append_pmkid() 1994 ie_len++; in rtw_append_pmkid() 1995 memcpy(&ie[ie_len], in rtw_append_pmkid() 1998 ie_len += 16; in rtw_append_pmkid() 2001 return ie_len; in rtw_append_pmkid() 2208 void rtw_update_ht_cap23a(struct rtw_adapter *padapter, u8 *pie, uint ie_len) in rtw_update_ht_cap23a() argument 2238 p = cfg80211_find_ie(WLAN_EID_HT_CAPABILITY, pie, ie_len); in rtw_update_ht_cap23a() [all …]
|
/drivers/net/wireless/ath/ath10k/ |
D | core.c | 387 size_t magic_len, len, ie_len; in ath10k_core_fetch_firmware_api_n() local 431 ie_len = le32_to_cpu(hdr->len); in ath10k_core_fetch_firmware_api_n() 436 if (len < ie_len) { in ath10k_core_fetch_firmware_api_n() 438 ie_id, len, ie_len); in ath10k_core_fetch_firmware_api_n() 445 if (ie_len > sizeof(ar->hw->wiphy->fw_version) - 1) in ath10k_core_fetch_firmware_api_n() 448 memcpy(ar->hw->wiphy->fw_version, data, ie_len); in ath10k_core_fetch_firmware_api_n() 449 ar->hw->wiphy->fw_version[ie_len] = '\0'; in ath10k_core_fetch_firmware_api_n() 456 if (ie_len != sizeof(u32)) in ath10k_core_fetch_firmware_api_n() 467 ie_len); in ath10k_core_fetch_firmware_api_n() 473 if (index == ie_len) in ath10k_core_fetch_firmware_api_n() [all …]
|
/drivers/uwb/ |
D | lc-rc.c | 167 int result, ie_len = 0; in ASIE_store() local 178 while (ie_len < sizeof(ie_buf)) { in ASIE_store() 182 &(ie_buf[ie_len]), &char_count) > 0) { in ASIE_store() 183 ++ie_len; in ASIE_store() 192 if (ie_len < sizeof(struct uwb_ie_hdr)) { in ASIE_store() 193 dev_err(dev, "%s: Invalid ASIE size %d.\n", __func__, ie_len); in ASIE_store() 205 if (ie->length > (ie_len - sizeof(struct uwb_ie_hdr))) in ASIE_store() 206 ie->length = ie_len - sizeof(struct uwb_ie_hdr); in ASIE_store()
|
D | ie.c | 45 size_t ie_len; in uwb_ie_next() local 51 ie_len = sizeof(struct uwb_ie_hdr) + hdr->length; in uwb_ie_next() 53 if (*len < ie_len) in uwb_ie_next() 56 *ptr += ie_len; in uwb_ie_next() 57 *len -= ie_len; in uwb_ie_next()
|
/drivers/net/wireless/ath/ath6kl/ |
D | init.c | 945 size_t magic_len, len, ie_len; in ath6kl_fetch_fw_apin() local 984 ie_len = le32_to_cpup(&hdr->len); in ath6kl_fetch_fw_apin() 989 if (len < ie_len) { in ath6kl_fetch_fw_apin() 1005 ie_len); in ath6kl_fetch_fw_apin() 1007 ar->fw_otp = kmemdup(data, ie_len, GFP_KERNEL); in ath6kl_fetch_fw_apin() 1014 ar->fw_otp_len = ie_len; in ath6kl_fetch_fw_apin() 1018 ie_len); in ath6kl_fetch_fw_apin() 1024 ar->fw = vmalloc(ie_len); in ath6kl_fetch_fw_apin() 1031 memcpy(ar->fw, data, ie_len); in ath6kl_fetch_fw_apin() 1032 ar->fw_len = ie_len; in ath6kl_fetch_fw_apin() [all …]
|
/drivers/staging/rtl8712/ |
D | rtl871x_cmd.h | 676 unsigned char ie_len; member 682 unsigned char ie_len; member 688 unsigned char ie_len; member 694 unsigned char ie_len; member
|
/drivers/net/wireless/ath/wil6210/ |
D | cfg80211.c | 312 if (request->ie_len) in wil_cfg80211_scan() 314 request->ie, request->ie_len); in wil_cfg80211_scan() 318 rc = wmi_set_ie(wil, WMI_FRAME_PROBE_REQ, request->ie_len, in wil_cfg80211_scan() 387 cfg80211_find_ie(WLAN_EID_RSN, sme->ie, sme->ie_len) : in wil_cfg80211_connect() 390 if (sme->ie_len > WMI_MAX_IE_LEN) { in wil_cfg80211_connect() 393 sme->ie_len); in wil_cfg80211_connect() 408 rc = wmi_set_ie(wil, WMI_FRAME_ASSOC_REQ, sme->ie_len, sme->ie); in wil_cfg80211_connect()
|
D | wmi.c | 342 size_t ie_len = d_len - offsetof(struct ieee80211_mgmt, in wmi_evt_rx_mgmt() local 348 ie_len, true); in wmi_evt_rx_mgmt() 968 int wmi_set_ie(struct wil6210_priv *wil, u8 type, u16 ie_len, const void *ie) in wmi_set_ie() argument 971 u16 len = sizeof(struct wmi_set_appie_cmd) + ie_len; in wmi_set_ie() 977 ie_len = 0; in wmi_set_ie() 981 cmd->ie_len = cpu_to_le16(ie_len); in wmi_set_ie() 982 memcpy(cmd->ie_info, ie, ie_len); in wmi_set_ie()
|
/drivers/staging/rtl8723au/include/ |
D | rtw_cmd.h | 601 unsigned char ie_len; member 607 unsigned char ie_len; member 613 unsigned char ie_len; member 619 unsigned char ie_len; member
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | scan.c | 590 const u8 *ies, int ie_len, const u8 *ssid, in iwl_fill_probe_req() argument 626 if (WARN_ON(left < ie_len)) in iwl_fill_probe_req() 629 if (ies && ie_len) { in iwl_fill_probe_req() 630 memcpy(pos, ies, ie_len); in iwl_fill_probe_req() 631 len += ie_len; in iwl_fill_probe_req() 871 priv->scan_request->ie_len, in iwlagn_request_scan()
|
/drivers/net/wireless/cw1200/ |
D | scan.c | 82 req->ie_len); in cw1200_hw_scan() 86 if (req->ie_len) in cw1200_hw_scan() 87 memcpy(skb_put(frame.skb, req->ie_len), req->ie, req->ie_len); in cw1200_hw_scan()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | wl_cfg80211.c | 193 u32 ie_len; /* total length including id & length field */ member 1205 if (params->ie && params->ie_len) in brcmf_cfg80211_join_ibss() 1206 brcmf_dbg(CONN, "ie len: %d\n", params->ie_len); in brcmf_cfg80211_join_ibss() 1451 if (brcmf_find_wpsie(sme->ie, sme->ie_len) && !pval && !gval && in brcmf_set_wsec_mode() 1619 u32 ie_len; in brcmf_cfg80211_connect() local 1636 ie_len = 0; in brcmf_cfg80211_connect() 1638 wpa_ie = brcmf_find_wpaie((u8 *)sme->ie, sme->ie_len); in brcmf_cfg80211_connect() 1641 ie_len = wpa_ie->len + TLV_HDR_LEN; in brcmf_cfg80211_connect() 1645 sme->ie_len, in brcmf_cfg80211_connect() 1649 ie_len = rsn_ie->len + TLV_HDR_LEN; in brcmf_cfg80211_connect() [all …]
|
D | p2p.c | 848 static s32 brcmf_p2p_find_listen_channel(const u8 *ie, u32 ie_len) in brcmf_p2p_find_listen_channel() argument 854 err = cfg80211_get_p2p_attr(ie, ie_len, in brcmf_p2p_find_listen_channel() 896 request->ie_len); in brcmf_p2p_scan_prep() 915 request->ie, request->ie_len); in brcmf_p2p_scan_prep() 1557 u16 ie_len; in brcmf_p2p_pub_af_tx() local 1613 ie_len = le16_to_cpu(action_frame->len) - in brcmf_p2p_pub_af_tx() 1615 if (cfg80211_get_p2p_attr(&act_frm->elts[0], ie_len, in brcmf_p2p_pub_af_tx()
|
/drivers/staging/rtl8188eu/os_dep/ |
D | ioctl_linux.c | 2687 int ie_len; in rtw_set_wps_beacon() local 2694 ie_len = len-12-2;/* 12 = param header, 2:no packed */ in rtw_set_wps_beacon() 2701 if (ie_len > 0) { in rtw_set_wps_beacon() 2702 pmlmepriv->wps_beacon_ie = rtw_malloc(ie_len); in rtw_set_wps_beacon() 2703 pmlmepriv->wps_beacon_ie_len = ie_len; in rtw_set_wps_beacon() 2709 memcpy(pmlmepriv->wps_beacon_ie, param->u.bcn_ie.buf, ie_len); in rtw_set_wps_beacon() 2724 int ie_len; in rtw_set_wps_probe_resp() local 2731 ie_len = len-12-2;/* 12 = param header, 2:no packed */ in rtw_set_wps_probe_resp() 2738 if (ie_len > 0) { in rtw_set_wps_probe_resp() 2739 pmlmepriv->wps_probe_resp_ie = rtw_malloc(ie_len); in rtw_set_wps_probe_resp() [all …]
|
/drivers/net/wireless/ti/wl18xx/ |
D | scan.c | 119 req->ie_len, in wl18xx_scan_send() 136 req->ie_len, in wl18xx_scan_send()
|
/drivers/net/wireless/ti/wlcore/ |
D | scan.h | 34 const u8 *ie, size_t ie_len, u8 band);
|