Commit 375d662f authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Greg Kroah-Hartman

Staging: rt28x0: AsicSwitchChannel() fix

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9a93e4e1
...@@ -5756,7 +5756,6 @@ VOID AsicSwitchChannel( ...@@ -5756,7 +5756,6 @@ VOID AsicSwitchChannel(
RTMP_RF_REGS *RFRegTable; RTMP_RF_REGS *RFRegTable;
// Search Tx power value // Search Tx power value
#ifdef RT30xx
// We can't use ChannelList to search channel, since some central channl's txpowr doesn't list // We can't use ChannelList to search channel, since some central channl's txpowr doesn't list
// in ChannelList, so use TxPower array instead. // in ChannelList, so use TxPower array instead.
// //
...@@ -5769,17 +5768,6 @@ VOID AsicSwitchChannel( ...@@ -5769,17 +5768,6 @@ VOID AsicSwitchChannel(
break; 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) if (index == MAX_NUM_OF_CHANNELS)
DBGPRINT(RT_DEBUG_ERROR, ("AsicSwitchChannel: Can't find the Channel#%d \n", Channel)); DBGPRINT(RT_DEBUG_ERROR, ("AsicSwitchChannel: Can't find the Channel#%d \n", Channel));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment