Searched refs:prxattrib (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/staging/rtl8712/ |
D | rtl871x_recv.c | 143 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 …]
|
D | rtl871x_security.c | 216 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.1.9/drivers/staging/r8188eu/core/ |
D | rtw_security.c | 80 struct rx_pkt_attrib *prxattrib = &precvframe->attrib; in rtw_wep_decrypt() local 87 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == _WEP104_)) { in rtw_wep_decrypt() 88 iv = pframe + prxattrib->hdrlen; in rtw_wep_decrypt() 89 keyindex = prxattrib->key_index; in rtw_wep_decrypt() 93 length = precvframe->len - prxattrib->hdrlen - prxattrib->iv_len; in rtw_wep_decrypt() 95 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in rtw_wep_decrypt() 534 struct rx_pkt_attrib *prxattrib = &precvframe->attrib; in rtw_tkip_decrypt() local 542 if (prxattrib->encrypt == _TKIP_) { in rtw_tkip_decrypt() 543 stainfo = rtw_get_stainfo(&padapter->stapriv, &prxattrib->ta[0]); in rtw_tkip_decrypt() 545 if (is_multicast_ether_addr(prxattrib->ra)) { in rtw_tkip_decrypt() [all …]
|
D | rtw_recv.c | 373 struct rx_pkt_attrib *prxattrib = &precvframe->attrib; in recvframe_chkmic() local 379 stainfo = rtw_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]); in recvframe_chkmic() 381 if (prxattrib->encrypt == _TKIP_) { in recvframe_chkmic() 384 if (is_multicast_ether_addr(prxattrib->ra)) { in recvframe_chkmic() 385 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic() 395 …datalen = precvframe->len - prxattrib->hdrlen - prxattrib->iv_len - prxattrib->icv_len - 8;/* icv_… in recvframe_chkmic() 397 payload = pframe + prxattrib->hdrlen + prxattrib->iv_len; in recvframe_chkmic() 400 (unsigned char)prxattrib->priority); /* care the length of the data */ in recvframe_chkmic() 414 if (is_multicast_ether_addr(prxattrib->ra) && prxattrib->key_index != pmlmeinfo->key_index) in recvframe_chkmic() 417 if ((prxattrib->bdecrypted) && (brpt_micerror)) in recvframe_chkmic() [all …]
|
/linux-6.1.9/drivers/staging/rtl8723bs/core/ |
D | rtw_security.c | 102 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 …]
|
D | rtw_recv.c | 309 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_MCAST(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_MCAST(prxattrib->ra) == true) && (prxattrib->key_index != pmlmeinfo->key_index)) in recvframe_chkmic() 358 if (prxattrib->bdecrypted && brpt_micerror) in recvframe_chkmic() [all …]
|
D | rtw_mlme_ext.c | 704 struct rx_pkt_attrib *prxattrib = &(precv_frame->u.hdr.attrib); in OnAuth() local 706 prxattrib->hdrlen = WLAN_HDR_A3_LEN; in OnAuth() 707 prxattrib->encrypt = _WEP40_; in OnAuth() 709 iv = pframe+prxattrib->hdrlen; in OnAuth() 710 prxattrib->key_index = ((iv[3]>>6)&0x3); in OnAuth() 712 prxattrib->iv_len = 4; in OnAuth() 713 prxattrib->icv_len = 4; in OnAuth()
|