qcacld-2.0: Fix index error of array element

Fix the index error of chanBondingSet element. If not, the channel list
[116,120,124,128] will be ingored to consider adding into the available
channels, when channel bonding is set as 40/80Mhz during sapRandomChannelSel
stage.

Change-Id: Ia90ece227c32fd9aad4a3cb69372e9cb8cf981a8
CRs-Fixed: 1037612
This commit is contained in:
lifeng 2016-06-30 14:45:47 +08:00 committed by L R
parent b7dc213014
commit 35eb13b569
1 changed files with 2 additions and 2 deletions

View File

@ -1627,8 +1627,8 @@ static v_U8_t sapRandomChannelSel(ptSapContext sapContext)
channelBitmap.chanBondingSet[1].startChannel = 52;
channelBitmap.chanBondingSet[2].startChannel = 100;
channelBitmap.chanBondingSet[3].startChannel = 116;
channelBitmap.chanBondingSet[3].startChannel = 132;
channelBitmap.chanBondingSet[4].startChannel = 149;
channelBitmap.chanBondingSet[4].startChannel = 132;
channelBitmap.chanBondingSet[5].startChannel = 149;
/* now loop through whatever is left of channel list */
VOS_TRACE(VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_ERROR,
FL("sapdfs: Moving temp channel list to final."));