mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 14:03:05 +00:00
rtl8188eu: Remove dead code inside #if 0
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
2d60bad9ad
commit
b6b121512b
56 changed files with 121 additions and 6115 deletions
118
core/rtw_recv.c
118
core/rtw_recv.c
|
@ -664,30 +664,12 @@ _func_enter_;
|
|||
&& (psecuritypriv->busetkipkey==1 || prxattrib->encrypt !=_TKIP_ )
|
||||
)
|
||||
{
|
||||
#if 0
|
||||
if((prxstat->icv==1)&&(prxattrib->encrypt!=_AES_))
|
||||
{
|
||||
psecuritypriv->hw_decrypted=_FALSE;
|
||||
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("psecuritypriv->hw_decrypted=_FALSE"));
|
||||
|
||||
rtw_free_recvframe(precv_frame, &padapter->recvpriv.free_recv_queue);
|
||||
|
||||
return_packet=NULL;
|
||||
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
psecuritypriv->hw_decrypted=_TRUE;
|
||||
#ifdef DBG_RX_DECRYPTOR
|
||||
DBG_871X("prxstat->bdecrypted:%d, prxattrib->encrypt:%d, Setting psecuritypriv->hw_decrypted = %d\n"
|
||||
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
psecuritypriv->hw_decrypted=_TRUE;
|
||||
#ifdef DBG_RX_DECRYPTOR
|
||||
DBG_871X("prxstat->bdecrypted:%d, prxattrib->encrypt:%d, Setting psecuritypriv->hw_decrypted = %d\n"
|
||||
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
|
||||
#endif
|
||||
} else {
|
||||
#ifdef DBG_RX_DECRYPTOR
|
||||
DBG_871X("prxstat->bdecrypted:%d, prxattrib->encrypt:%d, psecuritypriv->hw_decrypted:%d\n"
|
||||
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
|
||||
|
@ -1630,22 +1612,12 @@ sint validate_recv_ctrl_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
|
||||
//DBG_871X("handling ps-poll, q_len=%d, tim=%x\n", psta->sleepq_len, pstapriv->tim_bitmap);
|
||||
|
||||
#if 0
|
||||
_exit_critical_bh(&psta->sleep_q.lock, &irqL);
|
||||
if(rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
|
||||
{
|
||||
rtw_os_xmit_complete(padapter, pxmitframe);
|
||||
}
|
||||
_enter_critical_bh(&psta->sleep_q.lock, &irqL);
|
||||
#endif
|
||||
rtw_hal_xmitframe_enqueue(padapter, pxmitframe);
|
||||
|
||||
if(psta->sleepq_len==0)
|
||||
{
|
||||
pstapriv->tim_bitmap &= ~BIT(psta->aid);
|
||||
|
||||
//DBG_871X("after handling ps-poll, tim=%x\n", pstapriv->tim_bitmap);
|
||||
|
||||
//upate BCN for TIM IE
|
||||
//update_BCNTIM(padapter);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
|
||||
|
@ -1703,21 +1675,6 @@ sint validate_recv_mgnt_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("+validate_recv_mgnt_frame\n"));
|
||||
|
||||
#if 0
|
||||
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
{
|
||||
#ifdef CONFIG_NATIVEAP_MLME
|
||||
mgt_dispatcher(padapter, precv_frame);
|
||||
#else
|
||||
rtw_hostapd_mlme_rx(padapter, precv_frame);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
mgt_dispatcher(padapter, precv_frame);
|
||||
}
|
||||
#endif
|
||||
|
||||
precv_frame = recvframe_chk_defrag(padapter, precv_frame);
|
||||
if (precv_frame == NULL) {
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_,("%s: fragment packet\n",__FUNCTION__));
|
||||
|
@ -1933,14 +1890,6 @@ _func_enter_;
|
|||
goto exit;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if(psta->tdls_sta_state & TDLS_LINKED_STATE )
|
||||
{
|
||||
if(psta->dot118021XPrivacy==_AES_)
|
||||
pattrib->encrypt=psta->dot118021XPrivacy;
|
||||
}
|
||||
#endif //CONFIG_TDLS
|
||||
|
||||
if(pattrib->privacy){
|
||||
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("validate_recv_data_frame:pattrib->privacy=%x\n", pattrib->privacy));
|
||||
|
@ -3071,12 +3020,6 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
phead = get_list_head(ppending_recvframe_queue);
|
||||
plist = get_next(phead);
|
||||
|
||||
#if 0
|
||||
// Check if there is any other indication thread running.
|
||||
if(pTS->RxIndicateState == RXTS_INDICATE_PROCESSING)
|
||||
return;
|
||||
#endif
|
||||
|
||||
// Handling some condition for forced indicate case.
|
||||
if(bforced==_TRUE)
|
||||
{
|
||||
|
@ -3109,17 +3052,6 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_,
|
||||
("recv_indicatepkts_in_order: indicate=%d seq=%d amsdu=%d\n",
|
||||
preorder_ctrl->indicate_seq, pattrib->seq_num, pattrib->amsdu));
|
||||
|
||||
#if 0
|
||||
// This protect buffer from overflow.
|
||||
if(index >= REORDER_WIN_SIZE)
|
||||
{
|
||||
RT_ASSERT(FALSE, ("IndicateRxReorderList(): Buffer overflow!! \n"));
|
||||
bPktInBuf = TRUE;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
plist = get_next(plist);
|
||||
rtw_list_delete(&(prframe->u.hdr.list));
|
||||
|
||||
|
@ -3132,20 +3064,6 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
index++;
|
||||
if(index==1)
|
||||
{
|
||||
//Cancel previous pending timer.
|
||||
//PlatformCancelTimer(Adapter, &pTS->RxPktPendingTimer);
|
||||
if(bforced!=_TRUE)
|
||||
{
|
||||
//DBG_871X("_cancel_timer(&preorder_ctrl->reordering_ctrl_timer, &bcancelled);\n");
|
||||
_cancel_timer(&preorder_ctrl->reordering_ctrl_timer, &bcancelled);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//Set this as a lock to make sure that only one thread is indicating packet.
|
||||
//pTS->RxIndicateState = RXTS_INDICATE_PROCESSING;
|
||||
|
||||
|
@ -3332,15 +3250,7 @@ int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe
|
|||
#ifdef DBG_RX_DROP_FRAME
|
||||
DBG_871X("DBG_RX_DROP_FRAME %s check_indicate_seq fail\n", __FUNCTION__);
|
||||
#endif
|
||||
#if 0
|
||||
rtw_recv_indicatepkt(padapter, prframe);
|
||||
|
||||
_exit_critical_bh(&ppending_recvframe_queue->lock, &irql);
|
||||
|
||||
goto _success_exit;
|
||||
#else
|
||||
goto _err_exit;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -3543,22 +3453,6 @@ int recv_func_posthandle(struct adapter *padapter, union recv_frame *prframe)
|
|||
goto _recv_data_drop;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if ( padapter->adapter_type == PRIMARY_ADAPTER )
|
||||
{
|
||||
DBG_871X("+++\n");
|
||||
{
|
||||
int i;
|
||||
u8 *ptr = get_recvframe_data(prframe);
|
||||
for(i=0; i<140;i=i+8)
|
||||
DBG_871X("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X:", *(ptr+i),
|
||||
*(ptr+i+1), *(ptr+i+2) ,*(ptr+i+3) ,*(ptr+i+4),*(ptr+i+5), *(ptr+i+6), *(ptr+i+7));
|
||||
|
||||
}
|
||||
DBG_871X("---\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_TDLS
|
||||
//check TDLS frame
|
||||
psnap_type = get_recvframe_data(orig_prframe);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue