mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
7ed5ef5d16
commit
fad99adc80
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue