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
Este cometimento está contido em:

cometido por
Anjaneedevi Kapparapu

ascendente
bcb82d5fae
cometimento
5109486849
@@ -1781,7 +1781,7 @@ lim_populate_peer_rate_set(tpAniSirGlobal pMac,
|
||||
lim_populate_he_mcs_set(pMac, pRates, he_caps,
|
||||
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;
|
||||
} else if (IS_DOT11_MODE_VHT(psessionEntry->dot11mode)) {
|
||||
if ((pRates->vhtRxMCSMap & MCSMAPMASK2x2) == MCSMAPMASK2x2)
|
||||
@@ -1789,6 +1789,7 @@ lim_populate_peer_rate_set(tpAniSirGlobal pMac,
|
||||
} else if (pRates->supportedMCSSet[1] == 0) {
|
||||
psessionEntry->nss = NSS_1x1_MODE;
|
||||
}
|
||||
pe_debug("nss: %d", psessionEntry->nss);
|
||||
|
||||
return eSIR_SUCCESS;
|
||||
} /*** lim_populate_peer_rate_set() ***/
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador