Home
last modified time | relevance | path

Searched refs:wps_ielen (Results 1 – 18 of 18) sorted by relevance

/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c540 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) in rtw_is_wps_ie() argument
551 *wps_ielen = ie_ptr[1] + 2; in rtw_is_wps_ie()
566 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
572 if (wps_ielen) in rtw_get_wps_ie()
573 *wps_ielen = 0; in rtw_get_wps_ie()
589 if (wps_ielen) in rtw_get_wps_ie()
590 *wps_ielen = in_ie[cnt + 1] + 2; in rtw_get_wps_ie()
611 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr) in rtw_get_wps_attr() argument
627 while (attr_ptr - wps_ie < wps_ielen) { in rtw_get_wps_attr()
656 u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint … in rtw_get_wps_attr_content() argument
[all …]
Drtw_ap.c1161 uint wps_ielen = 0, wps_offset, remainder_ielen; in update_bcn_wps_ie() local
1176 ielen - _FIXED_IE_LENGTH_, NULL, &wps_ielen); in update_bcn_wps_ie()
1178 if (!pwps_ie || wps_ielen == 0) in update_bcn_wps_ie()
1183 premainder_ie = pwps_ie + wps_ielen; in update_bcn_wps_ie()
1185 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
1193 wps_ielen = (uint)pwps_ie_src[1];/* to get ie data len */ in update_bcn_wps_ie()
1194 if (wps_offset + wps_ielen + 2 + remainder_ielen <= MAX_IE_SZ) { in update_bcn_wps_ie()
1195 memcpy(pwps_ie, pwps_ie_src, wps_ielen + 2); in update_bcn_wps_ie()
1196 pwps_ie += wps_ielen + 2; in update_bcn_wps_ie()
1202 pnetwork->ie_length = wps_offset + wps_ielen + 2 + remainder_ielen; in update_bcn_wps_ie()
Drtw_mlme_ext.c355 uint wps_ielen; in issue_beacon() local
367 pattrib->pktlen - sizeof(struct ieee80211_hdr_3addr) - _BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon()
368 if (wps_ie && wps_ielen > 0) in issue_beacon()
369 rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL); in issue_beacon()
456 uint wps_ielen; in issue_probersp() local
501 …ur_network->ies + _FIXED_IE_LENGTH_, cur_network->ie_length - _FIXED_IE_LENGTH_, NULL, &wps_ielen); in issue_probersp()
504 if (pmlmepriv->wps_probe_resp_ie && pwps_ie && wps_ielen > 0) { in issue_probersp()
510 premainder_ie = pwps_ie + wps_ielen; in issue_probersp()
512 remainder_ielen = cur_network->ie_length - wps_offset - wps_ielen; in issue_probersp()
518 wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ in issue_probersp()
[all …]
Drtw_mlme.c505 uint wps_ielen; in rtw_is_desired_network() local
513 …etwork.ies + _FIXED_IE_LENGTH_, pnetwork->network.ie_length - _FIXED_IE_LENGTH_, NULL, &wps_ielen)) in rtw_is_desired_network()
/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c711 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) in rtw_is_wps_ie() argument
723 *wps_ielen = ie_ptr[1]+2; in rtw_is_wps_ie()
738 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
744 if (wps_ielen) in rtw_get_wps_ie()
745 *wps_ielen = 0; in rtw_get_wps_ie()
761 if (wps_ielen) in rtw_get_wps_ie()
762 *wps_ielen = in_ie[cnt+1]+2; in rtw_get_wps_ie()
785 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr) in rtw_get_wps_attr() argument
802 while (attr_ptr - wps_ie < wps_ielen) { in rtw_get_wps_attr()
837 u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint … in rtw_get_wps_attr_content() argument
[all …]
Drtw_ap.c1655 uint wps_ielen = 0, wps_offset, remainder_ielen; in update_bcn_wps_ie() local
1669 &wps_ielen in update_bcn_wps_ie()
1672 if (pwps_ie == NULL || wps_ielen == 0) in update_bcn_wps_ie()
1681 premainder_ie = pwps_ie + wps_ielen; in update_bcn_wps_ie()
1683 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
1691 wps_ielen = (uint)pwps_ie_src[1];/* to get ie data len */ in update_bcn_wps_ie()
1692 if ((wps_offset + wps_ielen + 2 + remainder_ielen) <= MAX_IE_SZ) { in update_bcn_wps_ie()
1693 memcpy(pwps_ie, pwps_ie_src, wps_ielen + 2); in update_bcn_wps_ie()
1694 pwps_ie += (wps_ielen+2); in update_bcn_wps_ie()
1700 pnetwork->IELength = wps_offset + (wps_ielen + 2) + remainder_ielen; in update_bcn_wps_ie()
[all …]
Drtw_mlme_ext.c2502 uint wps_ielen; in issue_beacon() local
2506 pattrib->pktlen-sizeof(struct ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon()
2507 if (wps_ie && wps_ielen > 0) { in issue_beacon()
2508 rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL); in issue_beacon()
2604 uint wps_ielen; in issue_probersp() local
2654 …_ie(cur_network->IEs+_FIXED_IE_LENGTH_, cur_network->IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen); in issue_probersp()
2657 if ((pmlmepriv->wps_probe_resp_ie != NULL) && pwps_ie && (wps_ielen > 0)) { in issue_probersp()
2663 premainder_ie = pwps_ie + wps_ielen; in issue_probersp()
2665 remainder_ielen = cur_network->IELength - wps_offset - wps_ielen; in issue_probersp()
2671 wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ in issue_probersp()
[all …]
Drtw_mlme.c718 uint wps_ielen; in rtw_is_desired_network() local
726 …rk->network.IEs+_FIXED_IE_LENGTH_, pnetwork->network.IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen)) in rtw_is_desired_network()
/drivers/staging/rtl8188eu/include/
Dieee80211.h729 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen);
730 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
731 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id,
733 u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id,
/drivers/staging/rtl8723bs/hal/
Drtl8723b_cmd.c724 uint wps_ielen; in ConstructProbeRsp() local
753 cur_network->IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen); in ConstructProbeRsp()
756 if (pmlmepriv->wps_probe_resp_ie && pwps_ie && (wps_ielen > 0)) { in ConstructProbeRsp()
762 premainder_ie = pwps_ie + wps_ielen; in ConstructProbeRsp()
764 remainder_ielen = cur_network->IELength - wps_offset - wps_ielen; in ConstructProbeRsp()
770 wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ in ConstructProbeRsp()
771 if ((wps_offset+wps_ielen+2) <= MAX_IE_SZ) { in ConstructProbeRsp()
772 memcpy(pframe, pmlmepriv->wps_probe_resp_ie, wps_ielen+2); in ConstructProbeRsp()
773 pframe += wps_ielen+2; in ConstructProbeRsp()
774 pktlen += wps_ielen+2; in ConstructProbeRsp()
[all …]
/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c1443 uint wps_ielen = 0; in rtw_cfg80211_set_probe_req_wpsp2pie() local
1453 if ((wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen))) in rtw_cfg80211_set_probe_req_wpsp2pie()
1456 DBG_8192C("probe_req_wps_ielen =%d\n", wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1466 pmlmepriv->wps_probe_req_ie = rtw_malloc(wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1472 memcpy(pmlmepriv->wps_probe_req_ie, wps_ie, wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1473 pmlmepriv->wps_probe_req_ie_len = wps_ielen; in rtw_cfg80211_set_probe_req_wpsp2pie()
1905 uint wps_ielen; in rtw_cfg80211_set_wpa_ie() local
1908 wps_ie = rtw_get_wps_ie(buf, ielen, NULL, &wps_ielen); in rtw_cfg80211_set_wpa_ie()
1909 if (wps_ie && wps_ielen > 0) { in rtw_cfg80211_set_wpa_ie()
1910 DBG_8192C("got wps_ie, wps_ielen:%u\n", wps_ielen); in rtw_cfg80211_set_wpa_ie()
[all …]
Dioctl_linux.c287 uint wps_ielen = 0; in translate_scan() local
301 if (rtw_is_wps_ie(&ie_ptr[cnt], &wps_ielen) && (wps_ielen > 2)) { in translate_scan()
304 iwe.u.data.length = (u16)wps_ielen; in translate_scan()
/drivers/staging/rtl8723bs/include/
Dieee80211.h1142 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen);
1143 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
1144 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr);
1145 u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint …
/drivers/staging/rtl8712/
Dieee80211.c394 int r8712_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in r8712_get_wps_ie() argument
407 *wps_ielen = in_ie[cnt + 1] + 2; in r8712_get_wps_ie()
Dieee80211.h159 int r8712_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
Drtl871x_ioctl_linux.c192 uint wps_ielen; in translate_scan_wps() local
196 wps_ie, &wps_ielen)) { in translate_scan_wps()
197 if (wps_ielen > 2) { in translate_scan_wps()
199 iwe->u.data.length = (u16)wps_ielen; in translate_scan_wps()
Drtl871x_mlme.c420 uint wps_ielen; in is_desired_network() local
427 &wps_ielen)) in is_desired_network()
/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c276 uint wps_ielen = 0; in translate_scan() local
282 if (rtw_is_wps_ie(&ie_ptr[cnt], &wps_ielen) && (wps_ielen > 2)) { in translate_scan()
285 iwe.u.data.length = (u16)wps_ielen; in translate_scan()