|
@@ -196,45 +196,6 @@ extern void deinit_hal_dm(struct net_device *dev)
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-#ifdef USB_RX_AGGREGATION_SUPPORT
|
|
|
-void dm_CheckRxAggregation(struct net_device *dev) {
|
|
|
- struct r8192_priv *priv = rtllib_priv((struct net_device *)dev);
|
|
|
- PRT_HIGH_THROUGHPUT pHTInfo = priv->rtllib->pHTInfo;
|
|
|
- static unsigned long lastTxOkCnt = 0;
|
|
|
- static unsigned long lastRxOkCnt = 0;
|
|
|
- unsigned long curTxOkCnt = 0;
|
|
|
- unsigned long curRxOkCnt = 0;
|
|
|
-
|
|
|
- curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt;
|
|
|
- curRxOkCnt = priv->stats.rxbytesunicast - lastRxOkCnt;
|
|
|
-
|
|
|
- if ((curTxOkCnt + curRxOkCnt) < 15000000) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (curTxOkCnt > 4*curRxOkCnt) {
|
|
|
- if (priv->bCurrentRxAggrEnable) {
|
|
|
- write_nic_dword(dev, 0x1a8, 0);
|
|
|
- priv->bCurrentRxAggrEnable = false;
|
|
|
- }
|
|
|
- }else{
|
|
|
- if (!priv->bCurrentRxAggrEnable && !pHTInfo->bCurrentRT2RTAggregation) {
|
|
|
- u32 ulValue;
|
|
|
- ulValue = (pHTInfo->UsbRxFwAggrEn<<24) | (pHTInfo->UsbRxFwAggrPageNum<<16) |
|
|
|
- (pHTInfo->UsbRxFwAggrPacketNum<<8) | (pHTInfo->UsbRxFwAggrTimeout);
|
|
|
- write_nic_dword(dev, 0x1a8, ulValue);
|
|
|
- priv->bCurrentRxAggrEnable = true;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- lastTxOkCnt = priv->stats.txbytesunicast;
|
|
|
- lastRxOkCnt = priv->stats.rxbytesunicast;
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
extern void hal_dm_watchdog(struct net_device *dev)
|
|
|
{
|
|
|
struct r8192_priv *priv = rtllib_priv(dev);
|
|
@@ -259,10 +220,6 @@ extern void hal_dm_watchdog(struct net_device *dev)
|
|
|
|
|
|
dm_send_rssi_tofw(dev);
|
|
|
dm_ctstoself(dev);
|
|
|
-
|
|
|
-#ifdef USB_RX_AGGREGATION_SUPPORT
|
|
|
- dm_CheckRxAggregation(dev);
|
|
|
-#endif
|
|
|
}
|
|
|
|
|
|
void dm_check_ac_dc_power(struct net_device *dev)
|