Home
last modified time | relevance | path

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

/linux/net/wireless/
H A Dscan.c311 ie, ielen, in cfg80211_gen_new_ie()
2045 ielen); in cfg80211_get_ies_channel_number()
2151 size_t ielen; member
2308 ies->len = data->ielen; in cfg80211_inform_single_bss_data()
2535 tx_data->ielen, in cfg80211_parse_mbssid_data()
2540 if (!data.ielen) in cfg80211_parse_mbssid_data()
2676 ie, ielen) { in cfg80211_defrag_mle()
3085 data.ielen = cfg80211_gen_new_ie(tx_data->ie, tx_data->ielen, in cfg80211_parse_ml_elem_sta_data()
3089 if (!data.ielen) in cfg80211_parse_ml_elem_sta_data()
3178 .ielen = ielen, in cfg80211_inform_bss_data()
[all …]
H A Dutil.c1962 static size_t skip_ie(const u8 *ies, size_t ielen, size_t pos) in skip_ie() argument
1973 while (pos < ielen && ies[pos] == WLAN_EID_FRAGMENT) { in skip_ie()
1981 size_t ieee80211_ie_split_ric(const u8 *ies, size_t ielen, in ieee80211_ie_split_ric() argument
1988 while (pos < ielen) { in ieee80211_ie_split_ric()
1993 if ((pos + ext) >= ielen) in ieee80211_ie_split_ric()
2001 pos = skip_ie(ies, ielen, pos); in ieee80211_ie_split_ric()
2003 while (pos < ielen) { in ieee80211_ie_split_ric()
2009 if ((pos + ext) >= ielen) in ieee80211_ie_split_ric()
2016 pos = skip_ie(ies, ielen, pos); in ieee80211_ie_split_ric()
2021 pos = skip_ie(ies, ielen, pos); in ieee80211_ie_split_ric()
H A Dcore.h616 size_t cfg80211_gen_new_ie(const u8 *ie, size_t ielen,
/linux/drivers/staging/rtl8723bs/os_dep/
H A Dioctl_linux.c217 static int rtw_set_wpa_ie(struct adapter *padapter, char *pie, unsigned short ielen) in rtw_set_wpa_ie() argument
224 if (ielen > MAX_WPA_IE_LEN || !pie) { in rtw_set_wpa_ie()
232 if (ielen) { in rtw_set_wpa_ie()
233 buf = rtw_zmalloc(ielen); in rtw_set_wpa_ie()
239 memcpy(buf, pie, ielen); in rtw_set_wpa_ie()
241 if (ielen < RSN_HEADER_LEN) { in rtw_set_wpa_ie()
246 if (rtw_parse_wpa_ie(buf, ielen, &group_cipher, &pairwise_cipher, NULL) == _SUCCESS) { in rtw_set_wpa_ie()
249 memcpy(padapter->securitypriv.supplicant_ie, &buf[0], ielen); in rtw_set_wpa_ie()
252 if (rtw_parse_wpa2_ie(buf, ielen, &group_cipher, &pairwise_cipher, NULL) == _SUCCESS) { in rtw_set_wpa_ie()
255 memcpy(padapter->securitypriv.supplicant_ie, &buf[0], ielen); in rtw_set_wpa_ie()
[all …]
H A Dioctl_cfg80211.c1421 static int rtw_cfg80211_set_wpa_ie(struct adapter *padapter, u8 *pie, size_t ielen) in rtw_cfg80211_set_wpa_ie() argument
1431 if (!pie || !ielen) { in rtw_cfg80211_set_wpa_ie()
1437 if (ielen > MAX_WPA_IE_LEN + MAX_WPS_IE_LEN + MAX_P2P_IE_LEN) { in rtw_cfg80211_set_wpa_ie()
1442 buf = rtw_zmalloc(ielen); in rtw_cfg80211_set_wpa_ie()
1448 memcpy(buf, pie, ielen); in rtw_cfg80211_set_wpa_ie()
1450 if (ielen < RSN_HEADER_LEN) { in rtw_cfg80211_set_wpa_ie()
1455 pwpa = rtw_get_wpa_ie(buf, &wpa_ielen, ielen); in rtw_cfg80211_set_wpa_ie()
1464 pwpa2 = rtw_get_wpa2_ie(buf, &wpa2_ielen, ielen); in rtw_cfg80211_set_wpa_ie()
1529 wps_ie = rtw_get_wps_ie(buf, ielen, NULL, &wps_ielen); in rtw_cfg80211_set_wpa_ie()
/linux/drivers/net/wireless/realtek/rtw88/
H A Drx.c155 size_t hdr_len, ielen; in rtw_update_rx_freq_from_ie() local
175 ielen = skb->len - hdr_len; in rtw_update_rx_freq_from_ie()
179 channel_number = cfg80211_get_ies_channel_number(variable, ielen, in rtw_update_rx_freq_from_ie()
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_ieee80211.c175 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
180 if (ielen) in rtw_get_ie_ex()
181 *ielen = 0; in rtw_get_ie_ex()
196 if (ielen) in rtw_get_ie_ex()
197 *ielen = in_ie[cnt+1]+2; in rtw_get_ie_ex()
H A Drtw_mlme.c2204 u32 ielen, out_len; in rtw_restructure_ht_ie() local
2236 p = rtw_get_ie(in_ie, WLAN_EID_HT_OPERATION, &ielen, in_len); in rtw_restructure_ht_ie()
2237 if (p && (ielen == sizeof(struct ieee80211_ht_addt_info))) { in rtw_restructure_ht_ie()
2319 p = rtw_get_ie(in_ie, WLAN_EID_HT_OPERATION, &ielen, in_len); in rtw_restructure_ht_ie()
2320 if (p && (ielen == sizeof(struct ieee80211_ht_addt_info))) { in rtw_restructure_ht_ie()
2322 rtw_set_ie(out_ie+out_len, WLAN_EID_HT_OPERATION, ielen, p+2, pout_len); in rtw_restructure_ht_ie()
H A Drtw_mlme_ext.c509 unsigned int ielen; in OnProbeReq() local
527 p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _PROBEREQ_IE_OFFSET_, WLAN_EID_SSID, (int *)&ielen, in OnProbeReq()
536 if ((ielen != 0 && false == !memcmp((void *)(p+2), (void *)cur->ssid.ssid, cur->ssid.ssid_length)) in OnProbeReq()
537 || (ielen == 0 && pmlmeinfo->hidden_ssid_mode) in OnProbeReq()
578 u32 ielen = 0; in OnBeacon() local
580 …ruct ieee80211_hdr_3addr) + _BEACON_IE_OFFSET_, WLAN_EID_EXT_SUPP_RATES, &ielen, precv_frame->u.hd… in OnBeacon()
581 if (p && ielen > 0) { in OnBeacon()
582 if ((*(p + 1 + ielen) == 0x2D) && (*(p + 2 + ielen) != 0x2D)) in OnBeacon()
584 *(p + 1) = ielen - 1; in OnBeacon()
H A Drtw_ap.c1469 u32 ielen = pnetwork->ie_length; in update_bcn_wps_ie() local
1473 ielen - _FIXED_IE_LENGTH_, in update_bcn_wps_ie()
1489 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
/linux/drivers/staging/rtl8712/
H A Drtl871x_ioctl_linux.c457 unsigned short ielen) in r871x_set_wpa_ie() argument
463 if (ielen > MAX_WPA_IE_LEN || !pie) in r871x_set_wpa_ie()
465 if (ielen) { in r871x_set_wpa_ie()
466 buf = kmemdup(pie, ielen, GFP_ATOMIC); in r871x_set_wpa_ie()
469 if (ielen < RSN_HEADER_LEN) { in r871x_set_wpa_ie()
473 if (r8712_parse_wpa_ie(buf, ielen, &group_cipher, in r871x_set_wpa_ie()
479 if (r8712_parse_wpa2_ie(buf, ielen, &group_cipher, in r871x_set_wpa_ie()
534 while (cnt < ielen) { in r871x_set_wpa_ie()
H A Drtl871x_mlme.c1602 u32 ielen, out_len; in r8712_restructure_ht_ie() local
1611 p = r8712_get_ie(in_ie + 12, WLAN_EID_HT_CAPABILITY, &ielen, in_len - 12); in r8712_restructure_ht_ie()
1612 if (p && (ielen > 0)) { in r8712_restructure_ht_ie()
/linux/net/mac80211/
H A Dscan.c361 int i, ielen; in ieee80211_prep_hw_scan() local
405 ielen = ieee80211_build_preq_ies(sdata, in ieee80211_prep_hw_scan()
412 if (ielen < 0) in ieee80211_prep_hw_scan()
414 local->hw_scan_req->req.ie_len = ielen; in ieee80211_prep_hw_scan()
H A Dutil.c2359 size_t ieee80211_ie_split_vendor(const u8 *ies, size_t ielen, size_t offset) in ieee80211_ie_split_vendor() argument
2363 while (pos < ielen && ies[pos] != WLAN_EID_VENDOR_SPECIFIC) in ieee80211_ie_split_vendor()
H A Dieee80211_i.h2537 size_t ieee80211_ie_split_vendor(const u8 *ies, size_t ielen, size_t offset);
/linux/include/net/
H A Dcfg80211.h7345 size_t cfg80211_merge_profile(const u8 *ie, size_t ielen,
7373 int cfg80211_get_ies_channel_number(const u8 *ie, size_t ielen,
7418 u16 beacon_interval, const u8 *ie, size_t ielen,
7426 u16 beacon_interval, const u8 *ie, size_t ielen, in cfg80211_inform_bss() argument
7435 capability, beacon_interval, ie, ielen, in cfg80211_inform_bss()
9207 size_t ieee80211_ie_split_ric(const u8 *ies, size_t ielen,
9237 static inline size_t ieee80211_ie_split(const u8 *ies, size_t ielen, in ieee80211_ie_split() argument
9240 return ieee80211_ie_split_ric(ies, ielen, ids, n_ids, NULL, 0, offset); in ieee80211_ie_split()
/linux/drivers/net/wireless/ath/ath6kl/
H A 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()
/linux/drivers/net/wireless/ath/wil6210/
H A Dcfg80211.c1825 u16 ielen = 2 + spos[1]; in _wil_cfg80211_merge_extra_ies() local
1827 if (spos + ielen > ies2 + ies2_len) in _wil_cfg80211_merge_extra_ies()
1831 spos, ielen))) { in _wil_cfg80211_merge_extra_ies()
1832 memcpy(dpos, spos, ielen); in _wil_cfg80211_merge_extra_ies()
1833 dpos += ielen; in _wil_cfg80211_merge_extra_ies()
1835 spos += ielen; in _wil_cfg80211_merge_extra_ies()
/linux/drivers/net/wireless/marvell/libertas/
H A Dcfg.c623 int ielen; in lbs_ret_scan() local
654 ielen = left = len - (6 + 1 + 8 + 2 + 2); in lbs_ret_scan()
692 capa, intvl, ie, ielen, in lbs_ret_scan()
/linux/drivers/staging/rtl8723bs/include/
H A Dieee80211.h737 u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen);