wps_ielen 1144 drivers/staging/rtl8188eu/core/rtw_ap.c uint wps_ielen = 0, wps_offset, remainder_ielen; wps_ielen 1159 drivers/staging/rtl8188eu/core/rtw_ap.c ielen - _FIXED_IE_LENGTH_, NULL, &wps_ielen); wps_ielen 1161 drivers/staging/rtl8188eu/core/rtw_ap.c if (!pwps_ie || wps_ielen == 0) wps_ielen 1166 drivers/staging/rtl8188eu/core/rtw_ap.c premainder_ie = pwps_ie + wps_ielen; wps_ielen 1168 drivers/staging/rtl8188eu/core/rtw_ap.c remainder_ielen = ielen - wps_offset - wps_ielen; wps_ielen 1176 drivers/staging/rtl8188eu/core/rtw_ap.c wps_ielen = (uint)pwps_ie_src[1];/* to get ie data len */ wps_ielen 1177 drivers/staging/rtl8188eu/core/rtw_ap.c if (wps_offset + wps_ielen + 2 + remainder_ielen <= MAX_IE_SZ) { wps_ielen 1178 drivers/staging/rtl8188eu/core/rtw_ap.c memcpy(pwps_ie, pwps_ie_src, wps_ielen + 2); wps_ielen 1179 drivers/staging/rtl8188eu/core/rtw_ap.c pwps_ie += wps_ielen + 2; wps_ielen 1185 drivers/staging/rtl8188eu/core/rtw_ap.c pnetwork->ie_length = wps_offset + wps_ielen + 2 + remainder_ielen; wps_ielen 544 drivers/staging/rtl8188eu/core/rtw_ieee80211.c u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) wps_ielen 555 drivers/staging/rtl8188eu/core/rtw_ieee80211.c *wps_ielen = ie_ptr[1] + 2; wps_ielen 570 drivers/staging/rtl8188eu/core/rtw_ieee80211.c u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) wps_ielen 576 drivers/staging/rtl8188eu/core/rtw_ieee80211.c if (wps_ielen) wps_ielen 577 drivers/staging/rtl8188eu/core/rtw_ieee80211.c *wps_ielen = 0; wps_ielen 593 drivers/staging/rtl8188eu/core/rtw_ieee80211.c if (wps_ielen) wps_ielen 594 drivers/staging/rtl8188eu/core/rtw_ieee80211.c *wps_ielen = in_ie[cnt + 1] + 2; wps_ielen 616 drivers/staging/rtl8188eu/core/rtw_ieee80211.c u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr) wps_ielen 632 drivers/staging/rtl8188eu/core/rtw_ieee80211.c while (attr_ptr - wps_ie < wps_ielen) { wps_ielen 662 drivers/staging/rtl8188eu/core/rtw_ieee80211.c u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint *len_content) wps_ielen 670 drivers/staging/rtl8188eu/core/rtw_ieee80211.c attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); wps_ielen 505 drivers/staging/rtl8188eu/core/rtw_mlme.c uint wps_ielen; wps_ielen 513 drivers/staging/rtl8188eu/core/rtw_mlme.c if (rtw_get_wps_ie(pnetwork->network.ies+_FIXED_IE_LENGTH_, pnetwork->network.ie_length-_FIXED_IE_LENGTH_, NULL, &wps_ielen)) wps_ielen 361 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c uint wps_ielen; wps_ielen 373 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c pattrib->pktlen-sizeof(struct ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen); wps_ielen 374 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (wps_ie && wps_ielen > 0) wps_ielen 375 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL); wps_ielen 462 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c uint wps_ielen; wps_ielen 507 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c pwps_ie = rtw_get_wps_ie(cur_network->ies+_FIXED_IE_LENGTH_, cur_network->ie_length-_FIXED_IE_LENGTH_, NULL, &wps_ielen); wps_ielen 510 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if ((pmlmepriv->wps_probe_resp_ie != NULL) && pwps_ie && (wps_ielen > 0)) { wps_ielen 516 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c premainder_ie = pwps_ie + wps_ielen; wps_ielen 518 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c remainder_ielen = cur_network->ie_length - wps_offset - wps_ielen; wps_ielen 524 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ wps_ielen 525 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if ((wps_offset+wps_ielen+2) <= MAX_IE_SZ) { wps_ielen 526 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c memcpy(pframe, pmlmepriv->wps_probe_resp_ie, wps_ielen+2); wps_ielen 527 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c pframe += wps_ielen+2; wps_ielen 528 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c pattrib->pktlen += wps_ielen+2; wps_ielen 531 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if ((wps_offset+wps_ielen+2+remainder_ielen) <= MAX_IE_SZ) { wps_ielen 749 drivers/staging/rtl8188eu/include/ieee80211.h u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen); wps_ielen 750 drivers/staging/rtl8188eu/include/ieee80211.h u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen); wps_ielen 751 drivers/staging/rtl8188eu/include/ieee80211.h u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, wps_ielen 753 drivers/staging/rtl8188eu/include/ieee80211.h u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, wps_ielen 282 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c uint wps_ielen = 0; wps_ielen 288 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (rtw_is_wps_ie(&ie_ptr[cnt], &wps_ielen) && (wps_ielen > 2)) { wps_ielen 291 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c iwe.u.data.length = (u16)wps_ielen; wps_ielen 394 drivers/staging/rtl8712/ieee80211.c int r8712_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) wps_ielen 407 drivers/staging/rtl8712/ieee80211.c *wps_ielen = in_ie[cnt + 1] + 2; wps_ielen 741 drivers/staging/rtl8712/ieee80211.h int r8712_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen); wps_ielen 192 drivers/staging/rtl8712/rtl871x_ioctl_linux.c uint wps_ielen; wps_ielen 196 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wps_ie, &wps_ielen)) { wps_ielen 197 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (wps_ielen > 2) { wps_ielen 199 drivers/staging/rtl8712/rtl871x_ioctl_linux.c iwe->u.data.length = (u16)wps_ielen; wps_ielen 420 drivers/staging/rtl8712/rtl871x_mlme.c uint wps_ielen; wps_ielen 427 drivers/staging/rtl8712/rtl871x_mlme.c &wps_ielen)) wps_ielen 1653 drivers/staging/rtl8723bs/core/rtw_ap.c uint wps_ielen = 0, wps_offset, remainder_ielen; wps_ielen 1667 drivers/staging/rtl8723bs/core/rtw_ap.c &wps_ielen wps_ielen 1670 drivers/staging/rtl8723bs/core/rtw_ap.c if (pwps_ie == NULL || wps_ielen == 0) wps_ielen 1679 drivers/staging/rtl8723bs/core/rtw_ap.c premainder_ie = pwps_ie + wps_ielen; wps_ielen 1681 drivers/staging/rtl8723bs/core/rtw_ap.c remainder_ielen = ielen - wps_offset - wps_ielen; wps_ielen 1689 drivers/staging/rtl8723bs/core/rtw_ap.c wps_ielen = (uint)pwps_ie_src[1];/* to get ie data len */ wps_ielen 1690 drivers/staging/rtl8723bs/core/rtw_ap.c if ((wps_offset + wps_ielen + 2 + remainder_ielen) <= MAX_IE_SZ) { wps_ielen 1691 drivers/staging/rtl8723bs/core/rtw_ap.c memcpy(pwps_ie, pwps_ie_src, wps_ielen + 2); wps_ielen 1692 drivers/staging/rtl8723bs/core/rtw_ap.c pwps_ie += (wps_ielen+2); wps_ielen 1698 drivers/staging/rtl8723bs/core/rtw_ap.c pnetwork->IELength = wps_offset + (wps_ielen + 2) + remainder_ielen; wps_ielen 1710 drivers/staging/rtl8723bs/core/rtw_ap.c wps_ielen, wps_ielen 710 drivers/staging/rtl8723bs/core/rtw_ieee80211.c u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) wps_ielen 722 drivers/staging/rtl8723bs/core/rtw_ieee80211.c *wps_ielen = ie_ptr[1]+2; wps_ielen 737 drivers/staging/rtl8723bs/core/rtw_ieee80211.c u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) wps_ielen 743 drivers/staging/rtl8723bs/core/rtw_ieee80211.c if (wps_ielen) wps_ielen 744 drivers/staging/rtl8723bs/core/rtw_ieee80211.c *wps_ielen = 0; wps_ielen 760 drivers/staging/rtl8723bs/core/rtw_ieee80211.c if (wps_ielen) wps_ielen 761 drivers/staging/rtl8723bs/core/rtw_ieee80211.c *wps_ielen = in_ie[cnt+1]+2; wps_ielen 784 drivers/staging/rtl8723bs/core/rtw_ieee80211.c u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr) wps_ielen 801 drivers/staging/rtl8723bs/core/rtw_ieee80211.c while (attr_ptr - wps_ie < wps_ielen) { wps_ielen 836 drivers/staging/rtl8723bs/core/rtw_ieee80211.c u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint *len_content) wps_ielen 844 drivers/staging/rtl8723bs/core/rtw_ieee80211.c attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); wps_ielen 734 drivers/staging/rtl8723bs/core/rtw_mlme.c uint wps_ielen; wps_ielen 742 drivers/staging/rtl8723bs/core/rtw_mlme.c if (rtw_get_wps_ie(pnetwork->network.IEs+_FIXED_IE_LENGTH_, pnetwork->network.IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen) != NULL) wps_ielen 2502 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c uint wps_ielen; wps_ielen 2505 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c pattrib->pktlen-sizeof(struct ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen); wps_ielen 2506 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (wps_ie && wps_ielen > 0) { wps_ielen 2507 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL); wps_ielen 2603 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c uint wps_ielen; wps_ielen 2653 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c pwps_ie = rtw_get_wps_ie(cur_network->IEs+_FIXED_IE_LENGTH_, cur_network->IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen); wps_ielen 2656 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if ((pmlmepriv->wps_probe_resp_ie != NULL) && pwps_ie && (wps_ielen > 0)) { wps_ielen 2662 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c premainder_ie = pwps_ie + wps_ielen; wps_ielen 2664 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c remainder_ielen = cur_network->IELength - wps_offset - wps_ielen; wps_ielen 2670 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ wps_ielen 2671 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if ((wps_offset+wps_ielen+2) <= MAX_IE_SZ) { wps_ielen 2672 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c memcpy(pframe, pmlmepriv->wps_probe_resp_ie, wps_ielen+2); wps_ielen 2673 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c pframe += wps_ielen+2; wps_ielen 2674 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c pattrib->pktlen += wps_ielen+2; wps_ielen 2677 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if ((wps_offset+wps_ielen+2+remainder_ielen) <= MAX_IE_SZ) { wps_ielen 724 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c uint wps_ielen; wps_ielen 753 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c cur_network->IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen); wps_ielen 756 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c if (pmlmepriv->wps_probe_resp_ie && pwps_ie && (wps_ielen > 0)) { wps_ielen 762 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c premainder_ie = pwps_ie + wps_ielen; wps_ielen 764 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c remainder_ielen = cur_network->IELength - wps_offset - wps_ielen; wps_ielen 770 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ wps_ielen 771 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c if ((wps_offset+wps_ielen+2) <= MAX_IE_SZ) { wps_ielen 772 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c memcpy(pframe, pmlmepriv->wps_probe_resp_ie, wps_ielen+2); wps_ielen 773 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c pframe += wps_ielen+2; wps_ielen 774 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c pktlen += wps_ielen+2; wps_ielen 777 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c if ((wps_offset+wps_ielen+2+remainder_ielen) <= MAX_IE_SZ) { wps_ielen 1143 drivers/staging/rtl8723bs/include/ieee80211.h u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen); wps_ielen 1144 drivers/staging/rtl8723bs/include/ieee80211.h u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen); wps_ielen 1145 drivers/staging/rtl8723bs/include/ieee80211.h u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id , u8 *buf_attr, u32 *len_attr); wps_ielen 1146 drivers/staging/rtl8723bs/include/ieee80211.h u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id , u8 *buf_content, uint *len_content); wps_ielen 1471 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c uint wps_ielen = 0; wps_ielen 1481 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if ((wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen))) wps_ielen 1484 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_8192C("probe_req_wps_ielen =%d\n", wps_ielen); wps_ielen 1494 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c pmlmepriv->wps_probe_req_ie = rtw_malloc(wps_ielen); wps_ielen 1500 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(pmlmepriv->wps_probe_req_ie, wps_ie, wps_ielen); wps_ielen 1501 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c pmlmepriv->wps_probe_req_ie_len = wps_ielen; wps_ielen 1927 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c uint wps_ielen; wps_ielen 1930 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c wps_ie = rtw_get_wps_ie(buf, ielen, NULL, &wps_ielen); wps_ielen 1931 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (wps_ie && wps_ielen > 0) { wps_ielen 1932 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_8192C("got wps_ie, wps_ielen:%u\n", wps_ielen); wps_ielen 1933 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c padapter->securitypriv.wps_ie_len = wps_ielen<MAX_WPS_IE_LEN?wps_ielen:MAX_WPS_IE_LEN; wps_ielen 2738 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c uint len, wps_ielen = 0; wps_ielen 2759 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (rtw_get_wps_ie(pbuf+_FIXED_IE_LENGTH_, len-_FIXED_IE_LENGTH_, NULL, &wps_ielen)) wps_ielen 2760 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_8192C("add bcn, wps_ielen =%d\n", wps_ielen); wps_ielen 287 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c uint wps_ielen = 0; wps_ielen 301 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (rtw_is_wps_ie(&ie_ptr[cnt], &wps_ielen) && (wps_ielen>2)) { wps_ielen 304 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c iwe.u.data.length = (u16)wps_ielen;