Home
last modified time | relevance | path

Searched refs:prxattrib (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/drivers/staging/rtl8188eu/core/
Drtw_recv.c210 struct rx_pkt_attrib *prxattrib = &precvframe->attrib; in recvframe_chkmic() local
216 stainfo = rtw_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in recvframe_chkmic()
218 if (prxattrib->encrypt == _TKIP_) { in recvframe_chkmic()
223 __func__, prxattrib->ra[0], prxattrib->ra[1], prxattrib->ra[2], in recvframe_chkmic()
224 prxattrib->ra[3], prxattrib->ra[4], prxattrib->ra[5])); in recvframe_chkmic()
228 if (is_multicast_ether_addr(prxattrib->ra)) { in recvframe_chkmic()
236 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic()
247 datalen = precvframe->pkt->len - prxattrib->hdrlen - in recvframe_chkmic()
248 prxattrib->iv_len - prxattrib->icv_len - 8; in recvframe_chkmic()
250 payload = pframe + prxattrib->hdrlen + prxattrib->iv_len; in recvframe_chkmic()
[all …]
Drtw_security.c203 struct rx_pkt_attrib *prxattrib = &precvframe->attrib; in rtw_wep_decrypt() local
205 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == _WEP104_)) { in rtw_wep_decrypt()
211 const int keyindex = prxattrib->key_index; in rtw_wep_decrypt()
220 memcpy(iv, pframe + prxattrib->hdrlen, 4); in rtw_wep_decrypt()
233 if (crypto_ops->decrypt_mpdu(skb, prxattrib->hdrlen, crypto_private)) { in rtw_wep_decrypt()
238 memmove(pframe, pframe + 4, prxattrib->hdrlen); in rtw_wep_decrypt()
242 memcpy(pframe + prxattrib->hdrlen, iv, 4); in rtw_wep_decrypt()
666 struct rx_pkt_attrib *prxattrib = &precvframe->attrib; in rtw_tkip_decrypt() local
673 if (prxattrib->encrypt == _TKIP_) { in rtw_tkip_decrypt()
674 stainfo = rtw_get_stainfo(&padapter->stapriv, &prxattrib->ta[0]); in rtw_tkip_decrypt()
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/core/
Drtw_recv.c321 struct rx_pkt_attrib *prxattrib = &precvframe->u.hdr.attrib; in recvframe_chkmic() local
327 stainfo = rtw_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in recvframe_chkmic()
329 if (prxattrib->encrypt == _TKIP_) { in recvframe_chkmic()
332prxattrib->ra[0], prxattrib->ra[1], prxattrib->ra[2], prxattrib->ra[3], prxattrib->ra[4], prxattri… in recvframe_chkmic()
336 if (IS_MCAST(prxattrib->ra)) { in recvframe_chkmic()
340 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic()
357 …datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_le… in recvframe_chkmic()
359 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic()
361 …_info_, ("\n prxattrib->iv_len =%d prxattrib->icv_len =%d\n", prxattrib->iv_len, prxattrib->icv_le… in recvframe_chkmic()
364 …rtw_seccalctkipmic(mickey, pframe, payload, datalen, &miccode[0], (unsigned char)prxattrib->priori… in recvframe_chkmic()
[all …]
Drtw_security.c280 struct rx_pkt_attrib *prxattrib = &(((union recv_frame *)precvframe)->u.hdr.attrib); in rtw_wep_decrypt() local
286 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == _WEP104_)) { in rtw_wep_decrypt()
287 iv = pframe+prxattrib->hdrlen; in rtw_wep_decrypt()
289 keyindex = prxattrib->key_index; in rtw_wep_decrypt()
294 length = ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len; in rtw_wep_decrypt()
296 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt()
316 WEP_SW_DEC_CNT_INC(psecuritypriv, prxattrib->ra); in rtw_wep_decrypt()
744 struct rx_pkt_attrib *prxattrib = &((union recv_frame *)precvframe)->u.hdr.attrib; in rtw_tkip_decrypt() local
751 if (prxattrib->encrypt == _TKIP_) { in rtw_tkip_decrypt()
752 stainfo = rtw_get_stainfo(&padapter->stapriv, &prxattrib->ta[0]); in rtw_tkip_decrypt()
[all …]
Drtw_mlme_ext.c912 struct rx_pkt_attrib *prxattrib = &(precv_frame->u.hdr.attrib); in OnAuth() local
914 prxattrib->hdrlen = WLAN_HDR_A3_LEN; in OnAuth()
915 prxattrib->encrypt = _WEP40_; in OnAuth()
917 iv = pframe+prxattrib->hdrlen; in OnAuth()
918 prxattrib->key_index = ((iv[3]>>6)&0x3); in OnAuth()
920 prxattrib->iv_len = 4; in OnAuth()
921 prxattrib->icv_len = 4; in OnAuth()
/Linux-v5.10/drivers/staging/rtl8712/
Drtl871x_recv.c142 struct rx_pkt_attrib *prxattrib = &precvframe->u.hdr.attrib; in r8712_recvframe_chkmic() local
145 stainfo = r8712_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in r8712_recvframe_chkmic()
146 if (prxattrib->encrypt == _TKIP_) { in r8712_recvframe_chkmic()
149 if (is_multicast_ether_addr(prxattrib->ra)) { in r8712_recvframe_chkmic()
151 prxattrib->hdrlen; in r8712_recvframe_chkmic()
161 datalen = precvframe->u.hdr.len - prxattrib->hdrlen - in r8712_recvframe_chkmic()
162 prxattrib->iv_len - prxattrib->icv_len - 8; in r8712_recvframe_chkmic()
164 payload = pframe + prxattrib->hdrlen + in r8712_recvframe_chkmic()
165 prxattrib->iv_len; in r8712_recvframe_chkmic()
168 (unsigned char)prxattrib->priority); in r8712_recvframe_chkmic()
[all …]
Drtl871x_security.c216 struct rx_pkt_attrib *prxattrib = &(((union recv_frame *) in r8712_wep_decrypt() local
223 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == in r8712_wep_decrypt()
225 iv = pframe + prxattrib->hdrlen; in r8712_wep_decrypt()
233 u.hdr.len - prxattrib->hdrlen - prxattrib->iv_len; in r8712_wep_decrypt()
234 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in r8712_wep_decrypt()
651 struct rx_pkt_attrib *prxattrib = &((union recv_frame *) in r8712_tkip_decrypt() local
658 if (prxattrib->encrypt == _TKIP_) { in r8712_tkip_decrypt()
660 &prxattrib->ta[0]); in r8712_tkip_decrypt()
662 iv = pframe + prxattrib->hdrlen; in r8712_tkip_decrypt()
663 payload = pframe + prxattrib->iv_len + in r8712_tkip_decrypt()
[all …]