rtl8188eu: Remove DBG_RX_DECRYPTOR - not defined

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-20 16:35:29 -05:00
parent 2d82a64cba
commit 74da315bc2

View file

@ -569,14 +569,8 @@ _func_enter_;
if ((prxattrib->encrypt>0) && ((prxattrib->bdecrypted==0) ||(psecuritypriv->sw_decrypt==true))) if ((prxattrib->encrypt>0) && ((prxattrib->bdecrypted==0) ||(psecuritypriv->sw_decrypt==true)))
{ {
psecuritypriv->hw_decrypted=false; psecuritypriv->hw_decrypted=false;
#ifdef DBG_RX_DECRYPTOR
DBG_88E("prxstat->bdecrypted:%d, prxattrib->encrypt:%d, Setting psecuritypriv->hw_decrypted = %d\n"
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
#endif
switch (prxattrib->encrypt){ switch (prxattrib->encrypt){
case _WEP40_: case _WEP40_:
case _WEP104_: case _WEP104_:
@ -592,40 +586,22 @@ _func_enter_;
break; break;
} }
} }
else if (prxattrib->bdecrypted==1 else if (prxattrib->bdecrypted == 1 && prxattrib->encrypt > 0 &&
&& prxattrib->encrypt >0 (psecuritypriv->busetkipkey==1 || prxattrib->encrypt !=_TKIP_))
&& (psecuritypriv->busetkipkey==1 || prxattrib->encrypt !=_TKIP_ )
)
{
psecuritypriv->hw_decrypted=true; psecuritypriv->hw_decrypted=true;
#ifdef DBG_RX_DECRYPTOR
DBG_88E("prxstat->bdecrypted:%d, prxattrib->encrypt:%d, Setting psecuritypriv->hw_decrypted = %d\n"
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
#endif
} if (res == _FAIL) {
else {
#ifdef DBG_RX_DECRYPTOR
DBG_88E("prxstat->bdecrypted:%d, prxattrib->encrypt:%d, psecuritypriv->hw_decrypted:%d\n"
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
#endif
}
if (res == _FAIL)
{
rtw_free_recvframe(return_packet,&padapter->recvpriv.free_recv_queue); rtw_free_recvframe(return_packet,&padapter->recvpriv.free_recv_queue);
return_packet = NULL; return_packet = NULL;
} }
_func_exit_; _func_exit_;
return return_packet; return return_packet;
} }
/* set the security information in the recv_frame */ /* set the security information in the recv_frame */
union recv_frame * portctrl(_adapter *adapter,union recv_frame * precv_frame); union recv_frame *portctrl(_adapter *adapter, union recv_frame *precv_frame)
union recv_frame * portctrl(_adapter *adapter,union recv_frame * precv_frame)
{ {
u8 *psta_addr, *ptr; u8 *psta_addr, *ptr;
uint auth_alg; uint auth_alg;