Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/staging/r8188eu/core/
Drtw_ieee80211.c503 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) in rtw_is_wps_ie() argument
514 *wps_ielen = ie_ptr[1] + 2; in rtw_is_wps_ie()
529 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
535 if (wps_ielen) in rtw_get_wps_ie()
536 *wps_ielen = 0; in rtw_get_wps_ie()
552 if (wps_ielen) in rtw_get_wps_ie()
553 *wps_ielen = in_ie[cnt + 1] + 2; in rtw_get_wps_ie()
574 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
590 while (attr_ptr - wps_ie < wps_ielen) { in rtw_get_wps_attr()
619 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.c568 uint wps_ielen = 0, wps_offset, remainder_ielen; in update_bcn_wps_ie() local
576 pwps_ie = rtw_get_wps_ie(ie + _FIXED_IE_LENGTH_, ielen - _FIXED_IE_LENGTH_, NULL, &wps_ielen); in update_bcn_wps_ie()
578 if (!pwps_ie || wps_ielen == 0) in update_bcn_wps_ie()
583 premainder_ie = pwps_ie + wps_ielen; in update_bcn_wps_ie()
585 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
597 wps_ielen = (uint)pwps_ie_src[1];/* to get ie data len */ in update_bcn_wps_ie()
598 if ((wps_offset + wps_ielen + 2 + remainder_ielen) <= MAX_IE_SZ) { in update_bcn_wps_ie()
599 memcpy(pwps_ie, pwps_ie_src, wps_ielen + 2); in update_bcn_wps_ie()
600 pwps_ie += (wps_ielen + 2); in update_bcn_wps_ie()
606 pnetwork->IELength = wps_offset + (wps_ielen + 2) + remainder_ielen; in update_bcn_wps_ie()
Drtw_p2p.c966 uint wps_ielen = 0, attr_contentlen = 0; in process_p2p_provdisc_req() local
972 …_wps_ie(frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &wps_ielen); in process_p2p_provdisc_req()
974 …if (rtw_get_wps_attr_content(wpsie, wps_ielen, WPS_ATTR_CONF_METHOD, (u8 *)&be_tmp, &attr_contentl… in process_p2p_provdisc_req()
1045 u32 p2p_ielen = 0, wps_ielen = 0; in process_p2p_group_negotation_req() local
1054 …_get_wps_ie(pframe + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &wps_ielen); in process_p2p_group_negotation_req()
1060 …rtw_get_wps_attr_content(wpsie, wps_ielen, WPS_ATTR_DEVICE_PWID, (u8 *)&be_tmp, &wps_devicepasswor… in process_p2p_group_negotation_req()
1180 u32 p2p_ielen, wps_ielen; in process_p2p_group_negotation_resp() local
1190 if (!rtw_get_wps_ie(ies, ies_len, NULL, &wps_ielen)) { in process_p2p_group_negotation_resp()
Drtw_mlme_ext.c4267 uint wps_ielen; in issue_beacon() local
4270 pattrib->pktlen - sizeof(struct ieee80211_hdr_3addr) - _BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon()
4271 if (wps_ie && wps_ielen > 0) in issue_beacon()
4272 rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL); in issue_beacon()
4362 uint wps_ielen; in issue_probersp() local
4404 …cur_network->IEs + _FIXED_IE_LENGTH_, cur_network->IELength - _FIXED_IE_LENGTH_, NULL, &wps_ielen); in issue_probersp()
4407 if (pmlmepriv->wps_probe_resp_ie && pwps_ie && wps_ielen > 0) { in issue_probersp()
4413 premainder_ie = pwps_ie + wps_ielen; in issue_probersp()
4415 remainder_ielen = cur_network->IELength - wps_offset - wps_ielen; in issue_probersp()
4421 wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ in issue_probersp()
[all …]
Drtw_mlme.c586 uint wps_ielen; in rtw_is_desired_network() local
594 …network.IEs + _FIXED_IE_LENGTH_, pnetwork->network.IELength - _FIXED_IE_LENGTH_, NULL, &wps_ielen)) in rtw_is_desired_network()
/linux-6.1.9/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c646 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
652 if (wps_ielen) in rtw_get_wps_ie()
653 *wps_ielen = 0; in rtw_get_wps_ie()
669 if (wps_ielen) in rtw_get_wps_ie()
670 *wps_ielen = in_ie[cnt+1]+2; in rtw_get_wps_ie()
692 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
709 while (attr_ptr - wps_ie < wps_ielen) { in rtw_get_wps_attr()
742 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
750 attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); in rtw_get_wps_attr_content()
Drtw_ap.c1465 uint wps_ielen = 0, wps_offset, remainder_ielen; in update_bcn_wps_ie() local
1477 &wps_ielen in update_bcn_wps_ie()
1480 if (!pwps_ie || wps_ielen == 0) in update_bcn_wps_ie()
1489 premainder_ie = pwps_ie + wps_ielen; in update_bcn_wps_ie()
1491 remainder_ielen = ielen - wps_offset - wps_ielen; in update_bcn_wps_ie()
1499 wps_ielen = (uint)pwps_ie_src[1];/* to get ie data len */ in update_bcn_wps_ie()
1500 if ((wps_offset + wps_ielen + 2 + remainder_ielen) <= MAX_IE_SZ) { in update_bcn_wps_ie()
1501 memcpy(pwps_ie, pwps_ie_src, wps_ielen + 2); in update_bcn_wps_ie()
1502 pwps_ie += (wps_ielen+2); in update_bcn_wps_ie()
1508 pnetwork->ie_length = wps_offset + (wps_ielen + 2) + remainder_ielen; in update_bcn_wps_ie()
Drtw_mlme_ext.c2175 uint wps_ielen; in issue_beacon() local
2179 pattrib->pktlen-sizeof(struct ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon()
2180 if (wps_ie && wps_ielen > 0) in issue_beacon()
2181 rtw_get_wps_attr_content(wps_ie, wps_ielen, WPS_ATTR_SELECTED_REGISTRAR, (u8 *)(&sr), NULL); in issue_beacon()
2272 uint wps_ielen; in issue_probersp() local
2317 …ie(cur_network->ies+_FIXED_IE_LENGTH_, cur_network->ie_length-_FIXED_IE_LENGTH_, NULL, &wps_ielen); in issue_probersp()
2320 if (pmlmepriv->wps_probe_resp_ie && pwps_ie && wps_ielen > 0) { in issue_probersp()
2326 premainder_ie = pwps_ie + wps_ielen; in issue_probersp()
2328 remainder_ielen = cur_network->ie_length - wps_offset - wps_ielen; in issue_probersp()
2334 wps_ielen = (uint)pmlmepriv->wps_probe_resp_ie[1];/* to get ie data len */ in issue_probersp()
[all …]
Drtw_mlme.c653 uint wps_ielen; in rtw_is_desired_network() local
661 …k->network.ies+_FIXED_IE_LENGTH_, pnetwork->network.ie_length-_FIXED_IE_LENGTH_, NULL, &wps_ielen)) in rtw_is_desired_network()
/linux-6.1.9/drivers/staging/r8188eu/include/
Dieee80211.h772 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen);
773 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
774 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id,
776 u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id,
/linux-6.1.9/drivers/staging/rtl8723bs/include/
Dieee80211.h749 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
750 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr);
751 u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint …
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c1176 uint wps_ielen = 0; in rtw_cfg80211_set_probe_req_wpsp2pie() local
1181 wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1189 pmlmepriv->wps_probe_req_ie = rtw_malloc(wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1193 memcpy(pmlmepriv->wps_probe_req_ie, wps_ie, wps_ielen); in rtw_cfg80211_set_probe_req_wpsp2pie()
1194 pmlmepriv->wps_probe_req_ie_len = wps_ielen; in rtw_cfg80211_set_probe_req_wpsp2pie()
1549 uint wps_ielen; in rtw_cfg80211_set_wpa_ie() local
1552 wps_ie = rtw_get_wps_ie(buf, ielen, NULL, &wps_ielen); in rtw_cfg80211_set_wpa_ie()
1553 if (wps_ie && wps_ielen > 0) { in rtw_cfg80211_set_wpa_ie()
1554 padapter->securitypriv.wps_ie_len = wps_ielen < MAX_WPS_IE_LEN ? wps_ielen : MAX_WPS_IE_LEN; in rtw_cfg80211_set_wpa_ie()
2293 uint len, wps_ielen = 0; in rtw_add_beacon() local
[all …]
/linux-6.1.9/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-6.1.9/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c300 uint wps_ielen = 0; in translate_scan() local
306 if (rtw_is_wps_ie(&ie_ptr[cnt], &wps_ielen) && (wps_ielen > 2)) { in translate_scan()
309 iwe.u.data.length = (u16)wps_ielen; in translate_scan()