Browse Source

qcacmn: Make agile center freq 0 in stop sscan

In agile spectral scan scenario, if there is a chan switch,
it is possible for the new operating span to overlap with
the agile frequency, which results in erroneous outcome.

Make agile center freq 0 as part of every stop agile
scan. This ensures that a new frequency is mandated
as part of every agile scan.

Change-Id: I4531aa0636a62b918bace66098c2c287e72d55d3
CRs-Fixed: 2910449
Rakshith Suresh Patkar 4 năm trước cách đây
mục cha
commit
6fa61a5368
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      target_if/spectral/target_if_spectral.c

+ 12 - 0
target_if/spectral/target_if_spectral.c

@@ -1502,6 +1502,18 @@ target_if_sops_stop_spectral_scan(void *arg, enum spectral_scan_mode smode)
 	if (tempret != 0)
 		ret = tempret;
 
+	if (ret == 0 && smode == SPECTRAL_SCAN_MODE_AGILE) {
+		struct target_if_spectral_ops *p_sops;
+		struct spectral_config *sparams;
+
+		p_sops = GET_TARGET_IF_SPECTRAL_OPS(spectral);
+		sparams = &spectral->params[smode];
+		sparams->ss_frequency.cfreq1 = 0;
+		sparams->ss_frequency.cfreq2 = 0;
+
+		p_sops->configure_spectral(spectral, sparams, smode);
+	}
+
 	return ret;
 }