qcacld-3.0: Check HT20 rate set for mcs index if HT40 rate flag is set

qcacld-2.0 to qcacld-3.0 propagation

When HT40 rate flag is set, it's likely that packets are sent in
HT20 rate, therefore, the driver need check HT20 rate set to
calculate mcs index.

Change-Id: I29022ec26d72a5361f152dc20af13783d0dac984
CRs-Fixed: 1027530
This commit is contained in:
wadesong 2017-02-28 14:30:51 +08:00 • committed by qcabuildsw
commit bf66554532

View file

@ -265,7 +265,8 @@ static uint8_t wma_get_mcs_idx(uint16_t maxRate, uint8_t rate_flags,
goto rate_found;
}
}
if (rate_flags & eHAL_TX_RATE_HT20) {
if ((rate_flags & eHAL_TX_RATE_HT20) ||
(rate_flags & eHAL_TX_RATE_HT40)) {
/* check for ht20 nss1/2 rate set */
match_rate = wma_mcs_rate_match(maxRate, &is_sgi, nss,
mcs_nss1[index].ht20_rate[0],