mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 05:53:41 +00:00
rtl8188eu: Remove DBG_RX_SEQ - not selected
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
74da315bc2
commit
c4b448935f
4 changed files with 0 additions and 77 deletions
|
@ -1377,10 +1377,6 @@ static struct sta_info *rtw_joinbss_update_stainfo(_adapter *padapter, struct wl
|
||||||
preorder_ctrl = &psta->recvreorder_ctrl[i];
|
preorder_ctrl = &psta->recvreorder_ctrl[i];
|
||||||
preorder_ctrl->enable = false;
|
preorder_ctrl->enable = false;
|
||||||
preorder_ctrl->indicate_seq = 0xffff;
|
preorder_ctrl->indicate_seq = 0xffff;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq);
|
|
||||||
#endif
|
|
||||||
preorder_ctrl->wend_b= 0xffff;
|
preorder_ctrl->wend_b= 0xffff;
|
||||||
preorder_ctrl->wsize_b = 64;/* max_ampdu_sz; ex. 32(kbytes) -> wsize_b=32 */
|
preorder_ctrl->wsize_b = 64;/* max_ampdu_sz; ex. 32(kbytes) -> wsize_b=32 */
|
||||||
}
|
}
|
||||||
|
@ -1395,10 +1391,6 @@ static struct sta_info *rtw_joinbss_update_stainfo(_adapter *padapter, struct wl
|
||||||
preorder_ctrl = &bmc_sta->recvreorder_ctrl[i];
|
preorder_ctrl = &bmc_sta->recvreorder_ctrl[i];
|
||||||
preorder_ctrl->enable = false;
|
preorder_ctrl->enable = false;
|
||||||
preorder_ctrl->indicate_seq = 0xffff;
|
preorder_ctrl->indicate_seq = 0xffff;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq);
|
|
||||||
#endif
|
|
||||||
preorder_ctrl->wend_b= 0xffff;
|
preorder_ctrl->wend_b= 0xffff;
|
||||||
preorder_ctrl->wsize_b = 64;/* max_ampdu_sz; ex. 32(kbytes) -> wsize_b=32 */
|
preorder_ctrl->wsize_b = 64;/* max_ampdu_sz; ex. 32(kbytes) -> wsize_b=32 */
|
||||||
}
|
}
|
||||||
|
|
|
@ -2238,10 +2238,6 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
|
||||||
preorder_ctrl = &psta->recvreorder_ctrl[tid];
|
preorder_ctrl = &psta->recvreorder_ctrl[tid];
|
||||||
preorder_ctrl->enable = false;
|
preorder_ctrl->enable = false;
|
||||||
preorder_ctrl->indicate_seq = 0xffff;
|
preorder_ctrl->indicate_seq = 0xffff;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DBG_88E("%s(): DELBA: %x(%x)\n", __func__,pmlmeinfo->agg_enable_bitmap, reason_code);
|
DBG_88E("%s(): DELBA: %x(%x)\n", __func__,pmlmeinfo->agg_enable_bitmap, reason_code);
|
||||||
|
@ -7238,10 +7234,6 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
|
||||||
issue_action_BA(padapter, addr, RTW_WLAN_ACTION_DELBA, (((tid <<1) |initiator)&0x1F));
|
issue_action_BA(padapter, addr, RTW_WLAN_ACTION_DELBA, (((tid <<1) |initiator)&0x1F));
|
||||||
psta->recvreorder_ctrl[tid].enable = false;
|
psta->recvreorder_ctrl[tid].enable = false;
|
||||||
psta->recvreorder_ctrl[tid].indicate_seq = 0xffff;
|
psta->recvreorder_ctrl[tid].indicate_seq = 0xffff;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __func__, __LINE__,
|
|
||||||
psta->recvreorder_ctrl[tid].indicate_seq);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2197,17 +2197,7 @@ static int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_n
|
||||||
|
|
||||||
/* Rx Reorder initialize condition. */
|
/* Rx Reorder initialize condition. */
|
||||||
if (preorder_ctrl->indicate_seq == 0xFFFF)
|
if (preorder_ctrl->indicate_seq == 0xFFFF)
|
||||||
{
|
|
||||||
preorder_ctrl->indicate_seq = seq_num;
|
preorder_ctrl->indicate_seq = seq_num;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d init IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, seq_num);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* DbgPrint("check_indicate_seq, 1st->indicate_seq=%d\n", precvpriv->indicate_seq); */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* DbgPrint("enter->check_indicate_seq(): IndicateSeq: %d, NewSeq: %d\n", precvpriv->indicate_seq, seq_num); */
|
|
||||||
|
|
||||||
/* Drop out the packet which SeqNum is smaller than WinStart */
|
/* Drop out the packet which SeqNum is smaller than WinStart */
|
||||||
if ( SN_LESS(seq_num, preorder_ctrl->indicate_seq) )
|
if ( SN_LESS(seq_num, preorder_ctrl->indicate_seq) )
|
||||||
|
@ -2221,30 +2211,15 @@ static int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_n
|
||||||
if ( SN_EQUAL(seq_num, preorder_ctrl->indicate_seq) )
|
if ( SN_EQUAL(seq_num, preorder_ctrl->indicate_seq) )
|
||||||
{
|
{
|
||||||
preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1) & 0xFFF;
|
preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1) & 0xFFF;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d SN_EQUAL IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, seq_num);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else if (SN_LESS(wend, seq_num))
|
else if (SN_LESS(wend, seq_num))
|
||||||
{
|
{
|
||||||
/* RT_TRACE(COMP_RX_REORDER, DBG_LOUD, ("CheckRxTsIndicateSeq(): Window Shift! IndicateSeq: %d, NewSeq: %d\n", pTS->RxIndicateSeq, NewSeqNum)); */
|
|
||||||
/* DbgPrint("CheckRxTsIndicateSeq(): Window Shift! IndicateSeq: %d, NewSeq: %d\n", precvpriv->indicate_seq, seq_num); */
|
|
||||||
|
|
||||||
/* boundary situation, when seq_num cross 0xFFF */
|
|
||||||
if (seq_num >= (wsize - 1))
|
if (seq_num >= (wsize - 1))
|
||||||
preorder_ctrl->indicate_seq = seq_num + 1 -wsize;
|
preorder_ctrl->indicate_seq = seq_num + 1 -wsize;
|
||||||
else
|
else
|
||||||
preorder_ctrl->indicate_seq = 0xFFF - (wsize - (seq_num + 1)) + 1;
|
preorder_ctrl->indicate_seq = 0xFFF - (wsize - (seq_num + 1)) + 1;
|
||||||
|
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d SN_LESS(wend, seq_num) IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, seq_num);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DbgPrint("exit->check_indicate_seq(): IndicateSeq: %d, NewSeq: %d\n", precvpriv->indicate_seq, seq_num); */
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2298,10 +2273,6 @@ static int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ct
|
||||||
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||||
pattrib = &prframe->u.hdr.attrib;
|
pattrib = &prframe->u.hdr.attrib;
|
||||||
preorder_ctrl->indicate_seq = pattrib->seq_num;
|
preorder_ctrl->indicate_seq = pattrib->seq_num;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, pattrib->seq_num);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prepare indication list and indication. */
|
/* Prepare indication list and indication. */
|
||||||
|
@ -2319,14 +2290,7 @@ static int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ct
|
||||||
rtw_list_delete(&(prframe->u.hdr.list));
|
rtw_list_delete(&(prframe->u.hdr.list));
|
||||||
|
|
||||||
if (SN_EQUAL(preorder_ctrl->indicate_seq, pattrib->seq_num))
|
if (SN_EQUAL(preorder_ctrl->indicate_seq, pattrib->seq_num))
|
||||||
{
|
|
||||||
preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1) & 0xFFF;
|
preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1) & 0xFFF;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, pattrib->seq_num);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Set this as a lock to make sure that only one thread is indicating packet. */
|
/* Set this as a lock to make sure that only one thread is indicating packet. */
|
||||||
|
|
||||||
|
@ -2400,19 +2364,9 @@ static int recv_indicatepkt_reorder(_adapter *padapter, union recv_frame *prfram
|
||||||
{
|
{
|
||||||
/* indicate this recv_frame */
|
/* indicate this recv_frame */
|
||||||
preorder_ctrl->indicate_seq = pattrib->seq_num;
|
preorder_ctrl->indicate_seq = pattrib->seq_num;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, pattrib->seq_num);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
rtw_recv_indicatepkt(padapter, prframe);
|
rtw_recv_indicatepkt(padapter, prframe);
|
||||||
|
|
||||||
preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1)%4096;
|
preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1)%4096;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, pattrib->seq_num);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return _SUCCESS;
|
return _SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2421,19 +2375,9 @@ static int recv_indicatepkt_reorder(_adapter *padapter, union recv_frame *prfram
|
||||||
if (preorder_ctrl->enable == false)
|
if (preorder_ctrl->enable == false)
|
||||||
{
|
{
|
||||||
preorder_ctrl->indicate_seq = pattrib->seq_num;
|
preorder_ctrl->indicate_seq = pattrib->seq_num;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, pattrib->seq_num);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
retval = amsdu_to_msdu(padapter, prframe);
|
retval = amsdu_to_msdu(padapter, prframe);
|
||||||
|
|
||||||
preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1)%4096;
|
preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1)%4096;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d IndicateSeq: %d, NewSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq, pattrib->seq_num);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -365,12 +365,7 @@ _func_enter_;
|
||||||
preorder_ctrl->enable = false;
|
preorder_ctrl->enable = false;
|
||||||
|
|
||||||
preorder_ctrl->indicate_seq = 0xffff;
|
preorder_ctrl->indicate_seq = 0xffff;
|
||||||
#ifdef DBG_RX_SEQ
|
|
||||||
DBG_88E("DBG_RX_SEQ %s:%d IndicateSeq: %d\n", __func__, __LINE__,
|
|
||||||
preorder_ctrl->indicate_seq);
|
|
||||||
#endif
|
|
||||||
preorder_ctrl->wend_b= 0xffff;
|
preorder_ctrl->wend_b= 0xffff;
|
||||||
/* preorder_ctrl->wsize_b = (NR_RECVBUFF-2); */
|
|
||||||
preorder_ctrl->wsize_b = 64;/* 64; */
|
preorder_ctrl->wsize_b = 64;/* 64; */
|
||||||
|
|
||||||
_rtw_init_queue(&preorder_ctrl->pending_recvframe_queue);
|
_rtw_init_queue(&preorder_ctrl->pending_recvframe_queue);
|
||||||
|
|
Loading…
Reference in a new issue