From 5ec0d6669260c676cae2f5410e626f1c3902ff35 Mon Sep 17 00:00:00 2001 From: Abhishek Ambure Date: Tue, 12 Nov 2019 17:31:26 +0530 Subject: [PATCH] qcacld-3.0: Populate OFDM data rates to firmware in 11ax mode In 11ax mode the extended rate IEs are not sent to firmware as part of peer assoc. So if 11ax AP Doesn't advertise the OFDM rates in 2.4ghz rates IE while include them in extended rate IE, the firmware doesn't have the OFDM rates. Thus once the AP switch channel to 5Ghz, as OFDM rates are not set the Firmware asserts. To fix this in 11ax send extended rate as well to firmware in peer assoc. Change-Id: I059a35828d214bc843ad8ebab720fd695bc7f511 CRs-Fixed: 2561566 --- core/mac/src/pe/lim/lim_assoc_utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c index 5f37b96c9df5..502a6bfe3f41 100644 --- a/core/mac/src/pe/lim/lim_assoc_utils.c +++ b/core/mac/src/pe/lim/lim_assoc_utils.c @@ -1625,7 +1625,8 @@ QDF_STATUS lim_populate_own_rate_set(struct mac_context *mac_ctx, (self_sta_dot11mode == MLME_DOT11_MODE_11AC) || (self_sta_dot11mode == MLME_DOT11_MODE_11N) || (self_sta_dot11mode == MLME_DOT11_MODE_11G) || - (self_sta_dot11mode == MLME_DOT11_MODE_11B)) { + (self_sta_dot11mode == MLME_DOT11_MODE_11B) || + (self_sta_dot11mode == MLME_DOT11_MODE_11AX)) { val_len = mac_ctx->mlme_cfg->rates.supported_11b.len; wlan_mlme_get_cfg_str((uint8_t *)&temp_rate_set.rate, &mac_ctx->mlme_cfg->rates.supported_11b, @@ -1774,7 +1775,8 @@ QDF_STATUS lim_populate_peer_rate_set(struct mac_context *mac, if ((pe_session->dot11mode == MLME_DOT11_MODE_11G) || (pe_session->dot11mode == MLME_DOT11_MODE_11A) || (pe_session->dot11mode == MLME_DOT11_MODE_11AC) || - (pe_session->dot11mode == MLME_DOT11_MODE_11N)) { + (pe_session->dot11mode == MLME_DOT11_MODE_11N) || + (pe_session->dot11mode == MLME_DOT11_MODE_11AX)) { if (pe_session->extRateSet.numRates <= WLAN_SUPPORTED_RATES_IE_MAX_LEN) { qdf_mem_copy((uint8_t *) tempRateSet2.rate,