Home
last modified time | relevance | path

Searched refs:ie_len (Results 1 – 25 of 97) sorted by relevance

1234

/Linux-v4.19/drivers/net/wireless/intersil/orinoco/
Dscan.c86 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()
/Linux-v4.19/net/wireless/
Dwext-sme.c32 wdev->wext.connect.ie_len = wdev->wext.ie_len; in cfg80211_mgd_wext_connect()
315 int ie_len = data->length, err; in cfg80211_wext_siwgenie() local
320 if (!ie_len) in cfg80211_wext_siwgenie()
327 if (wdev->wext.ie_len == ie_len && in cfg80211_wext_siwgenie()
328 memcmp(wdev->wext.ie, ie, ie_len) == 0) in cfg80211_wext_siwgenie()
331 if (ie_len) { in cfg80211_wext_siwgenie()
332 ie = kmemdup(extra, ie_len, GFP_KERNEL); in cfg80211_wext_siwgenie()
342 wdev->wext.ie_len = ie_len; in cfg80211_wext_siwgenie()
Dmlme.c223 const u8 *ie, int ie_len, in cfg80211_mlme_auth() argument
230 .ie_len = ie_len, in cfg80211_mlme_auth()
335 const u8 *ie, int ie_len, u16 reason, in cfg80211_mlme_deauth() argument
343 .ie_len = ie_len, in cfg80211_mlme_deauth()
364 const u8 *ie, int ie_len, u16 reason, in cfg80211_mlme_disassoc() argument
372 .ie_len = ie_len, in cfg80211_mlme_disassoc()
Dcore.h232 size_t ie_len; member
339 const u8 *ie, int ie_len,
350 const u8 *ie, int ie_len, u16 reason,
354 const u8 *ie, int ie_len, u16 reason,
383 size_t ie_len, u16 reason, bool from_ap);
Dsme.c50 size_t ie_len; member
188 req.ie_len = params->ie_len; in cfg80211_conn_do_work()
549 if (cfg80211_sme_get_conn_ies(wdev, connect->ie, connect->ie_len, in cfg80211_sme_connect()
551 &wdev->conn->params.ie_len)) { in cfg80211_sme_connect()
1048 size_t ie_len, u16 reason, bool from_ap) in __cfg80211_disconnected() argument
1074 nl80211_send_disconnected(rdev, dev, reason, ie, ie_len, from_ap); in __cfg80211_disconnected()
1103 const u8 *ie, size_t ie_len, in cfg80211_disconnected() argument
1111 ev = kzalloc(sizeof(*ev) + ie_len, gfp); in cfg80211_disconnected()
1117 ev->dc.ie_len = ie_len; in cfg80211_disconnected()
1118 memcpy((void *)ev->dc.ie, ie, ie_len); in cfg80211_disconnected()
/Linux-v4.19/drivers/staging/rtl8188eu/core/
Drtw_ap.c607 uint ie_len; in start_bss_network() local
681 …p = rtw_get_ie((pnetwork->ies + sizeof(struct ndis_802_11_fixed_ie)), _HT_ADD_INFO_IE_, &ie_len, (… in start_bss_network()
682 if (p && ie_len) { in start_bss_network()
743 uint ie_len = 0; in rtw_check_beacon_data() local
795 …p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SSID_IE_, &ie_len, (pbss_network->ie_length - _BEACON_IE_… in rtw_check_beacon_data()
796 if (p && ie_len > 0) { in rtw_check_beacon_data()
798 memcpy(pbss_network->Ssid.Ssid, (p + 2), ie_len); in rtw_check_beacon_data()
799 pbss_network->Ssid.SsidLength = ie_len; in rtw_check_beacon_data()
805 …p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _DSSET_IE_, &ie_len, (pbss_network->ie_length - _BEACON_IE… in rtw_check_beacon_data()
806 if (p && ie_len > 0) in rtw_check_beacon_data()
[all …]
Drtw_mlme_ext.c951 uint ie_len = 0; in issue_asocrsp() local
954 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pnetwork->ie_length - _BE… in issue_asocrsp()
955 if (pbuf && ie_len > 0) { in issue_asocrsp()
956 memcpy(pframe, pbuf, ie_len+2); in issue_asocrsp()
957 pframe += (ie_len+2); in issue_asocrsp()
958 pattrib->pktlen += (ie_len+2); in issue_asocrsp()
962 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pnetwork->ie_length - _BEAC… in issue_asocrsp()
963 if (pbuf && ie_len > 0) { in issue_asocrsp()
964 memcpy(pframe, pbuf, ie_len+2); in issue_asocrsp()
965 pframe += (ie_len+2); in issue_asocrsp()
[all …]
Drtw_wlan_util.c1477 unsigned int ie_len; in update_sta_support_rate() local
1483 pIE = (struct ndis_802_11_var_ie *)rtw_get_ie(pvar_ie, _SUPPORTEDRATES_IE_, &ie_len, var_ie_len); in update_sta_support_rate()
1486 if (ie_len > NDIS_802_11_LENGTH_RATES_EX) in update_sta_support_rate()
1489 memcpy(pmlmeinfo->FW_sta_info[cam_idx].SupportedRates, pIE->data, ie_len); in update_sta_support_rate()
1490 supportRateNum = ie_len; in update_sta_support_rate()
1492 …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()
1494 if (supportRateNum + ie_len > NDIS_802_11_LENGTH_RATES_EX) in update_sta_support_rate()
1496 memcpy((pmlmeinfo->FW_sta_info[cam_idx].SupportedRates + supportRateNum), pIE->data, ie_len); in update_sta_support_rate()
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
Dsta_ioctl.c775 u8 *ie_data_ptr, u16 ie_len) in mwifiex_set_wpa_ie() argument
777 if (ie_len) { in mwifiex_set_wpa_ie()
778 if (ie_len > sizeof(priv->wpa_ie)) { in mwifiex_set_wpa_ie()
783 memcpy(priv->wpa_ie, ie_data_ptr, ie_len); in mwifiex_set_wpa_ie()
784 priv->wpa_ie_len = ie_len; in mwifiex_set_wpa_ie()
818 u8 *ie_data_ptr, u16 ie_len) in mwifiex_set_wapi_ie() argument
820 if (ie_len) { in mwifiex_set_wapi_ie()
821 if (ie_len > sizeof(priv->wapi_ie)) { in mwifiex_set_wapi_ie()
826 memcpy(priv->wapi_ie, ie_data_ptr, ie_len); in mwifiex_set_wapi_ie()
827 priv->wapi_ie_len = ie_len; in mwifiex_set_wapi_ie()
[all …]
Die.c330 u16 gen_idx = MWIFIEX_AUTO_IDX_MASK, ie_len = 0; in mwifiex_uap_parse_tail_ies() local
367 memcpy(gen_ie->ie_buffer + ie_len, hdr, in mwifiex_uap_parse_tail_ies()
369 ie_len += hdr->len + sizeof(struct ieee_types_header); in mwifiex_uap_parse_tail_ies()
383 memcpy(gen_ie->ie_buffer + ie_len, vendorhdr, in mwifiex_uap_parse_tail_ies()
385 ie_len += vendorhdr->len + sizeof(struct ieee_types_header); in mwifiex_uap_parse_tail_ies()
388 if (!ie_len) { in mwifiex_uap_parse_tail_ies()
397 gen_ie->ie_length = cpu_to_le16(ie_len); in mwifiex_uap_parse_tail_ies()
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/
Dinit.c955 size_t magic_len, len, ie_len; in ath6kl_fetch_fw_apin() local
1000 ie_len = le32_to_cpup(&hdr->len); in ath6kl_fetch_fw_apin()
1006 ie_id, ie_len, ie_len); in ath6kl_fetch_fw_apin()
1008 if (len < ie_len) { in ath6kl_fetch_fw_apin()
1010 len, ie_len, ie_id); in ath6kl_fetch_fw_apin()
1018 min(sizeof(ar->wiphy->fw_version), ie_len+1)); in ath6kl_fetch_fw_apin()
1026 ie_len); in ath6kl_fetch_fw_apin()
1028 ar->fw_otp = kmemdup(data, ie_len, GFP_KERNEL); in ath6kl_fetch_fw_apin()
1036 ar->fw_otp_len = ie_len; in ath6kl_fetch_fw_apin()
1040 ie_len); in ath6kl_fetch_fw_apin()
[all …]
/Linux-v4.19/drivers/staging/rtl8723bs/core/
Drtw_ap.c817 int ie_len; in start_bss_network() local
924 &ie_len, in start_bss_network()
927 if (p && ie_len) { in start_bss_network()
1024 uint ie_len = 0; in rtw_check_beacon_data() local
1085 &ie_len, in rtw_check_beacon_data()
1088 if (p && ie_len > 0) { in rtw_check_beacon_data()
1091 memcpy(pbss_network->Ssid.Ssid, (p + 2), ie_len); in rtw_check_beacon_data()
1092 pbss_network->Ssid.SsidLength = ie_len; in rtw_check_beacon_data()
1100 _DSSET_IE_, &ie_len, in rtw_check_beacon_data()
1103 if (p && ie_len > 0) in rtw_check_beacon_data()
[all …]
/Linux-v4.19/drivers/uwb/
Dlc-rc.c170 int result, ie_len = 0; in ASIE_store() local
181 while (ie_len < sizeof(ie_buf)) { in ASIE_store()
185 &(ie_buf[ie_len]), &char_count) > 0) { in ASIE_store()
186 ++ie_len; in ASIE_store()
195 if (ie_len < sizeof(struct uwb_ie_hdr)) { in ASIE_store()
196 dev_err(dev, "%s: Invalid ASIE size %d.\n", __func__, ie_len); in ASIE_store()
208 if (ie->length > (ie_len - sizeof(struct uwb_ie_hdr))) in ASIE_store()
209 ie->length = ie_len - sizeof(struct uwb_ie_hdr); in ASIE_store()
Die.c45 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()
/Linux-v4.19/net/mac80211/
Dmesh_plink.c222 u8 *pos, ie_len = 4; in mesh_plink_frame_tx() local
239 sdata->u.mesh.ie_len); in mesh_plink_frame_tx()
288 ie_len += 2; in mesh_plink_frame_tx()
293 ie_len += 2; in mesh_plink_frame_tx()
296 ie_len += 2; /* reason code */ in mesh_plink_frame_tx()
303 if (WARN_ON(skb_tailroom(skb) < 2 + ie_len)) in mesh_plink_frame_tx()
306 pos = skb_put(skb, 2 + ie_len); in mesh_plink_frame_tx()
308 *pos++ = ie_len; in mesh_plink_frame_tx()
986 u8 ie_len = elems->peering_len; in mesh_plink_get_event() local
1055 else if (ie_len == 8 && sta->mesh->llid != llid) in mesh_plink_get_event()
[all …]
Dmesh_hwmp.c113 u8 *pos, ie_len; in mesh_path_sel_frame_tx() local
138 ie_len = 37; in mesh_path_sel_frame_tx()
139 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
144 ie_len = 31; in mesh_path_sel_frame_tx()
145 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
150 ie_len = sizeof(struct ieee80211_rann_ie); in mesh_path_sel_frame_tx()
151 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
158 *pos++ = ie_len; in mesh_path_sel_frame_tx()
244 u8 *pos, ie_len; in mesh_path_error_tx() local
270 ie_len = 15; in mesh_path_error_tx()
[all …]
Dmesh.c338 if (!ifmsh->ie || !ifmsh->ie_len) in mesh_add_vendor_ies()
342 offset = ieee80211_ie_split_vendor(ifmsh->ie, ifmsh->ie_len, 0); in mesh_add_vendor_ies()
344 if (offset < ifmsh->ie_len) { in mesh_add_vendor_ies()
345 len = ifmsh->ie_len - offset; in mesh_add_vendor_ies()
361 if (!ifmsh->ie || !ifmsh->ie_len) in mesh_add_rsn_ie()
365 data = cfg80211_find_ie(WLAN_EID_RSN, ifmsh->ie, ifmsh->ie_len); in mesh_add_rsn_ie()
706 ifmsh->ie_len; in ieee80211_mesh_build_beacon()
743 int ie_len = 2 + sizeof(struct ieee80211_channel_sw_ie) + in ieee80211_mesh_build_beacon() local
746 pos = skb_put_zero(skb, ie_len); in ieee80211_mesh_build_beacon()
772 ie_len = 2 + sizeof(struct ieee80211_sec_chan_offs_ie); in ieee80211_mesh_build_beacon()
[all …]
Dutil.c1366 const u8 *ie, size_t ie_len, in ieee80211_build_preq_ies_band() argument
1415 if (ie && ie_len) { in ieee80211_build_preq_ies_band()
1421 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band()
1455 if (ie && ie_len) { in ieee80211_build_preq_ies_band()
1464 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band()
1482 if (ie && ie_len) { in ieee80211_build_preq_ies_band()
1496 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band()
1524 if (ie && ie_len) { in ieee80211_build_preq_ies_band()
1534 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band()
1566 const u8 *ie, size_t ie_len, in ieee80211_build_preq_ies() argument
[all …]
Dscan.c343 req->ie, req->ie_len, in ieee80211_prep_hw_scan()
346 local->hw_scan_req->req.ie_len = ielen; in ieee80211_prep_hw_scan()
540 const u8 *ie, size_t ie_len, in ieee80211_send_scan_probe_req() argument
549 ie, ie_len, flags); in ieee80211_send_scan_probe_req()
593 scan_req->ie, scan_req->ie_len, in ieee80211_scan_state_send_probe()
626 local->hw_scan_ies_bufsize = local->scan_ies_len + req->ie_len; in __ieee80211_start_scan()
1185 iebufsz = local->scan_ies_len + req->ie_len; in __ieee80211_request_sched_scan_start()
1213 req->ie_len, bands_used, rate_masks, &chandef, in __ieee80211_request_sched_scan_start()
/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dcore.c1313 size_t ie_len; in ath10k_core_search_bd() local
1320 ie_len = le32_to_cpu(hdr->len); in ath10k_core_search_bd()
1325 if (len < ALIGN(ie_len, 4)) { in ath10k_core_search_bd()
1327 ie_id, ie_len, len); in ath10k_core_search_bd()
1333 ret = ath10k_core_parse_bd_ie_board(ar, data, ie_len, in ath10k_core_search_bd()
1344 ie_len = ALIGN(ie_len, 4); in ath10k_core_search_bd()
1346 len -= ie_len; in ath10k_core_search_bd()
1347 data += ie_len; in ath10k_core_search_bd()
1496 size_t magic_len, len, ie_len; in ath10k_core_fetch_firmware_api_n() local
1538 ie_len = le32_to_cpu(hdr->len); in ath10k_core_fetch_firmware_api_n()
[all …]
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/
Devent.c88 unsigned int ie_len; in qtnf_event_handle_sta_assoc() local
96 ie_len = tlv_value_len - in qtnf_event_handle_sta_assoc()
99 if (ie_set->type == QLINK_IE_SET_ASSOC_REQ && ie_len) { in qtnf_event_handle_sta_assoc()
101 sinfo->assoc_req_ies_len = ie_len; in qtnf_event_handle_sta_assoc()
301 unsigned int ie_len; in qtnf_event_handle_scan_results() local
307 ie_len = tlv_value_len - in qtnf_event_handle_scan_results()
321 if (ie_len) { in qtnf_event_handle_scan_results()
323 ies_len = ie_len; in qtnf_event_handle_scan_results()
/Linux-v4.19/drivers/staging/rtl8712/
Drtl871x_cmd.h661 unsigned char ie_len; member
667 unsigned char ie_len; member
673 unsigned char ie_len; member
679 unsigned char ie_len; member
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/dvm/
Dscan.c585 const u8 *ies, int ie_len, const u8 *ssid, in iwl_fill_probe_req() argument
621 if (WARN_ON(left < ie_len)) in iwl_fill_probe_req()
624 if (ies && ie_len) { in iwl_fill_probe_req()
625 memcpy(pos, ies, ie_len); in iwl_fill_probe_req()
626 len += ie_len; in iwl_fill_probe_req()
866 priv->scan_request->ie_len, in iwlagn_request_scan()
/Linux-v4.19/drivers/staging/rtl8723bs/include/
Drtw_cmd.h737 unsigned char ie_len; member
743 unsigned char ie_len; member
749 unsigned char ie_len; member
755 unsigned char ie_len; member
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c233 u32 ie_len; /* total length including id & length field */ member
1112 request->ie, request->ie_len); in brcmf_cfg80211_scan()
1332 if (params->ie && params->ie_len) in brcmf_cfg80211_join_ibss()
1333 brcmf_dbg(CONN, "ie len: %d\n", params->ie_len); in brcmf_cfg80211_join_ibss()
1576 if (brcmf_find_wpsie(sme->ie, sme->ie_len) && !pval && !gval && in brcmf_set_wsec_mode()
1603 u32 ie_len; in brcmf_set_key_mgmt() local
1667 rsn_ie = brcmf_parse_tlvs((const u8 *)sme->ie, sme->ie_len, in brcmf_set_key_mgmt()
1672 ie_len = rsn_ie->len + TLV_HDR_LEN; in brcmf_set_key_mgmt()
1675 if (offset + WPA_IE_SUITE_COUNT_LEN >= ie_len) in brcmf_set_key_mgmt()
1680 if (offset + WPA_IE_SUITE_COUNT_LEN >= ie_len) in brcmf_set_key_mgmt()
[all …]

1234