From bf665545321bee02e2d793aaa6deab630375a44f Mon Sep 17 00:00:00 2001 From: wadesong Date: Tue, 28 Feb 2017 14:30:51 +0800 Subject: [PATCH] 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 --- core/wma/src/wma_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/wma/src/wma_utils.c b/core/wma/src/wma_utils.c index c7fe7ab33a06..de7b85166b49 100644 --- a/core/wma/src/wma_utils.c +++ b/core/wma/src/wma_utils.c @@ -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],