Home
last modified time | relevance | path

Searched refs:in_ie (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/staging/rtl8712/
Dieee80211.c371 int r8712_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, in r8712_get_sec_ie() argument
381 authmode = in_ie[cnt]; in r8712_get_sec_ie()
383 (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) { in r8712_get_sec_ie()
384 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in r8712_get_sec_ie()
385 *wpa_len = in_ie[cnt + 1] + 2; in r8712_get_sec_ie()
386 cnt += in_ie[cnt + 1] + 2; /*get next */ in r8712_get_sec_ie()
389 memcpy(rsn_ie, &in_ie[cnt], in r8712_get_sec_ie()
390 in_ie[cnt + 1] + 2); in r8712_get_sec_ie()
391 *rsn_len = in_ie[cnt + 1] + 2; in r8712_get_sec_ie()
392 cnt += in_ie[cnt + 1] + 2; /*get next*/ in r8712_get_sec_ie()
[all …]
Drtl871x_mlme.c1298 int r8712_restruct_wmm_ie(struct _adapter *adapter, u8 *in_ie, u8 *out_ie, in r8712_restruct_wmm_ie() argument
1307 if (in_ie[i] == 0xDD && in_ie[i + 2] == 0x00 && in r8712_restruct_wmm_ie()
1308 in_ie[i + 3] == 0x50 && in_ie[i + 4] == 0xF2 && in r8712_restruct_wmm_ie()
1309 in_ie[i + 5] == 0x02 && i + 5 < in_len) { in r8712_restruct_wmm_ie()
1312 out_ie[ielength] = in_ie[j]; in r8712_restruct_wmm_ie()
1320 i += (in_ie[i + 1] + 2); /* to the next IE element */ in r8712_restruct_wmm_ie()
1357 sint r8712_restruct_sec_ie(struct _adapter *adapter, u8 *in_ie, in r8712_restruct_sec_ie() argument
1404 if (in_ie[cnt] == authmode) { in r8712_restruct_sec_ie()
1406 (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) { in r8712_restruct_sec_ie()
1407 memcpy(&sec_ie[0], &in_ie[cnt], in r8712_restruct_sec_ie()
[all …]
Drtl871x_mlme.h200 int r8712_restruct_sec_ie(struct _adapter *adapter, u8 *in_ie,
202 int r8712_restruct_wmm_ie(struct _adapter *adapter, u8 *in_ie,
214 unsigned int r8712_restructure_ht_ie(struct _adapter *padapter, u8 *in_ie,
Dieee80211.h749 int r8712_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len,
751 int r8712_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
/Linux-v4.19/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c183 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
191 if (!in_ie || in_len <= 0) in rtw_get_ie_ex()
197 if (eid == in_ie[cnt] in rtw_get_ie_ex()
198 && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { in rtw_get_ie_ex()
199 target_ie = &in_ie[cnt]; in rtw_get_ie_ex()
202 memcpy(ie, &in_ie[cnt], in_ie[cnt+1]+2); in rtw_get_ie_ex()
205 *ielen = in_ie[cnt+1]+2; in rtw_get_ie_ex()
209 cnt += in_ie[cnt+1]+2; /* goto next */ in rtw_get_ie_ex()
609 int rtw_get_wapi_ie(u8 *in_ie, uint in_len, u8 *wapi_ie, u16 *wapi_len) in rtw_get_wapi_ie() argument
620 if (!in_ie || in_len <= 0) in rtw_get_wapi_ie()
[all …]
Drtw_mlme.c2388 int rtw_restruct_wmm_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len, uint initial_o… in rtw_restruct_wmm_ie() argument
2397 …if (in_ie[i] == 0xDD && in_ie[i+2] == 0x00 && in_ie[i+3] == 0x50 && in_ie[i+4] == 0xF2 && in_ie[i… in rtw_restruct_wmm_ie()
2399 out_ie[ielength] = in_ie[j]; in rtw_restruct_wmm_ie()
2409 i += (in_ie[i+1]+2); /* to the next IE element */ in rtw_restruct_wmm_ie()
2481 sint rtw_restruct_sec_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len) in rtw_restruct_sec_ie() argument
2495 memcpy(out_ie, in_ie, 12); in rtw_restruct_sec_ie()
2721 unsigned int rtw_restructure_ht_ie(struct adapter *padapter, u8 *in_ie, u8 *out_ie, uint in_len, ui… in rtw_restructure_ht_ie() argument
2745 if (in_ie == NULL) { in rtw_restructure_ht_ie()
2755 p = rtw_get_ie(in_ie, _HT_ADD_INFO_IE_, &ielen, in_len); in rtw_restructure_ht_ie()
2860 if (in_ie != NULL) { in rtw_restructure_ht_ie()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c491 int rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len) in rtw_get_sec_ie() argument
504 authmode = in_ie[cnt]; in rtw_get_sec_ie()
506 if ((authmode == _WPA_IE_ID_) && (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) { in rtw_get_sec_ie()
509 sec_idx, in_ie[cnt + 1] + 2)); in rtw_get_sec_ie()
512 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in rtw_get_sec_ie()
514 for (i = 0; i < (in_ie[cnt + 1] + 2); i += 8) { in rtw_get_sec_ie()
522 *wpa_len = in_ie[cnt + 1] + 2; in rtw_get_sec_ie()
523 cnt += in_ie[cnt + 1] + 2; /* get next */ in rtw_get_sec_ie()
528 sec_idx, in_ie[cnt + 1] + 2)); in rtw_get_sec_ie()
531 memcpy(rsn_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in rtw_get_sec_ie()
[all …]
Drtw_mlme.c1656 int rtw_restruct_wmm_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len, uint initial_o… in rtw_restruct_wmm_ie() argument
1662 for (i = 12; i < in_len; i += (in_ie[i + 1] + 2) /* to the next IE element */) { in rtw_restruct_wmm_ie()
1665 …if (in_ie[i] == 0xDD && in_ie[i+2] == 0x00 && in_ie[i+3] == 0x50 && in_ie[i+4] == 0xF2 && in_ie[i… in rtw_restruct_wmm_ie()
1670 out_ie[ielength] = in_ie[j]; in rtw_restruct_wmm_ie()
1734 int rtw_restruct_sec_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len) in rtw_restruct_sec_ie() argument
1750 memcpy(out_ie, in_ie, 12); in rtw_restruct_sec_ie()
1891 unsigned int rtw_restructure_ht_ie(struct adapter *padapter, u8 *in_ie, u8 *out_ie, uint in_len, ui… in rtw_restructure_ht_ie() argument
1904 p = rtw_get_ie(in_ie+12, _HT_CAPABILITY_IE_, &ielen, in_len-12); in rtw_restructure_ht_ie()
1949 p = rtw_get_ie(in_ie+12, _HT_ADD_INFO_IE_, &ielen, in_len-12); in rtw_restructure_ht_ie()
/Linux-v4.19/drivers/staging/rtl8188eu/include/
Drtw_mlme.h316 int rtw_restruct_sec_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie,
318 int rtw_restruct_wmm_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie,
349 unsigned int rtw_restructure_ht_ie(struct adapter *padapter, u8 *in_ie,
Dieee80211.h746 int rtw_get_wapi_ie(u8 *in_ie, uint in_len, u8 *wapi_ie, u16 *wapi_len);
752 int rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len,
756 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
/Linux-v4.19/drivers/staging/rtl8723bs/include/
Drtw_mlme.h605 extern int rtw_restruct_sec_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len);
606 extern int rtw_restruct_wmm_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len, uint in…
653 unsigned int rtw_restructure_ht_ie(struct adapter *padapter, u8 *in_ie, u8 *out_ie, uint in_len, ui…
Dieee80211.h1135 u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen);
1144 int rtw_get_wapi_ie(u8 *in_ie, uint in_len, u8 *wapi_ie, u16 *wapi_len);
1148 int rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len);
1151 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);