Home
last modified time | relevance | path

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

12345

/linux-6.1.9/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-6.1.9/net/wireless/
Dwext-sme.c32 wdev->wext.connect.ie_len = wdev->wext.ie_len; in cfg80211_mgd_wext_connect()
332 int ie_len = data->length, err; in cfg80211_wext_siwgenie() local
337 if (!ie_len) in cfg80211_wext_siwgenie()
344 if (wdev->wext.ie_len == ie_len && in cfg80211_wext_siwgenie()
345 memcmp(wdev->wext.ie, ie, ie_len) == 0) in cfg80211_wext_siwgenie()
348 if (ie_len) { in cfg80211_wext_siwgenie()
349 ie = kmemdup(extra, ie_len, GFP_KERNEL); in cfg80211_wext_siwgenie()
359 wdev->wext.ie_len = ie_len; in cfg80211_wext_siwgenie()
Dsme.c50 size_t ie_len; member
194 req.ie_len = params->ie_len; in cfg80211_conn_do_work()
578 if (cfg80211_sme_get_conn_ies(wdev, connect->ie, connect->ie_len, in cfg80211_sme_connect()
580 &wdev->conn->params.ie_len)) { in cfg80211_sme_connect()
1286 size_t ie_len, u16 reason, bool from_ap) in __cfg80211_disconnected() argument
1308 nl80211_send_disconnected(rdev, dev, reason, ie, ie_len, from_ap); in __cfg80211_disconnected()
1347 const u8 *ie, size_t ie_len, in cfg80211_disconnected() argument
1355 ev = kzalloc(sizeof(*ev) + ie_len, gfp); in cfg80211_disconnected()
1361 ev->dc.ie_len = ie_len; in cfg80211_disconnected()
1362 memcpy((void *)ev->dc.ie, ie, ie_len); in cfg80211_disconnected()
Dcore.h264 size_t ie_len; member
372 const u8 *ie, int ie_len, u16 reason,
376 const u8 *ie, int ie_len, u16 reason,
406 size_t ie_len, u16 reason, bool from_ap);
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dsta_ioctl.c776 u8 *ie_data_ptr, u16 ie_len) in mwifiex_set_wpa_ie() argument
778 if (ie_len) { in mwifiex_set_wpa_ie()
779 if (ie_len > sizeof(priv->wpa_ie)) { in mwifiex_set_wpa_ie()
784 memcpy(priv->wpa_ie, ie_data_ptr, ie_len); in mwifiex_set_wpa_ie()
785 priv->wpa_ie_len = ie_len; in mwifiex_set_wpa_ie()
819 u8 *ie_data_ptr, u16 ie_len) in mwifiex_set_wapi_ie() argument
821 if (ie_len) { in mwifiex_set_wapi_ie()
822 if (ie_len > sizeof(priv->wapi_ie)) { in mwifiex_set_wapi_ie()
827 memcpy(priv->wapi_ie, ie_data_ptr, ie_len); in mwifiex_set_wapi_ie()
828 priv->wapi_ie_len = ie_len; in mwifiex_set_wapi_ie()
[all …]
Die.c321 u16 gen_idx = MWIFIEX_AUTO_IDX_MASK, ie_len = 0; in mwifiex_uap_parse_tail_ies() local
367 if (ie_len + token_len > IEEE_MAX_IE_SIZE) { in mwifiex_uap_parse_tail_ies()
371 memcpy(gen_ie->ie_buffer + ie_len, hdr, token_len); in mwifiex_uap_parse_tail_ies()
372 ie_len += token_len; in mwifiex_uap_parse_tail_ies()
387 if (ie_len + token_len > IEEE_MAX_IE_SIZE) { in mwifiex_uap_parse_tail_ies()
391 memcpy(gen_ie->ie_buffer + ie_len, vendorhdr, token_len); in mwifiex_uap_parse_tail_ies()
392 ie_len += token_len; in mwifiex_uap_parse_tail_ies()
395 if (!ie_len) in mwifiex_uap_parse_tail_ies()
402 gen_ie->ie_length = cpu_to_le16(ie_len); in mwifiex_uap_parse_tail_ies()
Dtdls.c620 lnkid->ie_len = sizeof(struct ieee80211_tdls_lnkie) - in mwifiex_tdls_add_link_ie()
952 u8 ie_len = pos[1]; in mwifiex_process_tdls_action_frame() local
954 if (pos + 2 + ie_len > end) in mwifiex_process_tdls_action_frame()
959 if (ie_len > sizeof(sta_ptr->tdls_cap.rates)) in mwifiex_process_tdls_action_frame()
961 sta_ptr->tdls_cap.rates_len = ie_len; in mwifiex_process_tdls_action_frame()
962 for (i = 0; i < ie_len; i++) in mwifiex_process_tdls_action_frame()
967 if (ie_len > sizeof(sta_ptr->tdls_cap.rates)) in mwifiex_process_tdls_action_frame()
970 if (ie_len > sizeof(sta_ptr->tdls_cap.rates) - basic) in mwifiex_process_tdls_action_frame()
972 for (i = 0; i < ie_len; i++) in mwifiex_process_tdls_action_frame()
974 sta_ptr->tdls_cap.rates_len += ie_len; in mwifiex_process_tdls_action_frame()
[all …]
/linux-6.1.9/drivers/staging/rtl8723bs/core/
Drtw_ap.c647 int ie_len; in start_bss_network() local
739 &ie_len, in start_bss_network()
742 if (p && ie_len) { in start_bss_network()
819 uint ie_len = 0; in rtw_check_beacon_data() local
865 &ie_len, in rtw_check_beacon_data()
868 if (p && ie_len > 0) { in rtw_check_beacon_data()
870 memcpy(pbss_network->ssid.ssid, (p + 2), ie_len); in rtw_check_beacon_data()
871 pbss_network->ssid.ssid_length = ie_len; in rtw_check_beacon_data()
879 WLAN_EID_DS_PARAMS, &ie_len, in rtw_check_beacon_data()
882 if (p && ie_len > 0) in rtw_check_beacon_data()
[all …]
Drtw_mlme_ext.c681 unsigned int auth_mode, seq, ie_len; in OnAuth() local
810 …p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + 4 + _AUTH_IE_OFFSET_, WLAN_EID_CHALLENGE, (int *)&ie_len, in OnAuth()
813 if (!p || ie_len <= 0) { in OnAuth()
945 int i, ie_len, wpa_ie_len, left; in OnAssocReq() local
1010 p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + ie_offset, WLAN_EID_SSID, &ie_len, in OnAssocReq()
1013 if (!p || ie_len == 0) { in OnAssocReq()
1022 if (ie_len != cur->ssid.ssid_length) in OnAssocReq()
1030 …p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + ie_offset, WLAN_EID_SUPP_RATES, &ie_len, pkt_len - WLAN_… in OnAssocReq()
1039 memcpy(supportRate, p+2, ie_len); in OnAssocReq()
1040 supportRateNum = ie_len; in OnAssocReq()
[all …]
Drtw_mlme.c669 uint ie_len = 0; in rtw_is_desired_network() local
675 …p = rtw_get_ie(pnetwork->network.ies + _BEACON_IE_OFFSET_, WLAN_EID_RSN, &ie_len, (pnetwork->netwo… in rtw_is_desired_network()
676 if (p && ie_len > 0) in rtw_is_desired_network()
2061 static int rtw_append_pmkid(struct adapter *Adapter, int iEntry, u8 *ie, uint ie_len) in rtw_append_pmkid() argument
2067 ie[ie_len] = 1; in rtw_append_pmkid()
2068 ie_len++; in rtw_append_pmkid()
2069 ie[ie_len] = 0; /* PMKID count = 0x0100 */ in rtw_append_pmkid()
2070 ie_len++; in rtw_append_pmkid()
2071 memcpy(&ie[ie_len], &psecuritypriv->PMKIDList[iEntry].PMKID, 16); in rtw_append_pmkid()
2073 ie_len += 16; in rtw_append_pmkid()
[all …]
/linux-6.1.9/drivers/net/wireless/quantenna/qtnfmac/
Devent.c68 unsigned int ie_len; in qtnf_event_handle_sta_assoc() local
77 ie_len = tlv_value_len - in qtnf_event_handle_sta_assoc()
80 if (ie_set->type == QLINK_IE_SET_ASSOC_REQ && ie_len) { in qtnf_event_handle_sta_assoc()
82 sinfo->assoc_req_ies_len = ie_len; in qtnf_event_handle_sta_assoc()
237 unsigned int ie_len; in qtnf_event_handle_bss_join() local
247 ie_len = tlv_value_len - in qtnf_event_handle_bss_join()
252 if (ie_len) { in qtnf_event_handle_bss_join()
254 rsp_ies_len = ie_len; in qtnf_event_handle_bss_join()
376 unsigned int ie_len; in qtnf_event_handle_scan_results() local
383 ie_len = tlv_value_len - in qtnf_event_handle_scan_results()
[all …]
/linux-6.1.9/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-6.1.9/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c1020 int ie_len; in rtw_set_wps_beacon() local
1025 ie_len = len-12-2;/* 12 = param header, 2:no packed */ in rtw_set_wps_beacon()
1031 if (ie_len > 0) { in rtw_set_wps_beacon()
1032 pmlmepriv->wps_beacon_ie = rtw_malloc(ie_len); in rtw_set_wps_beacon()
1033 pmlmepriv->wps_beacon_ie_len = ie_len; in rtw_set_wps_beacon()
1037 memcpy(pmlmepriv->wps_beacon_ie, param->u.bcn_ie.buf, ie_len); in rtw_set_wps_beacon()
1054 int ie_len; in rtw_set_wps_probe_resp() local
1059 ie_len = len-12-2;/* 12 = param header, 2:no packed */ in rtw_set_wps_probe_resp()
1065 if (ie_len > 0) { in rtw_set_wps_probe_resp()
1066 pmlmepriv->wps_probe_resp_ie = rtw_malloc(ie_len); in rtw_set_wps_probe_resp()
[all …]
/linux-6.1.9/net/mac80211/
Dmesh_plink.c221 u8 *pos, ie_len = 4; in mesh_plink_frame_tx() local
245 sdata->u.mesh.ie_len); in mesh_plink_frame_tx()
294 ie_len += 2; in mesh_plink_frame_tx()
299 ie_len += 2; in mesh_plink_frame_tx()
302 ie_len += 2; /* reason code */ in mesh_plink_frame_tx()
309 if (WARN_ON(skb_tailroom(skb) < 2 + ie_len)) in mesh_plink_frame_tx()
312 pos = skb_put(skb, 2 + ie_len); in mesh_plink_frame_tx()
314 *pos++ = ie_len; in mesh_plink_frame_tx()
1015 u8 ie_len = elems->peering_len; in mesh_plink_get_event() local
1084 else if (ie_len == 8 && sta->mesh->llid != llid) in mesh_plink_get_event()
[all …]
Dmesh.c351 if (!ifmsh->ie || !ifmsh->ie_len) in mesh_add_vendor_ies()
355 offset = ieee80211_ie_split_vendor(ifmsh->ie, ifmsh->ie_len, 0); in mesh_add_vendor_ies()
357 if (offset < ifmsh->ie_len) { in mesh_add_vendor_ies()
358 len = ifmsh->ie_len - offset; in mesh_add_vendor_ies()
374 if (!ifmsh->ie || !ifmsh->ie_len) in mesh_add_rsn_ie()
378 data = cfg80211_find_ie(WLAN_EID_RSN, ifmsh->ie, ifmsh->ie_len); in mesh_add_rsn_ie()
562 struct sk_buff *skb, u8 ie_len) in mesh_add_he_cap_ie() argument
580 if (skb_tailroom(skb) < ie_len) in mesh_add_he_cap_ie()
583 pos = skb_put(skb, ie_len); in mesh_add_he_cap_ie()
584 ieee80211_ie_build_he_cap(0, pos, he_cap, pos + ie_len); in mesh_add_he_cap_ie()
[all …]
Dmesh_hwmp.c111 u8 *pos, ie_len; in mesh_path_sel_frame_tx() local
136 ie_len = 37; in mesh_path_sel_frame_tx()
137 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
142 ie_len = 31; in mesh_path_sel_frame_tx()
143 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
148 ie_len = sizeof(struct ieee80211_rann_ie); in mesh_path_sel_frame_tx()
149 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
156 *pos++ = ie_len; in mesh_path_sel_frame_tx()
242 u8 *pos, ie_len; in mesh_path_error_tx() local
268 ie_len = 15; in mesh_path_error_tx()
[all …]
Dutil.c1828 const u8 *ie, size_t ie_len, in ieee80211_build_preq_ies_band() argument
1879 if (ie && ie_len) { in ieee80211_build_preq_ies_band()
1885 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band()
1919 if (ie && ie_len) { in ieee80211_build_preq_ies_band()
1928 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band()
1946 if (ie && ie_len) { in ieee80211_build_preq_ies_band()
1960 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band()
1988 if (ie && ie_len) { in ieee80211_build_preq_ies_band()
1998 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band()
2064 const u8 *ie, size_t ie_len, in ieee80211_build_preq_ies() argument
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dcore.c1411 size_t ie_len; in ath10k_core_search_bd() local
1418 ie_len = le32_to_cpu(hdr->len); in ath10k_core_search_bd()
1423 if (len < ALIGN(ie_len, 4)) { in ath10k_core_search_bd()
1425 ie_id, ie_len, len); in ath10k_core_search_bd()
1431 ret = ath10k_core_parse_bd_ie_board(ar, data, ie_len, in ath10k_core_search_bd()
1441 ret = ath10k_core_parse_bd_ie_board(ar, data, ie_len, in ath10k_core_search_bd()
1453 ie_len = ALIGN(ie_len, 4); in ath10k_core_search_bd()
1455 len -= ie_len; in ath10k_core_search_bd()
1456 data += ie_len; in ath10k_core_search_bd()
1990 size_t magic_len, len, ie_len; in ath10k_core_fetch_firmware_api_n() local
[all …]
/linux-6.1.9/drivers/staging/rtl8712/
Drtl871x_cmd.h656 unsigned char ie_len; member
662 unsigned char ie_len; member
668 unsigned char ie_len; member
674 unsigned char ie_len; member
/linux-6.1.9/drivers/net/wireless/silabs/wfx/
Dscan.c30 req->ie_len); in update_probe_tmpl()
34 skb_put_data(skb, req->ie, req->ie_len); in update_probe_tmpl()
/linux-6.1.9/drivers/staging/r8188eu/core/
Drtw_mlme.c601 uint ie_len = 0; in rtw_is_desired_network() local
607 _RSN_IE_2_, &ie_len, in rtw_is_desired_network()
610 if (p && ie_len > 0) in rtw_is_desired_network()
1708 static int rtw_append_pmkid(struct adapter *Adapter, int iEntry, u8 *ie, uint ie_len) in rtw_append_pmkid() argument
1714 ie[ie_len] = 1; in rtw_append_pmkid()
1715 ie_len++; in rtw_append_pmkid()
1716 ie[ie_len] = 0; /* PMKID count = 0x0100 */ in rtw_append_pmkid()
1717 ie_len++; in rtw_append_pmkid()
1718 memcpy(&ie[ie_len], &psecuritypriv->PMKIDList[iEntry].PMKID, 16); in rtw_append_pmkid()
1720 ie_len += 16; in rtw_append_pmkid()
[all …]
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
Dscan.c562 const u8 *ies, int ie_len, const u8 *ssid, in iwl_fill_probe_req() argument
598 if (WARN_ON(left < ie_len)) in iwl_fill_probe_req()
601 if (ies && ie_len) { in iwl_fill_probe_req()
602 memcpy(pos, ies, ie_len); in iwl_fill_probe_req()
603 len += ie_len; in iwl_fill_probe_req()
849 priv->scan_request->ie_len, in iwlagn_request_scan()
/linux-6.1.9/drivers/net/wireless/ath/wil6210/
Dwmi.c881 size_t ie_len = d_len - offsetof(struct ieee80211_mgmt, in wmi_evt_rx_mgmt() local
887 ie_len, true); in wmi_evt_rx_mgmt()
1628 int ie_len = len - offsetof(struct wmi_ft_auth_status_event, ie_info); in wmi_evt_auth_status() local
1637 if (ie_len >= 0 && data->status != WMI_FW_STATUS_SUCCESS) { in wmi_evt_auth_status()
1642 if (ie_len < auth_ie_offset) { in wmi_evt_auth_status()
1647 d_len = le16_to_cpu(data->ie_len); in wmi_evt_auth_status()
1648 if (d_len != ie_len) { in wmi_evt_auth_status()
1651 d_len, ie_len); in wmi_evt_auth_status()
2494 int wmi_set_ie(struct wil6210_vif *vif, u8 type, u16 ie_len, const void *ie) in wmi_set_ie() argument
2505 u16 len = sizeof(struct wmi_set_appie_cmd) + ie_len; in wmi_set_ie()
[all …]
/linux-6.1.9/drivers/staging/r8188eu/include/
Drtw_cmd.h650 unsigned char ie_len; member
656 unsigned char ie_len; member
662 unsigned char ie_len; member
668 unsigned char ie_len; member
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dcore.c1045 size_t ie_len; in ath11k_core_fetch_board_data_api_n() local
1093 ie_len = le32_to_cpu(hdr->len); in ath11k_core_fetch_board_data_api_n()
1098 if (len < ALIGN(ie_len, 4)) { in ath11k_core_fetch_board_data_api_n()
1100 ie_id, ie_len, len); in ath11k_core_fetch_board_data_api_n()
1107 ie_len, in ath11k_core_fetch_board_data_api_n()
1123 ie_len = ALIGN(ie_len, 4); in ath11k_core_fetch_board_data_api_n()
1125 len -= ie_len; in ath11k_core_fetch_board_data_api_n()
1126 data += ie_len; in ath11k_core_fetch_board_data_api_n()

12345