|
@@ -659,7 +659,7 @@ bool sap_chan_sel_init(tHalHandle halHandle,
|
|
|
/* Fill the channel number in the spectrum in the operating freq band */
|
|
|
for (channelnum = 0;
|
|
|
channelnum < pSpectInfoParams->numSpectChans;
|
|
|
- channelnum++, pChans++) {
|
|
|
+ channelnum++, pChans++, pSpectCh++) {
|
|
|
chSafe = true;
|
|
|
|
|
|
/* check if the channel is in NOL blacklist */
|
|
@@ -700,7 +700,6 @@ bool sap_chan_sel_init(tHalHandle halHandle,
|
|
|
/* OFDM rates are not supported on channel 14 */
|
|
|
if (*pChans == 14 &&
|
|
|
eCSR_DOT11_MODE_11b != pSapCtx->csr_roamProfile.phyMode) {
|
|
|
- pSpectCh++;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -710,7 +709,6 @@ bool sap_chan_sel_init(tHalHandle halHandle,
|
|
|
pSpectCh->rssiAgr = SOFTAP_MIN_RSSI; /* Initialise for all channels */
|
|
|
pSpectCh->channelWidth = SOFTAP_HT20_CHANNELWIDTH; /* Initialise 20MHz for all the Channels */
|
|
|
}
|
|
|
- pSpectCh++;
|
|
|
}
|
|
|
return eSAP_TRUE;
|
|
|
}
|