rtl8188eu: Remove CONFIG_USB_RX_AGGREGATION

This parameter is always defined.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-19 00:06:51 -05:00
parent eebbb9babd
commit fd62ad44a9
4 changed files with 11 additions and 32 deletions

View file

@ -121,13 +121,11 @@ static void rtl8188eu_interface_configure(_adapter *padapter)
pHalData->UsbTxAggMode = 1;
pHalData->UsbTxAggDescNum = 0x6; /* only 4 bits */
#ifdef CONFIG_USB_RX_AGGREGATION
pHalData->UsbRxAggMode = USB_RX_AGG_DMA;/* USB_RX_AGG_DMA; */
pHalData->UsbRxAggBlockCount = 8; /* unit : 512b */
pHalData->UsbRxAggBlockTimeout = 0x6;
pHalData->UsbRxAggPageCount = 48; /* uint :128 b 0x0A; 10 = MAX_RX_DMA_BUFFER_SIZE/2/pHalData->UsbBulkOutSize */
pHalData->UsbRxAggPageTimeout = 0x4; /* 6, absolute time = 34ms/(2^6) */
#endif
HalUsbSetQueuePipeMapping8188EUsb(padapter,
pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
@ -813,7 +811,6 @@ usb_AggSettingRxUpdate(
PADAPTER Adapter
)
{
#ifdef CONFIG_USB_RX_AGGREGATION
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
u8 valueDMA;
u8 valueUSB;
@ -889,7 +886,6 @@ usb_AggSettingRxUpdate(
default:
break;
}
#endif
} /* usb_AggSettingRxUpdate */
static void
@ -2861,7 +2857,6 @@ _func_enter_;
}
break;
case HW_VAR_RXDMA_AGG_PG_TH:
#ifdef CONFIG_USB_RX_AGGREGATION
{
u8 threshold = *((u8 *)val);
if ( threshold == 0)
@ -2870,7 +2865,6 @@ _func_enter_;
}
rtw_write8(Adapter, REG_RXDMA_AGG_PG_TH, threshold);
}
#endif
break;
case HW_VAR_SET_RPWM:
#ifdef CONFIG_LPS_LCLK

View file

@ -653,9 +653,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
recvframe_put(precvframe, skb_len);
#ifdef CONFIG_USB_RX_AGGREGATION
switch (pHalData->UsbRxAggMode)
{
switch (pHalData->UsbRxAggMode) {
case USB_RX_AGG_DMA:
case USB_RX_AGG_MIX:
pkt_offset = (u16)_RND128(pkt_offset);
@ -667,7 +665,6 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
default:
break;
}
#endif
if (pattrib->pkt_rpt_type == NORMAL_RX)/* Normal rx packet */
{

View file

@ -85,8 +85,6 @@
* Interface Related Config
*/
#define CONFIG_USB_RX_AGGREGATION
#define CONFIG_PREALLOC_RECV_SKB
/*
@ -123,7 +121,6 @@
#ifdef CONFIG_MP_INCLUDED
#define MP_DRIVER 1
#define CONFIG_MP_IWPRIV_SUPPORT
//#undef CONFIG_USB_RX_AGGREGATION
#else
#define MP_DRIVER 0
#endif

View file

@ -142,8 +142,6 @@ typedef struct _RT_8188E_FIRMWARE_HDR
#define DRIVER_EARLY_INT_TIME 0x05
#define BCN_DMA_ATIME_INT_TIME 0x02
#ifdef CONFIG_USB_RX_AGGREGATION
typedef enum _USB_RX_AGG_MODE{
USB_RX_AGG_DISABLE,
USB_RX_AGG_DMA,
@ -151,11 +149,6 @@ typedef enum _USB_RX_AGG_MODE{
USB_RX_AGG_MIX
}USB_RX_AGG_MODE;
//#define MAX_RX_DMA_BUFFER_SIZE 10240 // 10K for 8192C RX DMA buffer
#endif
#define MAX_RX_DMA_BUFFER_SIZE_88E 0x2400 //9k for 88E nornal chip , //MaxRxBuff=10k-max(TxReportSize(64*8), WOLPattern(16*24))
#define MAX_TX_REPORT_BUFFER_SIZE 0x0400 // 1k
@ -481,7 +474,6 @@ typedef struct hal_data_8188e
u8 C2hArray[16];
u8 UsbTxAggMode;
u8 UsbTxAggDescNum;
#ifdef CONFIG_USB_RX_AGGREGATION
u16 HwRxPageSize; // Hardware setting
u32 MaxUsbRxAggBlock;
@ -490,7 +482,6 @@ typedef struct hal_data_8188e
u8 UsbRxAggBlockTimeout;
u8 UsbRxAggPageCount; // 8192C DMA page count
u8 UsbRxAggPageTimeout;
#endif
#ifdef CONFIG_TX_EARLY_MODE
u8 bEarlyModeEnable;