From 3499dcb1f47c84f81e72caee769bf3f3240f50df Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Thu, 23 Aug 2018 23:42:29 -0700 Subject: [PATCH] qcacld-3.0: Fix the issue with Nss setting Correct the typo in status check variable due to which Nss setting returns failure. Change-Id: I81a430b0482e79ee3b2d0b2c4e6aea232907919a CRs-Fixed: 2302465 --- core/hdd/src/wlan_hdd_cfg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 185253bcdbe9..dfbd2b307b2e 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -7885,7 +7885,7 @@ QDF_STATUS hdd_update_nss(struct hdd_adapter *adapter, uint8_t nss) } qdf_status = ucfg_mlme_get_ht_cap_info(hdd_ctx->hdd_psoc, &ht_cap_info); - if (!QDF_IS_STATUS_SUCCESS(status)) { + if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { hdd_err("Failed to get HT Cap info"); status = false; } @@ -7899,9 +7899,9 @@ QDF_STATUS hdd_update_nss(struct hdd_adapter *adapter, uint8_t nss) } qdf_status = ucfg_mlme_set_ht_cap_info(hdd_ctx->hdd_psoc, ht_cap_info); - if (!QDF_IS_STATUS_SUCCESS(status)) { + if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { status = false; - hdd_err("Could not pass on HT_CAP_INFO to CFG"); + hdd_err("Could not set the HT_CAP_INFO"); } sme_cfg_get_int(mac_handle, WNI_CFG_VHT_BASIC_MCS_SET, &temp);