qcacld-3.0: Properly update specturum channel list

qcacld-2.0 to qcacld-3.0 propagation

Currently for ACS,one to one correspondence between channel
number and index of Sap specturum structure is desired.

But the correspondence is broken in case of channel in NOL list
or if the DFS channels are not allowed.

In case of channel in NOL list or if DFS channel not allowed,
channel number is incremented but index of structure doesn't change.

As a part of fix, made sure that one to one correspondence is
maintained.

Change-Id: I05cbe92e2657d96e271b402b9fdbe41a32c7080d
CRs-Fixed: 922865
This commit is contained in:
Edhar, Mahesh Kumar
2015-10-30 11:53:26 +05:30
committed by Prakash Dhavali
parent bf50064109
commit 3f212eb586

View File

@@ -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;
}