mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove CONFIG_USB_TX_AGGREGATION, IDEA_CONDITION, and CONFIG_MINIMAL_MEMORY_USAGE
CONFIG_USB_TX_AGGREGATION is always defined. IDEA_CONDITION is always defined. CONFIG_MINIMAL_MEMORY_USAGE is never defined. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
2462f06b0e
commit
eebbb9babd
8 changed files with 3 additions and 224 deletions
|
@ -181,16 +181,8 @@ _func_enter_;
|
|||
if (((struct xmit_frame*)pxmitframe)->buf_addr==NULL)
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||
hw_hdr_offset = TXDESC_SIZE +
|
||||
(((struct xmit_frame*)pxmitframe)->pkt_offset * PACKET_OFFSET_SZ);
|
||||
#else
|
||||
#ifdef CONFIG_TX_EARLY_MODE
|
||||
hw_hdr_offset = TXDESC_OFFSET+EARLY_MODE_INFO_SIZE;
|
||||
#else
|
||||
hw_hdr_offset = TXDESC_OFFSET;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
pframe = ((struct xmit_frame*)pxmitframe)->buf_addr + hw_hdr_offset;
|
||||
|
||||
|
@ -666,17 +658,8 @@ _func_enter_;
|
|||
if (((struct xmit_frame*)pxmitframe)->buf_addr==NULL)
|
||||
return _FAIL;
|
||||
|
||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||
hw_hdr_offset = TXDESC_SIZE +
|
||||
(((struct xmit_frame*)pxmitframe)->pkt_offset * PACKET_OFFSET_SZ);
|
||||
#else
|
||||
#ifdef CONFIG_TX_EARLY_MODE
|
||||
hw_hdr_offset = TXDESC_OFFSET+EARLY_MODE_INFO_SIZE;
|
||||
#else
|
||||
hw_hdr_offset = TXDESC_OFFSET;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
pframe = ((struct xmit_frame*)pxmitframe)->buf_addr + hw_hdr_offset;
|
||||
/* 4 start to encrypt each fragment */
|
||||
if (pattrib->encrypt==_TKIP_){
|
||||
|
@ -1516,16 +1499,8 @@ _func_enter_;
|
|||
if (((struct xmit_frame*)pxmitframe)->buf_addr==NULL)
|
||||
return _FAIL;
|
||||
|
||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||
hw_hdr_offset = TXDESC_SIZE +
|
||||
(((struct xmit_frame*)pxmitframe)->pkt_offset * PACKET_OFFSET_SZ);
|
||||
#else
|
||||
#ifdef CONFIG_TX_EARLY_MODE
|
||||
hw_hdr_offset = TXDESC_OFFSET+EARLY_MODE_INFO_SIZE;
|
||||
#else
|
||||
hw_hdr_offset = TXDESC_OFFSET;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
pframe = ((struct xmit_frame*)pxmitframe)->buf_addr + hw_hdr_offset;
|
||||
|
||||
|
|
|
@ -825,15 +825,7 @@ static s32 xmitframe_addmic(_adapter *padapter, struct xmit_frame *pxmitframe){
|
|||
|
||||
_func_enter_;
|
||||
|
||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||
hw_hdr_offset = TXDESC_SIZE + (pxmitframe->pkt_offset * PACKET_OFFSET_SZ);;
|
||||
#else
|
||||
#ifdef CONFIG_TX_EARLY_MODE
|
||||
hw_hdr_offset = TXDESC_OFFSET+ EARLY_MODE_INFO_SIZE;
|
||||
#else
|
||||
hw_hdr_offset = TXDESC_OFFSET;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (pattrib->encrypt ==_TKIP_)/* if (psecuritypriv->dot11PrivacyAlgrthm==_TKIP_PRIVACY_) */
|
||||
{
|
||||
|
@ -1232,15 +1224,7 @@ _func_enter_;
|
|||
|
||||
pbuf_start = pxmitframe->buf_addr;
|
||||
|
||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||
hw_hdr_offset = TXDESC_SIZE + (pxmitframe->pkt_offset * PACKET_OFFSET_SZ);
|
||||
#else
|
||||
#ifdef CONFIG_TX_EARLY_MODE /* for SDIO && Tx Agg */
|
||||
hw_hdr_offset = TXDESC_OFFSET + EARLY_MODE_INFO_SIZE;
|
||||
#else
|
||||
hw_hdr_offset = TXDESC_OFFSET;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
mem_start = pbuf_start + hw_hdr_offset;
|
||||
|
||||
|
@ -1476,21 +1460,12 @@ void rtw_count_tx_stats(PADAPTER padapter, struct xmit_frame *pxmitframe, int sz
|
|||
if ((pxmitframe->frame_tag&0x0f) == DATA_FRAMETAG)
|
||||
{
|
||||
pxmitpriv->tx_bytes += sz;
|
||||
#if defined(CONFIG_USB_TX_AGGREGATION)
|
||||
pmlmepriv->LinkDetectInfo.NumTxOkInPeriod += pxmitframe->agg_num;
|
||||
#else
|
||||
pmlmepriv->LinkDetectInfo.NumTxOkInPeriod++;
|
||||
#endif
|
||||
|
||||
psta = pxmitframe->attrib.psta;
|
||||
if (psta)
|
||||
{
|
||||
if (psta) {
|
||||
pstats = &psta->sta_stats;
|
||||
#if defined(CONFIG_USB_TX_AGGREGATION)
|
||||
pstats->tx_pkts += pxmitframe->agg_num;
|
||||
#else
|
||||
pstats->tx_pkts++;
|
||||
#endif
|
||||
pstats->tx_bytes += sz;
|
||||
}
|
||||
}
|
||||
|
@ -1733,10 +1708,7 @@ _func_enter_;
|
|||
pxframe->pkt = NULL;
|
||||
pxframe->pkt_offset = 1;/* default use pkt_offset to fill tx desc */
|
||||
|
||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||
pxframe->agg_num = 1;
|
||||
#endif
|
||||
|
||||
pxframe->ack_report = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue