diff options
| author | kjli <kjli@codeaurora.org> | 2016-08-09 15:59:06 +0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-12-29 13:23:35 -0800 |
| commit | f491da118f73f771818521edd6e61c79ad616953 (patch) | |
| tree | cf0c37fd21f2e444b00d301bafabfa76bc66457a | |
| parent | f41aae036b2f961accb044d666e7ec542d2ca118 (diff) | |
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
| -rw-r--r-- | core/wma/src/wma_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/wma/src/wma_utils.c b/core/wma/src/wma_utils.c index 0b29e56e45e4..8c97b55eea4a 100644 --- a/core/wma/src/wma_utils.c +++ b/core/wma/src/wma_utils.c @@ -266,7 +266,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], |
