From f32d8e8dcff1a0282ec02292a14d87fa2239a21d Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Mon, 10 Feb 2020 12:20:35 -0800 Subject: [PATCH] qcacld-3.0: Add check for eHDD_DOT11_MODE_AUTO before updating umac Currently, eHDD_DOT11_MODE_AUTO has not been checked, so if gDot11Mode ini is set to 0, this would fail to update umac with the correct HE capability. Add an if check for eHDD_DOT11_MODE_AUTO to check if it has been enabled. Change-Id: I5d26314f4bcfedcf1e913625ac946118ddb9a983 CRs-Fixed: 2619091 --- core/hdd/src/wlan_hdd_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index bc092fc623e2..c835e83e531a 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2253,7 +2253,8 @@ int hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg) hdd_update_tgt_vht_cap(hdd_ctx, &cfg->vht_cap); if (cfg->services.en_11ax && - (hdd_ctx->config->dot11Mode == eHDD_DOT11_MODE_11ax || + (hdd_ctx->config->dot11Mode == eHDD_DOT11_MODE_AUTO || + hdd_ctx->config->dot11Mode == eHDD_DOT11_MODE_11ax || hdd_ctx->config->dot11Mode == eHDD_DOT11_MODE_11ax_ONLY)) { hdd_debug("11AX: 11ax is enabled - update HDD config"); hdd_update_tgt_he_cap(hdd_ctx, cfg);