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

qcacmn: Hard code properties of Spectral parameters

Till a FW advertisement which specifies the properties of
Spectral parameters is in place hard code these values
in driver.

CRs-Fixed: 2569385
Change-Id: I02c042946ff30771df6a66f49004c01aa5d53ac0
Edayilliam Jayadev 5 жил өмнө
parent
commit
52c9b9fe51

+ 13 - 0
target_if/spectral/target_if_spectral.c

@@ -1363,6 +1363,19 @@ target_if_init_spectral_param_properties(struct target_if_spectral *spectral)
 		}
 	}
 
+	/* Once FW advertisement is in place remove this hard coding */
+	smode = SPECTRAL_SCAN_MODE_NORMAL;
+	spectral->properties[SPECTRAL_SCAN_MODE_NORMAL]
+			[SPECTRAL_PARAM_FREQUENCY].supported = false;
+	for (; smode < SPECTRAL_SCAN_MODE_MAX; smode++) {
+		spectral->properties[smode]
+			[SPECTRAL_PARAM_SPECT_PRI].common_all_modes = true;
+		spectral->properties[smode]
+			[SPECTRAL_PARAM_SCAN_PERIOD].common_all_modes = true;
+		spectral->properties[smode]
+			[SPECTRAL_PARAM_INIT_DELAY].common_all_modes = true;
+	}
+
 	return QDF_STATUS_SUCCESS;
 }