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
This commit is contained in:
Alan Chen 2020-02-10 12:20:35 -08:00 committed by nshrivas
parent dff8b7357c
commit f32d8e8dcf

View File

@ -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);