qcacld-3.0: Correct AssocId range when stop BSS

In __lim_handle_sme_stop_bss_request, it will try to disassociate
STAs of which AssocId is from 1 to pMac->lim.gLimAssocStaLimit - 1.
However, valid range of AssocId should be from 1 to
pMac->lim.gLimAssocStaLimit. This will cause STA and peer leakage
when there is an STA using AssocID equal to pMac->lim.gLimAssocStaLimit.
Update the uppper limit to pMac->lim.gLimAssocStaLimit accordingly.

Change-Id: Ifec315c0ae69f8b93ce8b87601cca7cc13c6bc88
CRs-Fixed: 2230757
This commit is contained in:
Min Liu 2018-04-26 13:17:08 +08:00 • committed by nshrivas
commit fad99adc80

View file

@ -2956,7 +2956,7 @@ __lim_handle_sme_stop_bss_request(tpAniSirGlobal pMac, uint32_t *pMsgBuf)
*/
pMac->lim.gLimIbssCoalescingHappened = false;
}
for (i = 1; i < pMac->lim.gLimAssocStaLimit; i++) {
for (i = 1; i <= pMac->lim.gLimAssocStaLimit; i++) {
pStaDs =
dph_get_hash_entry(pMac, i, &psessionEntry->dph.dphHashTable);
if (NULL == pStaDs)