Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/staging/rtl8712/
Drtl871x_recv.c145 struct rx_pkt_attrib *prxattrib = &precvframe->u.hdr.attrib; in r8712_recvframe_chkmic() local
148 stainfo = r8712_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in r8712_recvframe_chkmic()
149 if (prxattrib->encrypt == _TKIP_) { in r8712_recvframe_chkmic()
152 if (is_multicast_ether_addr(prxattrib->ra)) { in r8712_recvframe_chkmic()
154 prxattrib->hdrlen; in r8712_recvframe_chkmic()
164 datalen = precvframe->u.hdr.len - prxattrib->hdrlen - in r8712_recvframe_chkmic()
165 prxattrib->iv_len - prxattrib->icv_len - 8; in r8712_recvframe_chkmic()
167 payload = pframe + prxattrib->hdrlen + in r8712_recvframe_chkmic()
168 prxattrib->iv_len; in r8712_recvframe_chkmic()
171 (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()
650 struct rx_pkt_attrib *prxattrib = &((union recv_frame *) in r8712_tkip_decrypt() local
657 if (prxattrib->encrypt == _TKIP_) { in r8712_tkip_decrypt()
659 &prxattrib->ta[0]); in r8712_tkip_decrypt()
661 iv = pframe + prxattrib->hdrlen; in r8712_tkip_decrypt()
662 payload = pframe + prxattrib->iv_len + in r8712_tkip_decrypt()
[all …]
/linux-6.6.21/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_multicast_ether_addr(prxattrib->ra)) { in rtw_tkip_decrypt()
[all …]
Drtw_recv.c309 struct rx_pkt_attrib *prxattrib = &precvframe->u.hdr.attrib; in recvframe_chkmic() local
315 stainfo = rtw_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in recvframe_chkmic()
317 if (prxattrib->encrypt == _TKIP_) { in recvframe_chkmic()
320 if (is_multicast_ether_addr(prxattrib->ra)) { in recvframe_chkmic()
324 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic()
336 …datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_le… in recvframe_chkmic()
338 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic()
340 …rtw_seccalctkipmic(mickey, pframe, payload, datalen, &miccode[0], (unsigned char)prxattrib->priori… in recvframe_chkmic()
355 …if ((is_multicast_ether_addr(prxattrib->ra) == true) && (prxattrib->key_index != pmlmeinfo->key_i… in recvframe_chkmic()
358 if (prxattrib->bdecrypted && brpt_micerror) in recvframe_chkmic()
[all …]
Drtw_mlme_ext.c702 struct rx_pkt_attrib *prxattrib = &(precv_frame->u.hdr.attrib); in OnAuth() local
704 prxattrib->hdrlen = WLAN_HDR_A3_LEN; in OnAuth()
705 prxattrib->encrypt = _WEP40_; in OnAuth()
707 iv = pframe+prxattrib->hdrlen; in OnAuth()
708 prxattrib->key_index = ((iv[3]>>6)&0x3); in OnAuth()
710 prxattrib->iv_len = 4; in OnAuth()
711 prxattrib->icv_len = 4; in OnAuth()