From 235c2090eee435fbc8e6ba27a803780daf783479 Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Sun, 16 Aug 2009 21:31:17 +0200 Subject: [PATCH] --- yaml --- r: 162431 b: refs/heads/master c: e932e724ba3a20876cda90732b376b64ca2cd4e8 h: refs/heads/master i: 162429: b65b474f26e527b413ff85a1e8cfc7b71ab4ef54 162427: 5e4527a416cff72f00da14f8dbe4ee8fe761a053 162423: 9c38b98a76a044198e7989291b3b82b61f0dfe14 162415: 4d298df7e76817455014b7d4325247dc577ef452 162399: b46f5a9a702b53aec95afc272c2dca5c055c2cc2 162367: 987cbd55cec07572cfdb7c944a6a17f5aa73521e 162303: dca10f0a446429aeaa5184ceff4af7a37c207b6e v: v3 --- [refs] | 2 +- trunk/drivers/staging/rt2860/common/mlme.c | 63 ++++++---------------- 2 files changed, 16 insertions(+), 49 deletions(-) diff --git a/[refs] b/[refs] index f6dd0a8f9e49..f1979f09539d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 003cb3c42a6ac4da982621efc2ac04a44d966527 +refs/heads/master: e932e724ba3a20876cda90732b376b64ca2cd4e8 diff --git a/trunk/drivers/staging/rt2860/common/mlme.c b/trunk/drivers/staging/rt2860/common/mlme.c index b7bf17d756cf..0a6da1a9b46a 100644 --- a/trunk/drivers/staging/rt2860/common/mlme.c +++ b/trunk/drivers/staging/rt2860/common/mlme.c @@ -8252,56 +8252,19 @@ VOID AsicEvaluateRxAnt( { UCHAR BBPR3 = 0; -#ifndef RT30xx - { - if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_RESET_IN_PROGRESS | - fRTMP_ADAPTER_HALT_IN_PROGRESS | - fRTMP_ADAPTER_RADIO_OFF | - fRTMP_ADAPTER_NIC_NOT_EXIST | - fRTMP_ADAPTER_BSS_SCAN_IN_PROGRESS)) - return; - - if (pAd->StaCfg.Psm == PWR_SAVE) + if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_RESET_IN_PROGRESS | + fRTMP_ADAPTER_HALT_IN_PROGRESS | + fRTMP_ADAPTER_RADIO_OFF | + fRTMP_ADAPTER_NIC_NOT_EXIST | + fRTMP_ADAPTER_BSS_SCAN_IN_PROGRESS) +#ifdef RT30xx + || OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_DOZE) + || (pAd->EepromAccess) +#endif + ) return; - } - RTMP_BBP_IO_READ8_BY_REG_ID(pAd, BBP_R3, &BBPR3); - BBPR3 &= (~0x18); - if(pAd->Antenna.field.RxPath == 3) - { - BBPR3 |= (0x10); - } - else if(pAd->Antenna.field.RxPath == 2) - { - BBPR3 |= (0x8); - } - else if(pAd->Antenna.field.RxPath == 1) - { - BBPR3 |= (0x0); - } - RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R3, BBPR3); - -#ifdef RT2860 - pAd->StaCfg.BBPR3 = BBPR3; -#endif -#endif /* RT30xx */ #ifdef RT30xx - if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_RESET_IN_PROGRESS | - fRTMP_ADAPTER_HALT_IN_PROGRESS | - fRTMP_ADAPTER_RADIO_OFF | - fRTMP_ADAPTER_NIC_NOT_EXIST | - fRTMP_ADAPTER_BSS_SCAN_IN_PROGRESS) || - OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_DOZE) - || (pAd->EepromAccess) - ) - return; - - - { - //if (pAd->StaCfg.Psm == PWR_SAVE) - // return; - } - // two antenna selection mechanism- one is antenna diversity, the other is failed antenna remove // one is antenna diversity:there is only one antenna can rx and tx // the other is failed antenna remove:two physical antenna can rx and tx @@ -8324,6 +8287,7 @@ VOID AsicEvaluateRxAnt( RTMPSetTimer(&pAd->Mlme.RxAntEvalTimer, 300); } else +#endif { if (pAd->StaCfg.Psm == PWR_SAVE) return; @@ -8343,8 +8307,11 @@ VOID AsicEvaluateRxAnt( BBPR3 |= (0x0); } RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R3, BBPR3); + +#ifdef RT2860 + pAd->StaCfg.BBPR3 = BBPR3; +#endif } -#endif /* RT30xx */ if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_MEDIA_STATE_CONNECTED) )