Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/wireless/
Dscan.c265 static size_t cfg80211_gen_new_ie(const u8 *ie, size_t ielen, in cfg80211_gen_new_ie() argument
298 tmp_old = cfg80211_find_ie(WLAN_EID_SSID, ie, ielen); in cfg80211_gen_new_ie()
301 while (tmp_old + tmp_old[1] + 2 - ie <= ielen) { in cfg80211_gen_new_ie()
351 if (tmp_old + tmp_old[1] + 2 - ie == ielen) in cfg80211_gen_new_ie()
1804 cfg80211_get_bss_channel(struct wiphy *wiphy, const u8 *ie, size_t ielen, in cfg80211_get_bss_channel() argument
1814 tmp = cfg80211_find_ie(WLAN_EID_S1G_OPERATION, ie, ielen); in cfg80211_get_bss_channel()
1821 tmp = cfg80211_find_ie(WLAN_EID_DS_PARAMS, ie, ielen); in cfg80211_get_bss_channel()
1825 tmp = cfg80211_find_ie(WLAN_EID_HT_OPERATION, ie, ielen); in cfg80211_get_bss_channel()
1881 u16 beacon_interval, const u8 *ie, size_t ielen, in cfg80211_inform_single_bss_data() argument
1900 channel = cfg80211_get_bss_channel(wiphy, ie, ielen, data->chan, in cfg80211_inform_single_bss_data()
[all …]
Dutil.c1543 static size_t skip_ie(const u8 *ies, size_t ielen, size_t pos) in skip_ie() argument
1554 while (pos < ielen && ies[pos] == WLAN_EID_FRAGMENT) { in skip_ie()
1562 size_t ieee80211_ie_split_ric(const u8 *ies, size_t ielen, in ieee80211_ie_split_ric() argument
1569 while (pos < ielen) { in ieee80211_ie_split_ric()
1574 if ((pos + ext) >= ielen) in ieee80211_ie_split_ric()
1582 pos = skip_ie(ies, ielen, pos); in ieee80211_ie_split_ric()
1584 while (pos < ielen) { in ieee80211_ie_split_ric()
1590 if ((pos + ext) >= ielen) in ieee80211_ie_split_ric()
1597 pos = skip_ie(ies, ielen, pos); in ieee80211_ie_split_ric()
1602 pos = skip_ie(ies, ielen, pos); in ieee80211_ie_split_ric()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c184 u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen) in rtw_get_ie_ex() argument
189 if (ielen) in rtw_get_ie_ex()
190 *ielen = 0; in rtw_get_ie_ex()
205 if (ielen) in rtw_get_ie_ex()
206 *ielen = in_ie[cnt+1]+2; in rtw_get_ie_ex()
Drtw_mlme.c2583 u32 ielen, out_len; in rtw_restructure_ht_ie() local
2615 p = rtw_get_ie(in_ie, _HT_ADD_INFO_IE_, &ielen, in_len); in rtw_restructure_ht_ie()
2616 if (p && (ielen == sizeof(struct ieee80211_ht_addt_info))) { in rtw_restructure_ht_ie()
2721 p = rtw_get_ie(in_ie, _HT_ADD_INFO_IE_, &ielen, in_len); in rtw_restructure_ht_ie()
2722 if (p && (ielen == sizeof(struct ieee80211_ht_addt_info))) { in rtw_restructure_ht_ie()
2724 pframe = rtw_set_ie(out_ie+out_len, _HT_ADD_INFO_IE_, ielen, p+2, pout_len); in rtw_restructure_ht_ie()
Drtw_mlme_ext.c601 unsigned int ielen; in OnProbeReq() local
631 … = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_, _VENDOR_SPECIFIC_IE_, (int *)&ielen, in OnProbeReq()
634 if (!p || ielen != 14) in OnProbeReq()
731 p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_, _SSID_IE_, (int *)&ielen, in OnProbeReq()
740 if ((ielen != 0 && false == !memcmp((void *)(p+2), (void *)cur->Ssid.Ssid, cur->Ssid.SsidLength)) in OnProbeReq()
741 || (ielen == 0 && pmlmeinfo->hidden_ssid_mode) in OnProbeReq()
784 u32 ielen = 0; in OnBeacon() local
786 …ruct ieee80211_hdr_3addr) + _BEACON_IE_OFFSET_, _EXT_SUPPORTEDRATES_IE_, &ielen, precv_frame->u.hd… in OnBeacon()
787 if ((p != NULL) && (ielen > 0)) { in OnBeacon()
788 if ((*(p + 1 + ielen) == 0x2D) && (*(p + 2 + ielen) != 0x2D)) { in OnBeacon()
[all …]
Drtw_ap.c1661 u32 ielen = pnetwork->IELength; in update_bcn_wps_ie() local
1667 ielen - _FIXED_IE_LENGTH_, in update_bcn_wps_ie()
1683 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c489 static int rtw_set_wpa_ie(struct adapter *padapter, char *pie, unsigned short ielen) in rtw_set_wpa_ie() argument
495 if ((ielen > MAX_WPA_IE_LEN) || (!pie)) { in rtw_set_wpa_ie()
503 if (ielen) { in rtw_set_wpa_ie()
504 buf = kmemdup(pie, ielen, GFP_KERNEL); in rtw_set_wpa_ie()
514 DBG_88E("\n wpa_ie(length:%d):\n", ielen); in rtw_set_wpa_ie()
515 for (i = 0; i < ielen; i += 8) in rtw_set_wpa_ie()
519 if (ielen < RSN_HEADER_LEN) { in rtw_set_wpa_ie()
520 RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_err_, ("Ie len too short %d\n", ielen)); in rtw_set_wpa_ie()
525 if (rtw_parse_wpa_ie(buf, ielen, &group_cipher, &pairwise_cipher, NULL) == _SUCCESS) { in rtw_set_wpa_ie()
528 memcpy(padapter->securitypriv.supplicant_ie, &buf[0], ielen); in rtw_set_wpa_ie()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c1778 static int rtw_cfg80211_set_wpa_ie(struct adapter *padapter, u8 *pie, size_t ielen) in rtw_cfg80211_set_wpa_ie() argument
1788 if (pie == NULL || !ielen) { in rtw_cfg80211_set_wpa_ie()
1794 if (ielen > MAX_WPA_IE_LEN+MAX_WPS_IE_LEN+MAX_P2P_IE_LEN) { in rtw_cfg80211_set_wpa_ie()
1799 buf = rtw_zmalloc(ielen); in rtw_cfg80211_set_wpa_ie()
1805 memcpy(buf, pie, ielen); in rtw_cfg80211_set_wpa_ie()
1810 DBG_8192C("set wpa_ie(length:%zu):\n", ielen); in rtw_cfg80211_set_wpa_ie()
1811 for (i = 0; i < ielen; i = i + 8) in rtw_cfg80211_set_wpa_ie()
1815 if (ielen < RSN_HEADER_LEN) { in rtw_cfg80211_set_wpa_ie()
1816 RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_err_, ("Ie len too short %d\n", ielen)); in rtw_cfg80211_set_wpa_ie()
1821 pwpa = rtw_get_wpa_ie(buf, &wpa_ielen, ielen); in rtw_cfg80211_set_wpa_ie()
[all …]
Dioctl_linux.c611 static int rtw_set_wpa_ie(struct adapter *padapter, char *pie, unsigned short ielen) in rtw_set_wpa_ie() argument
618 if ((ielen > MAX_WPA_IE_LEN) || (pie == NULL)) { in rtw_set_wpa_ie()
626 if (ielen) { in rtw_set_wpa_ie()
627 buf = rtw_zmalloc(ielen); in rtw_set_wpa_ie()
633 memcpy(buf, pie, ielen); in rtw_set_wpa_ie()
638 DBG_871X("\n wpa_ie(length:%d):\n", ielen); in rtw_set_wpa_ie()
639 for (i = 0; i < ielen; i = i + 8) in rtw_set_wpa_ie()
643 if (ielen < RSN_HEADER_LEN) { in rtw_set_wpa_ie()
644 RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_err_, ("Ie len too short %d\n", ielen)); in rtw_set_wpa_ie()
649 if (rtw_parse_wpa_ie(buf, ielen, &group_cipher, &pairwise_cipher, NULL) == _SUCCESS) { in rtw_set_wpa_ie()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c478 unsigned short ielen) in r871x_set_wpa_ie() argument
484 if (ielen > MAX_WPA_IE_LEN || !pie) in r871x_set_wpa_ie()
486 if (ielen) { in r871x_set_wpa_ie()
487 buf = kmemdup(pie, ielen, GFP_ATOMIC); in r871x_set_wpa_ie()
490 if (ielen < RSN_HEADER_LEN) { in r871x_set_wpa_ie()
494 if (r8712_parse_wpa_ie(buf, ielen, &group_cipher, in r871x_set_wpa_ie()
500 if (r8712_parse_wpa2_ie(buf, ielen, &group_cipher, in r871x_set_wpa_ie()
567 while (cnt < ielen) { in r871x_set_wpa_ie()
Drtl871x_mlme.c1643 u32 ielen, out_len; in r8712_restructure_ht_ie() local
1652 p = r8712_get_ie(in_ie + 12, _HT_CAPABILITY_IE_, &ielen, in_len - 12); in r8712_restructure_ht_ie()
1653 if (p && (ielen > 0)) { in r8712_restructure_ht_ie()
/kernel/linux/linux-5.10/include/net/
Dcfg80211.h6154 size_t cfg80211_merge_profile(const u8 *ie, size_t ielen,
6197 u16 beacon_interval, const u8 *ie, size_t ielen,
6206 u16 beacon_interval, const u8 *ie, size_t ielen, in cfg80211_inform_bss_width() argument
6216 capability, beacon_interval, ie, ielen, in cfg80211_inform_bss_width()
6225 u16 beacon_interval, const u8 *ie, size_t ielen, in cfg80211_inform_bss() argument
6235 capability, beacon_interval, ie, ielen, in cfg80211_inform_bss()
7678 size_t ieee80211_ie_split_ric(const u8 *ies, size_t ielen,
7708 static inline size_t ieee80211_ie_split(const u8 *ies, size_t ielen, in ieee80211_ie_split() argument
7711 return ieee80211_ie_split_ric(ies, ielen, ids, n_ids, NULL, 0, offset); in ieee80211_ie_split()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/
Drtw_mlme.c1859 u32 ielen, out_len; in rtw_restructure_ht_ie() local
1870 p = rtw_get_ie(in_ie + 12, _HT_CAPABILITY_IE_, &ielen, in_len - 12); in rtw_restructure_ht_ie()
1872 if (p && ielen > 0) { in rtw_restructure_ht_ie()
1915 p = rtw_get_ie(in_ie + 12, _HT_ADD_INFO_IE_, &ielen, in_len - 12); in rtw_restructure_ht_ie()
1916 if (p && (ielen == sizeof(struct ieee80211_ht_addt_info))) { in rtw_restructure_ht_ie()
1918 rtw_set_ie(out_ie + out_len, _HT_ADD_INFO_IE_, ielen, p + 2, pout_len); in rtw_restructure_ht_ie()
Drtw_ap.c1167 u32 ielen = pnetwork->ie_length; in update_bcn_wps_ie() local
1176 ielen - _FIXED_IE_LENGTH_, NULL, &wps_ielen); in update_bcn_wps_ie()
1185 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
Drtw_mlme_ext.c2502 unsigned int ielen; in OnProbeReq() local
2518 p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_, _SSID_IE_, &ielen, in OnProbeReq()
2523 if ((ielen != 0 && memcmp((void *)(p + 2), (void *)cur->ssid.ssid, cur->ssid.ssid_length)) || in OnProbeReq()
2524 (ielen == 0 && pmlmeinfo->hidden_ssid_mode)) in OnProbeReq()
/kernel/linux/linux-5.10/drivers/staging/ks7010/
Dks_wlan_net.c2100 priv->wps.ielen = p[1] + 2 + 1; /* IE header + IE + sizeof(len) */ in ks_wlan_set_wps_probe_req()
2107 priv->wps.ielen, priv->wps.ielen, p[0], p[1], p[2], p[3], in ks_wlan_set_wps_probe_req()
2108 p[priv->wps.ielen - 3], p[priv->wps.ielen - 2], in ks_wlan_set_wps_probe_req()
2109 p[priv->wps.ielen - 1]); in ks_wlan_set_wps_probe_req()
Dks_wlan.h366 int ielen; member
Dks_hostif.c2148 priv->wps.ie, priv->wps.ielen); in hostif_sme_execute()
/kernel/linux/linux-5.10/net/mac80211/
Dscan.c344 int i, ielen, n_chans; in ieee80211_prep_hw_scan() local
387 ielen = ieee80211_build_preq_ies(sdata, in ieee80211_prep_hw_scan()
394 local->hw_scan_req->req.ie_len = ielen; in ieee80211_prep_hw_scan()
Dieee80211_i.h2180 size_t ieee80211_ie_split_vendor(const u8 *ies, size_t ielen, size_t offset);
Dutil.c2764 size_t ieee80211_ie_split_vendor(const u8 *ies, size_t ielen, size_t offset) in ieee80211_ie_split_vendor() argument
2768 while (pos < ielen && ies[pos] != WLAN_EID_VENDOR_SPECIFIC) in ieee80211_ie_split_vendor()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/
Dmain.c62 u8 *wpaie, size_t ielen, u8 keymgmt, in ath6kl_add_new_sta() argument
73 if (ielen <= ATH6KL_MAX_IE) in ath6kl_add_new_sta()
74 memcpy(sta->wpa_ie, wpaie, ielen); in ath6kl_add_new_sta()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dcfg80211.c1805 u16 ielen = 2 + spos[1]; in _wil_cfg80211_merge_extra_ies() local
1807 if (spos + ielen > ies2 + ies2_len) in _wil_cfg80211_merge_extra_ies()
1811 spos, ielen))) { in _wil_cfg80211_merge_extra_ies()
1812 memcpy(dpos, spos, ielen); in _wil_cfg80211_merge_extra_ies()
1813 dpos += ielen; in _wil_cfg80211_merge_extra_ies()
1815 spos += ielen; in _wil_cfg80211_merge_extra_ies()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/
Dcfg.c580 int ielen; in lbs_ret_scan() local
611 ielen = left = len - (6 + 1 + 8 + 2 + 2); in lbs_ret_scan()
649 capa, intvl, ie, ielen, in lbs_ret_scan()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/
Dieee80211.h1127 u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen);