فهرست منبع

qcacmn: Expand the scope of the check "radar on Agile detector"

The "radar on Agile detector" currently checks only if the detector
id in the radar found parameter is the same as the Agile detector id.

Increase the scope of the "radar on Agile detector" check by also
checking if the Agile PreCAC was enabled or if RCAC was enabled and
if PreCAC timer was running.

CRs-Fixed: 2770006
Change-Id: I064560f738bdcbbf4bcb45b37bae71a0829e4146
Vignesh U 4 سال پیش
والد
کامیت
640dc685cf
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      umac/dfs/core/src/misc/dfs_process_radar_found_ind.c

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

@@ -1255,12 +1255,20 @@ bool dfs_is_radarsource_agile(struct wlan_dfs *dfs,
 			      struct radar_found_info *radar_found)
 {
 	bool is_radar_from_agile_dfs =
+	    (dfs_is_agile_precac_enabled(dfs) ||
+	     dfs_is_agile_rcac_enabled(dfs)) &&
+	     dfs_is_precac_timer_running(dfs) &&
 	    (radar_found->detector_id == dfs_get_agile_detector_id(dfs));
 	bool is_radar_from_zero_wait_dfs =
 	    (dfs_is_legacy_precac_enabled(dfs) &&
 	     dfs_is_precac_timer_running(dfs) &&
 	     (radar_found->segment_id == SEG_ID_SECONDARY));
 
+	dfs_debug(dfs, WLAN_DEBUG_DFS_AGILE,
+		  "radar on PreCAC segment: ADFS:%d Zero Wait DFS:%d",
+		  is_radar_from_agile_dfs,
+		  is_radar_from_zero_wait_dfs);
+
 	return (is_radar_from_agile_dfs || is_radar_from_zero_wait_dfs);
 }
 #else