Staging: rt28x0: MlmeCheckPsmChange() fix
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 23 Aug 2009 13:31:03 +0000 (15:31 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:22 +0000 (12:02 -0700)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/common/mlme.c

index 994821e18c542a0018e7b00e59d73ecf82e206b6..e374c50c752234a8b0ecbbc53bf039bbd49ad2b2 100644 (file)
@@ -2766,7 +2766,6 @@ VOID MlmeCheckPsmChange(
                (pAd->Mlme.CntlMachine.CurrState == CNTL_IDLE))
 #endif
        {
-#ifdef RT30xx
                // 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
                // Mode=CCK/MCS=3 => 11 Mbps, Mode=OFDM/MCS=3 => 18 Mbps
@@ -2774,7 +2773,6 @@ VOID MlmeCheckPsmChange(
                                (pAd->RalinkCounters.OneSecRxOkDataCnt < (ULONG)100)) ||
                        ((pAd->StaCfg.HTPhyMode.field.MCS > 3) &&
                        (pAd->RalinkCounters.OneSecRxOkDataCnt < (ULONG)400)))
-#endif
                {
                                // Get this time
                        NdisGetSystemUpTime(&pAd->Mlme.LastSendNULLpsmTime);