From e25d3fce798a89a38e7f44f73b472fba0b5b59e0 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Fri, 21 Jul 2017 15:37:04 -0700 Subject: [PATCH] qcacld-3.0: Disable 160MHz SGI if SGI 40MHz INI cfg is disabled Disable SGI in 160MHz mode if short GI for 40MHz is disabled in the INI connfiguration Change-Id: I6a0c7c7734d4c926dc29103207afb45a3eb1da94 CRs-Fixed: 2073269 --- core/hdd/src/wlan_hdd_cfg.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 0a29fc058c43..ff87115ade64 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -6627,12 +6627,20 @@ static bool hdd_update_vht_cap_in_cfg(hdd_context_t *hdd_ctx) if ((config->dot11Mode == eHDD_DOT11_MODE_AUTO) || (config->dot11Mode == eHDD_DOT11_MODE_11ac_ONLY) || (config->dot11Mode == eHDD_DOT11_MODE_11ac)) { - /* Currently shortGI40Mhz is used for shortGI80Mhz */ + /* Currently shortGI40Mhz is used for shortGI80Mhz and 160MHz*/ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_VHT_SHORT_GI_80MHZ, config->ShortGI40MhzEnable) == QDF_STATUS_E_FAILURE) { status = false; hdd_err("Couldn't pass WNI_VHT_SHORT_GI_80MHZ to CFG"); } + + if (sme_cfg_set_int(hdd_ctx->hHal, + WNI_CFG_VHT_SHORT_GI_160_AND_80_PLUS_80MHZ, + config->ShortGI40MhzEnable) == QDF_STATUS_E_FAILURE) { + status = false; + hdd_err("Couldn't pass SHORT_GI_160MHZ to CFG"); + } + /* Hardware is capable of doing * 128K AMPDU in 11AC mode */