From: Bartlomiej Zolnierkiewicz Date: Sun, 16 Aug 2009 19:29:41 +0000 (+0200) Subject: Staging: rt2870: duplicated code is executed twice in AsicEvaluateRxAnt() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f0da335bdc9bb9410889b4196a9ce9d7173f8c9c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git Staging: rt2870: duplicated code is executed twice in AsicEvaluateRxAnt() Fix it. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rt2860/common/mlme.c b/drivers/staging/rt2860/common/mlme.c index bb6fccbdca4..e93462a705a 100644 --- a/drivers/staging/rt2860/common/mlme.c +++ b/drivers/staging/rt2860/common/mlme.c @@ -8433,26 +8433,6 @@ VOID AsicEvaluateRxAnt( #ifdef RT2860 pAd->StaCfg.BBPR3 = BBPR3; #endif -#ifdef RT2870 - if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_MEDIA_STATE_CONNECTED) - ) - { - ULONG TxTotalCnt = pAd->RalinkCounters.OneSecTxNoRetryOkCount + - pAd->RalinkCounters.OneSecTxRetryOkCount + - pAd->RalinkCounters.OneSecTxFailCount; - - if (TxTotalCnt > 50) - { - RTMPSetTimer(&pAd->Mlme.RxAntEvalTimer, 20); - pAd->Mlme.bLowThroughput = FALSE; - } - else - { - RTMPSetTimer(&pAd->Mlme.RxAntEvalTimer, 300); - pAd->Mlme.bLowThroughput = TRUE; - } - } -#endif #endif /* RT30xx */ #ifdef RT30xx if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_RESET_IN_PROGRESS |