Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c645 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) in rtw_is_wps_ie() argument
656 *wps_ielen = ie_ptr[1]+2; in rtw_is_wps_ie()
671 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
677 if (wps_ielen) in rtw_get_wps_ie()
678 *wps_ielen = 0; in rtw_get_wps_ie()
694 if (wps_ielen) in rtw_get_wps_ie()
695 *wps_ielen = in_ie[cnt+1]+2; in rtw_get_wps_ie()
718 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
735 while (attr_ptr - wps_ie < wps_ielen) { in rtw_get_wps_attr()
769 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.c1462 uint wps_ielen = 0, wps_offset, remainder_ielen; in update_bcn_wps_ie() local
1474 &wps_ielen in update_bcn_wps_ie()
1477 if (pwps_ie == NULL || wps_ielen == 0) in update_bcn_wps_ie()
1486 premainder_ie = pwps_ie + wps_ielen; in update_bcn_wps_ie()
1488 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
1496 wps_ielen = (uint)pwps_ie_src[1];/* to get ie data len */ in update_bcn_wps_ie()
1497 if ((wps_offset + wps_ielen + 2 + remainder_ielen) <= MAX_IE_SZ) { in update_bcn_wps_ie()
1498 memcpy(pwps_ie, pwps_ie_src, wps_ielen + 2); in update_bcn_wps_ie()
1499 pwps_ie += (wps_ielen+2); in update_bcn_wps_ie()
1505 pnetwork->ie_length = wps_offset + (wps_ielen + 2) + remainder_ielen; in update_bcn_wps_ie()
Drtw_mlme_ext.c2194 uint wps_ielen; in issue_beacon() local
2198 pattrib->pktlen-sizeof(struct ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon()
2199 if (wps_ie && wps_ielen > 0) { in issue_beacon()
2200 rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL); in issue_beacon()
2293 uint wps_ielen; in issue_probersp() local
2338 …ie(cur_network->ies+_FIXED_IE_LENGTH_, cur_network->ie_length-_FIXED_IE_LENGTH_, NULL, &wps_ielen); in issue_probersp()
2341 if (pmlmepriv->wps_probe_resp_ie && pwps_ie && wps_ielen > 0) { in issue_probersp()
2347 premainder_ie = pwps_ie + wps_ielen; in issue_probersp()
2349 remainder_ielen = cur_network->ie_length - wps_offset - wps_ielen; in issue_probersp()
2355 wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ in issue_probersp()
[all …]
Drtw_mlme.c651 uint wps_ielen; in rtw_is_desired_network() local
659 …k->network.ies+_FIXED_IE_LENGTH_, pnetwork->network.ie_length-_FIXED_IE_LENGTH_, NULL, &wps_ielen)) in rtw_is_desired_network()
/Linux-v5.15/drivers/staging/r8188eu/core/
Drtw_ieee80211.c649 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) in rtw_is_wps_ie() argument
660 *wps_ielen = ie_ptr[1] + 2; in rtw_is_wps_ie()
675 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
681 if (wps_ielen) in rtw_get_wps_ie()
682 *wps_ielen = 0; in rtw_get_wps_ie()
698 if (wps_ielen) in rtw_get_wps_ie()
699 *wps_ielen = in_ie[cnt + 1] + 2; in rtw_get_wps_ie()
721 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
737 while (attr_ptr - wps_ie < wps_ielen) { in rtw_get_wps_attr()
767 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.c1173 uint wps_ielen = 0, wps_offset, remainder_ielen; in update_bcn_wps_ie() local
1183 pwps_ie = rtw_get_wps_ie(ie + _FIXED_IE_LENGTH_, ielen - _FIXED_IE_LENGTH_, NULL, &wps_ielen); in update_bcn_wps_ie()
1185 if (!pwps_ie || wps_ielen == 0) in update_bcn_wps_ie()
1190 premainder_ie = pwps_ie + wps_ielen; in update_bcn_wps_ie()
1192 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
1204 wps_ielen = (uint)pwps_ie_src[1];/* to get ie data len */ in update_bcn_wps_ie()
1205 if ((wps_offset + wps_ielen + 2 + remainder_ielen) <= MAX_IE_SZ) { in update_bcn_wps_ie()
1206 memcpy(pwps_ie, pwps_ie_src, wps_ielen + 2); in update_bcn_wps_ie()
1207 pwps_ie += (wps_ielen + 2); in update_bcn_wps_ie()
1213 pnetwork->IELength = wps_offset + (wps_ielen + 2) + remainder_ielen; in update_bcn_wps_ie()
Drtw_p2p.c989 uint wps_ielen = 0, attr_contentlen = 0; in process_p2p_provdisc_req() local
995 …_wps_ie(frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &wps_ielen); in process_p2p_provdisc_req()
997 …if (rtw_get_wps_attr_content(wpsie, wps_ielen, WPS_ATTR_CONF_METHOD, (u8 *)&be_tmp, &attr_contentl… in process_p2p_provdisc_req()
1069 u32 p2p_ielen = 0, wps_ielen = 0; in process_p2p_group_negotation_req() local
1078 …_get_wps_ie(pframe + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &wps_ielen); in process_p2p_group_negotation_req()
1084 …rtw_get_wps_attr_content(wpsie, wps_ielen, WPS_ATTR_DEVICE_PWID, (u8 *)&be_tmp, &wps_devicepasswor… in process_p2p_group_negotation_req()
1210 u32 p2p_ielen, wps_ielen; in process_p2p_group_negotation_resp() local
1220 if (rtw_get_wps_ie(ies, ies_len, NULL, &wps_ielen)) { in process_p2p_group_negotation_resp()
Drtw_mlme_ext.c4542 uint wps_ielen; in issue_beacon() local
4545 … pattrib->pktlen - sizeof(struct rtw_ieee80211_hdr_3addr) - _BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon()
4546 if (wps_ie && wps_ielen > 0) in issue_beacon()
4547 rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL); in issue_beacon()
4645 uint wps_ielen; in issue_probersp() local
4693 …cur_network->IEs + _FIXED_IE_LENGTH_, cur_network->IELength - _FIXED_IE_LENGTH_, NULL, &wps_ielen); in issue_probersp()
4696 if (pmlmepriv->wps_probe_resp_ie && pwps_ie && wps_ielen > 0) { in issue_probersp()
4702 premainder_ie = pwps_ie + wps_ielen; in issue_probersp()
4704 remainder_ielen = cur_network->IELength - wps_offset - wps_ielen; in issue_probersp()
4710 wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ in issue_probersp()
[all …]
Drtw_mlme.c636 uint wps_ielen; in rtw_is_desired_network() local
644 …network.IEs + _FIXED_IE_LENGTH_, pnetwork->network.IELength - _FIXED_IE_LENGTH_, NULL, &wps_ielen)) in rtw_is_desired_network()
/Linux-v5.15/drivers/staging/rtl8723bs/include/
Dieee80211.h749 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen);
750 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
751 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr);
752 u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint …
/Linux-v5.15/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c1282 uint wps_ielen = 0; in rtw_cfg80211_set_probe_req_wpsp2pie() local
1288 wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1298 pmlmepriv->wps_probe_req_ie = rtw_malloc(wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1302 memcpy(pmlmepriv->wps_probe_req_ie, wps_ie, wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1303 pmlmepriv->wps_probe_req_ie_len = wps_ielen; in rtw_cfg80211_set_probe_req_wpsp2pie()
1671 uint wps_ielen; in rtw_cfg80211_set_wpa_ie() local
1674 wps_ie = rtw_get_wps_ie(buf, ielen, NULL, &wps_ielen); in rtw_cfg80211_set_wpa_ie()
1675 if (wps_ie && wps_ielen > 0) { in rtw_cfg80211_set_wpa_ie()
1676 padapter->securitypriv.wps_ie_len = wps_ielen < MAX_WPS_IE_LEN ? wps_ielen : MAX_WPS_IE_LEN; in rtw_cfg80211_set_wpa_ie()
2414 uint len, wps_ielen = 0; in rtw_add_beacon() local
[all …]
/Linux-v5.15/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.c190 uint wps_ielen; in translate_scan_wps() local
194 wps_ie, &wps_ielen)) { in translate_scan_wps()
195 if (wps_ielen > 2) { in translate_scan_wps()
197 iwe->u.data.length = (u16)wps_ielen; in translate_scan_wps()
Drtl871x_mlme.c418 uint wps_ielen; in is_desired_network() local
425 &wps_ielen)) in is_desired_network()
/Linux-v5.15/drivers/staging/r8188eu/include/
Dieee80211.h1169 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen);
1170 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
1171 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id,
1173 u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id,
/Linux-v5.15/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c350 uint wps_ielen = 0; in translate_scan() local
356 if (rtw_is_wps_ie(&ie_ptr[cnt], &wps_ielen) && (wps_ielen > 2)) { in translate_scan()
359 iwe.u.data.length = (u16)wps_ielen; in translate_scan()