mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-12 07:34:08 +08:00
Staging: rt28x0: MlmeCheckPsmChange() fix
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
598dc0e39b
commit
7e514725c8
@ -2766,7 +2766,6 @@ VOID MlmeCheckPsmChange(
|
|||||||
(pAd->Mlme.CntlMachine.CurrState == CNTL_IDLE))
|
(pAd->Mlme.CntlMachine.CurrState == CNTL_IDLE))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef RT30xx
|
|
||||||
// add by johnli, use Rx OK data count per second to calculate throughput
|
// add by johnli, use Rx OK data count per second to calculate throughput
|
||||||
// If Ttraffic is too high ( > 400 Rx per second), don't go to sleep mode. If tx rate is low, use low criteria
|
// If Ttraffic is too high ( > 400 Rx per second), don't go to sleep mode. If tx rate is low, use low criteria
|
||||||
// Mode=CCK/MCS=3 => 11 Mbps, Mode=OFDM/MCS=3 => 18 Mbps
|
// Mode=CCK/MCS=3 => 11 Mbps, Mode=OFDM/MCS=3 => 18 Mbps
|
||||||
@ -2774,7 +2773,6 @@ VOID MlmeCheckPsmChange(
|
|||||||
(pAd->RalinkCounters.OneSecRxOkDataCnt < (ULONG)100)) ||
|
(pAd->RalinkCounters.OneSecRxOkDataCnt < (ULONG)100)) ||
|
||||||
((pAd->StaCfg.HTPhyMode.field.MCS > 3) &&
|
((pAd->StaCfg.HTPhyMode.field.MCS > 3) &&
|
||||||
(pAd->RalinkCounters.OneSecRxOkDataCnt < (ULONG)400)))
|
(pAd->RalinkCounters.OneSecRxOkDataCnt < (ULONG)400)))
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
// Get this time
|
// Get this time
|
||||||
NdisGetSystemUpTime(&pAd->Mlme.LastSendNULLpsmTime);
|
NdisGetSystemUpTime(&pAd->Mlme.LastSendNULLpsmTime);
|
||||||
|
Loading…
Reference in New Issue
Block a user