1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-10-19 17:11:09 +02:00

port some changes from another repo to this one to fix lags

This commit is contained in:
Joe Acosta
2015-08-11 20:45:59 -07:00
parent 727dcb11f3
commit 5b2a0f8609
3 changed files with 8 additions and 3 deletions

View File

@@ -2003,7 +2003,7 @@ static void traffic_status_watchdog(_adapter *padapter)
#ifdef CONFIG_LPS
u8 bEnterPS;
#endif
u16 BusyThreshold = 100;
u16 BusyThreshold = 20;
u8 bBusyTraffic = _FALSE, bTxBusyTraffic = _FALSE, bRxBusyTraffic = _FALSE;
u8 bHigherBusyTraffic = _FALSE, bHigherBusyRxTraffic = _FALSE, bHigherBusyTxTraffic = _FALSE;
#ifdef CONFIG_FTP_PROTECT
@@ -2027,7 +2027,7 @@ static void traffic_status_watchdog(_adapter *padapter)
#else // !CONFIG_BT_COEXIST
// if we raise bBusyTraffic in last watchdog, using lower threshold.
if (pmlmepriv->LinkDetectInfo.bBusyTraffic)
BusyThreshold = 75;
BusyThreshold = 15;
if( pmlmepriv->LinkDetectInfo.NumRxOkInPeriod > BusyThreshold ||
pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > BusyThreshold )
#endif // !CONFIG_BT_COEXIST