Browse Source

qcacmn: Address incorrect radarfound frequency computation

In Pebble (11BE qcn6432 chip), the radar-found frequency is
incorrectly computed in the current implementation as
dfs_translate_radar_params is executed.
The translation function (dfs_translate_radar_params) which 
alters the frequency offset is needed for pre-11BE chipsets.
For 11BE chips where
wmi_service_radar_found_chan_freq_eq_center_freq
service is advertised by HALPHY, the frequency translation is not
needed as the offset sent by FW in wmi_dfs_radar_detection_event_id
can be directly used.

CRs-Fixed: 3562464
Change-Id: I824b94ca764d6bd62a67feb38ba3ccc966999e90
Priyadarshnee Srinivasan 1 year ago
parent
commit
eeeb952b15
1 changed files with 5 additions and 0 deletions
  1. 5 0
      umac/dfs/core/src/misc/dfs_process_radar_found_ind.c

+ 5 - 0
umac/dfs/core/src/misc/dfs_process_radar_found_ind.c

@@ -798,6 +798,11 @@ void dfs_translate_radar_params(struct wlan_dfs *dfs,
 	if (!dfs_is_true_160mhz_supported(dfs))
 	if (!dfs_is_true_160mhz_supported(dfs))
 		return;
 		return;
 
 
+	if (dfs->dfs_is_radar_found_chan_freq_eq_center_freq) {
+		dfs_debug(dfs, WLAN_DEBUG_DFS, "There is no radar translation required for chips where HALPHY reports the exact radar found chan's center freq\n");
+		return;
+	}
+
 	if (radar_found->detector_id == dfs_get_agile_detector_id(dfs)) {
 	if (radar_found->detector_id == dfs_get_agile_detector_id(dfs)) {
 		dfs_translate_radar_params_for_agile_chan(dfs, radar_found);
 		dfs_translate_radar_params_for_agile_chan(dfs, radar_found);
 		return;
 		return;