qcacld-3.0: Check he_caps before dereferencing
Before populating the nss information into the session, for a connection, check if HE is supported and then populate the configuration. Change-Id: I422e4c388bc71133fec15d053e713b9d10149b09 CRs-Fixed: 2099374
This commit is contained in:

committed by
Anjaneedevi Kapparapu

parent
bcb82d5fae
commit
5109486849
@@ -1781,7 +1781,7 @@ lim_populate_peer_rate_set(tpAniSirGlobal pMac,
|
|||||||
lim_populate_he_mcs_set(pMac, pRates, he_caps,
|
lim_populate_he_mcs_set(pMac, pRates, he_caps,
|
||||||
psessionEntry, psessionEntry->nss);
|
psessionEntry, psessionEntry->nss);
|
||||||
|
|
||||||
if (IS_DOT11_MODE_HE(psessionEntry->dot11mode)) {
|
if (IS_DOT11_MODE_HE(psessionEntry->dot11mode) && he_caps) {
|
||||||
psessionEntry->nss = he_caps->nss_supported;
|
psessionEntry->nss = he_caps->nss_supported;
|
||||||
} else if (IS_DOT11_MODE_VHT(psessionEntry->dot11mode)) {
|
} else if (IS_DOT11_MODE_VHT(psessionEntry->dot11mode)) {
|
||||||
if ((pRates->vhtRxMCSMap & MCSMAPMASK2x2) == MCSMAPMASK2x2)
|
if ((pRates->vhtRxMCSMap & MCSMAPMASK2x2) == MCSMAPMASK2x2)
|
||||||
@@ -1789,6 +1789,7 @@ lim_populate_peer_rate_set(tpAniSirGlobal pMac,
|
|||||||
} else if (pRates->supportedMCSSet[1] == 0) {
|
} else if (pRates->supportedMCSSet[1] == 0) {
|
||||||
psessionEntry->nss = NSS_1x1_MODE;
|
psessionEntry->nss = NSS_1x1_MODE;
|
||||||
}
|
}
|
||||||
|
pe_debug("nss: %d", psessionEntry->nss);
|
||||||
|
|
||||||
return eSIR_SUCCESS;
|
return eSIR_SUCCESS;
|
||||||
} /*** lim_populate_peer_rate_set() ***/
|
} /*** lim_populate_peer_rate_set() ***/
|
||||||
|
Reference in New Issue
Block a user