Home
last modified time | relevance | path

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

/drivers/staging/rtl8712/
Drtl871x_recv.c143 struct rx_pkt_attrib *prxattrib = &precvframe->u.hdr.attrib; in r8712_recvframe_chkmic() local
146 stainfo = r8712_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in r8712_recvframe_chkmic()
147 if (prxattrib->encrypt == _TKIP_) { in r8712_recvframe_chkmic()
150 if (is_multicast_ether_addr(prxattrib->ra)) { in r8712_recvframe_chkmic()
152 prxattrib->hdrlen; in r8712_recvframe_chkmic()
162 datalen = precvframe->u.hdr.len - prxattrib->hdrlen - in r8712_recvframe_chkmic()
163 prxattrib->iv_len - prxattrib->icv_len - 8; in r8712_recvframe_chkmic()
165 payload = pframe + prxattrib->hdrlen + in r8712_recvframe_chkmic()
166 prxattrib->iv_len; in r8712_recvframe_chkmic()
169 (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 …]
/drivers/staging/rtl8723bs/core/
Drtw_security.c102 struct rx_pkt_attrib *prxattrib = &(((union recv_frame *)precvframe)->u.hdr.attrib); in rtw_wep_decrypt() local
109 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == _WEP104_)) { in rtw_wep_decrypt()
110 iv = pframe+prxattrib->hdrlen; in rtw_wep_decrypt()
112 keyindex = prxattrib->key_index; in rtw_wep_decrypt()
117 length = ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len; in rtw_wep_decrypt()
119 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt()
546 struct rx_pkt_attrib *prxattrib = &((union recv_frame *)precvframe)->u.hdr.attrib; in rtw_tkip_decrypt() local
554 if (prxattrib->encrypt == _TKIP_) { in rtw_tkip_decrypt()
555 stainfo = rtw_get_stainfo(&padapter->stapriv, &prxattrib->ta[0]); in rtw_tkip_decrypt()
557 if (IS_MCAST(prxattrib->ra)) { in rtw_tkip_decrypt()
[all …]
Drtw_recv.c314 struct rx_pkt_attrib *prxattrib = &precvframe->u.hdr.attrib; in recvframe_chkmic() local
320 stainfo = rtw_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in recvframe_chkmic()
322 if (prxattrib->encrypt == _TKIP_) { in recvframe_chkmic()
325 if (IS_MCAST(prxattrib->ra)) { in recvframe_chkmic()
329 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic()
341 …datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_le… in recvframe_chkmic()
343 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic()
345 …rtw_seccalctkipmic(mickey, pframe, payload, datalen, &miccode[0], (unsigned char)prxattrib->priori… in recvframe_chkmic()
360 if ((IS_MCAST(prxattrib->ra) == true) && (prxattrib->key_index != pmlmeinfo->key_index)) in recvframe_chkmic()
363 if (prxattrib->bdecrypted && brpt_micerror) in recvframe_chkmic()
[all …]
Drtw_mlme_ext.c707 struct rx_pkt_attrib *prxattrib = &(precv_frame->u.hdr.attrib); in OnAuth() local
709 prxattrib->hdrlen = WLAN_HDR_A3_LEN; in OnAuth()
710 prxattrib->encrypt = _WEP40_; in OnAuth()
712 iv = pframe+prxattrib->hdrlen; in OnAuth()
713 prxattrib->key_index = ((iv[3]>>6)&0x3); in OnAuth()
715 prxattrib->iv_len = 4; in OnAuth()
716 prxattrib->icv_len = 4; in OnAuth()
/drivers/staging/r8188eu/core/
Drtw_security.c147 struct rx_pkt_attrib *prxattrib = &(((struct recv_frame *)precvframe)->attrib); in rtw_wep_decrypt() local
153 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == _WEP104_)) { in rtw_wep_decrypt()
154 iv = pframe + prxattrib->hdrlen; in rtw_wep_decrypt()
155 keyindex = prxattrib->key_index; in rtw_wep_decrypt()
159 length = ((struct recv_frame *)precvframe)->len - prxattrib->hdrlen - prxattrib->iv_len; in rtw_wep_decrypt()
161 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in rtw_wep_decrypt()
601 struct rx_pkt_attrib *prxattrib = &((struct recv_frame *)precvframe)->attrib; in rtw_tkip_decrypt() local
608 if (prxattrib->encrypt == _TKIP_) { in rtw_tkip_decrypt()
609 stainfo = rtw_get_stainfo(&padapter->stapriv, &prxattrib->ta[0]); in rtw_tkip_decrypt()
611 if (is_multicast_ether_addr(prxattrib->ra)) { in rtw_tkip_decrypt()
[all …]
Drtw_recv.c319 struct rx_pkt_attrib *prxattrib = &precvframe->attrib; in recvframe_chkmic() local
325 stainfo = rtw_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in recvframe_chkmic()
327 if (prxattrib->encrypt == _TKIP_) { in recvframe_chkmic()
330 if (is_multicast_ether_addr(prxattrib->ra)) { in recvframe_chkmic()
331 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic()
342 …datalen = precvframe->len - prxattrib->hdrlen - prxattrib->iv_len - prxattrib->icv_len - 8;/* icv_… in recvframe_chkmic()
344 payload = pframe + prxattrib->hdrlen + prxattrib->iv_len; in recvframe_chkmic()
347 (unsigned char)prxattrib->priority); /* care the length of the data */ in recvframe_chkmic()
361 if (is_multicast_ether_addr(prxattrib->ra) && prxattrib->key_index != pmlmeinfo->key_index) in recvframe_chkmic()
364 if ((prxattrib->bdecrypted) && (brpt_micerror)) { in recvframe_chkmic()
[all …]