Эх сурвалжийг харах

qcacld-3.0: Make get_nss command compatible with hastings

Currently the command to get nss checks the max capability
of enable 2x2, and if the capability is 1, and the
hw mode is currently DBS, it lowers the nss capability
to 1 which is expected in helium, but not in hastings.

Fix is to check whether the device supports DBS 2x2
capability and then only downgrade the value of nss.

Change-Id: I18acef455c0790862ba786f87af776b65646aca6
CRs-Fixed: 2557587
gaurank kathpalia 5 жил өмнө
parent
commit
7944f32d2c

+ 3 - 1
core/hdd/src/wlan_hdd_wext.c

@@ -6154,8 +6154,10 @@ static int __iw_setnone_getint(struct net_device *dev,
 		if (!QDF_IS_STATUS_SUCCESS(status))
 			hdd_err("unable to get vht_enable2x2");
 		*value = (bval == 0) ? 1 : 2;
-		if (policy_mgr_is_current_hwmode_dbs(hdd_ctx->psoc))
+		if (!policy_mgr_is_hw_dbs_2x2_capable(hdd_ctx->psoc) &&
+		    policy_mgr_is_current_hwmode_dbs(hdd_ctx->psoc))
 			*value = *value - 1;
+
 		hdd_debug("GET_NSS: Current NSS:%d", *value);
 		break;
 	}