mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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:
parent
bcb82d5fae
commit
5109486849
1 changed files with 2 additions and 1 deletions
|
|
@ -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() ***/
|
||||
|
|
|
|||
Loading…
Reference in a new issue