Home
last modified time | relevance | path

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

/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()
/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 …]
/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 …]
/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, WLAN_EID_HT_CAPABILITY, &ielen, in_len - 12); in r8712_restructure_ht_ie()
1653 if (p && (ielen > 0)) { in r8712_restructure_ht_ie()
/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()
/drivers/staging/ks7010/
Dks_wlan_net.c2102 priv->wps.ielen = p[1] + 2 + 1; /* IE header + IE + sizeof(len) */ in ks_wlan_set_wps_probe_req()
2109 priv->wps.ielen, priv->wps.ielen, p[0], p[1], p[2], p[3], in ks_wlan_set_wps_probe_req()
2110 p[priv->wps.ielen - 3], p[priv->wps.ielen - 2], in ks_wlan_set_wps_probe_req()
2111 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()
/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()
/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()
/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()
/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);