From: Bartlomiej Zolnierkiewicz Date: Sun, 23 Aug 2009 13:30:43 +0000 (+0200) Subject: Staging: rt28x0: AsicSwitchChannel() fix X-Git-Tag: v3.0~7999^2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=375d662f9fbbc177485f6f6ce030fc0eb622f3d3;p=platform%2Fkernel%2Flinux-amlogic.git Staging: rt28x0: AsicSwitchChannel() fix 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 b4c98f1..da026ea 100644 --- a/drivers/staging/rt2860/common/mlme.c +++ b/drivers/staging/rt2860/common/mlme.c @@ -5756,7 +5756,6 @@ VOID AsicSwitchChannel( RTMP_RF_REGS *RFRegTable; // Search Tx power value -#ifdef RT30xx // We can't use ChannelList to search channel, since some central channl's txpowr doesn't list // in ChannelList, so use TxPower array instead. // @@ -5769,17 +5768,6 @@ VOID AsicSwitchChannel( break; } } -#else - for (index = 0; index < pAd->ChannelListNum; index++) - { - if (Channel == pAd->ChannelList[index].Channel) - { - TxPwer = pAd->ChannelList[index].Power; - TxPwer2 = pAd->ChannelList[index].Power2; - break; - } - } -#endif if (index == MAX_NUM_OF_CHANNELS) DBGPRINT(RT_DEBUG_ERROR, ("AsicSwitchChannel: Can't find the Channel#%d \n", Channel));