mirror of
https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
synced 2025-04-29 23:29:38 +02:00
port some changes from another repo to this one to fix lags
This commit is contained in:
parent
727dcb11f3
commit
5b2a0f8609
@ -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
|
||||
|
@ -27,7 +27,7 @@
|
||||
// So, this driver tried to extend the dwell time for each scanning channel.
|
||||
// This will increase the chance to receive the probe response from SoftAP.
|
||||
|
||||
#define SURVEY_TO (100)
|
||||
#define SURVEY_TO (0)
|
||||
#define REAUTH_TO (300) //(50)
|
||||
#define REASSOC_TO (300) //(50)
|
||||
//#define DISCONNECT_TO (3000)
|
||||
|
@ -357,7 +357,12 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
||||
ret = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
/* compat makes it a u32 instead of char * */
|
||||
#ifdef CONFIG_COMPAT
|
||||
if (copy_from_user(command, (void *)&priv_cmd.buf, priv_cmd.total_len)) {
|
||||
#else
|
||||
if (copy_from_user(command, (void *)priv_cmd.buf, priv_cmd.total_len)) {
|
||||
#endif
|
||||
ret = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user