瀏覽代碼

qcacld-3.0: Remove check of enable 2x2 in hdd_update_nss

Currently the driver checks enable 2x2 in hdd update nss, and
if it is 0, i.e nss is max limited to 1, then the driver returns
from there with the fail, thus not changing the global ini.

Fix is to remove the check from the common path, and put the
check only in the path where the FW also supports per vdev nss
change command.

Change-Id: I164e052eeec05d8e8c1653d134f645689f9e6281
CRs-Fixed: 2409355
gaurank kathpalia 6 年之前
父節點
當前提交
97c98c6268
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      core/hdd/src/wlan_hdd_cfg.c

+ 4 - 5
core/hdd/src/wlan_hdd_cfg.c

@@ -1784,11 +1784,6 @@ QDF_STATUS hdd_update_nss(struct hdd_adapter *adapter, uint8_t nss)
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	if (!bval) {
-		hdd_err("Nss in 1x1, no change required, 2x2 mode disabled");
-		return QDF_STATUS_E_FAILURE;
-	}
-
 	mac_handle = hdd_ctx->mac_handle;
 	if (!mac_handle) {
 		hdd_err("NULL MAC handle");
@@ -1810,6 +1805,10 @@ QDF_STATUS hdd_update_nss(struct hdd_adapter *adapter, uint8_t nss)
 			return hdd_set_nss_params(adapter, tx_nss, rx_nss);
 		hdd_debug("Vdev %d in disconnect state, changing ini nss params",
 			  adapter->vdev_id);
+		if (!bval) {
+			hdd_err("Nss in 1x1, no change required, 2x2 mode disabled");
+			return QDF_STATUS_E_FAILURE;
+		}
 
 		for (band = NSS_CHAINS_BAND_2GHZ; band < NSS_CHAINS_BAND_MAX;
 		     band++) {