Ver Fonte

qca-wifi: Remove the redundant radar on Agile Detector check

The following sanity check for processing the radar on agile channel
(dfs_process_radar_ind_on_agile_chan) is already present in the caller,
(dfs_process_radar_ind) where the radar action is classified based on
radar found params:
i) is dfs agile precac enabled?
ii) is rcac enabled?
iii) is a valid agile channel configured?

These checks are not enough when radar is detected on Zero Wait DFS
channel. But this is taken care in the parent function

Remove these redundant checks as they are already present in the parent
function flow dfs_is_radarsource_agile().

CRs-Fixed: 2764058
Change-Id: Ia67d6ee28f5f04e149c1049bd5642f04e6a4bc70
Vignesh U há 4 anos atrás
pai
commit
75d8aabc74
1 ficheiros alterados com 0 adições e 9 exclusões
  1. 0 9
      umac/dfs/core/src/misc/dfs_zero_cac.c

+ 0 - 9
umac/dfs/core/src/misc/dfs_zero_cac.c

@@ -5097,15 +5097,6 @@ dfs_process_radar_ind_on_agile_chan(struct wlan_dfs *dfs,
 	bool is_radar_source_agile =
 		(radar_found->detector_id == dfs_get_agile_detector_id(dfs));
 
-	if ((!dfs_is_agile_precac_enabled(dfs) &&
-	     !dfs_is_agile_rcac_enabled(dfs)) ||
-	     !dfs->dfs_agile_precac_freq_mhz) {
-		dfs_err(dfs, WLAN_DEBUG_DFS,
-			"radar on Agile detector when ADFS is not running");
-		status = QDF_STATUS_E_FAILURE;
-		goto exit;
-	}
-
 	dfs_compute_radar_found_cfreq(dfs, radar_found, &freq_center);
 	radarfound_freq = freq_center + radar_found->freq_offset;
 	if (is_radar_source_agile)