瀏覽代碼

qca-wifi: Fix compilation errors when ADFS macro is disabled

Fix compilation errors when QCA_SUPPORT_AGILE_DFS macro is disabled
by adding the macros in certain APIs that were wrongly placed
outside the ADFS macro.

CRs-Fixed: 2689702
Change-Id: I89a4e43926625743b9f41ae142c6a45272b0c1a2
Vignesh Mohan 5 年之前
父節點
當前提交
8fb7a00b04
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      umac/dfs/core/src/misc/dfs_zero_cac.c

+ 3 - 2
umac/dfs/core/src/misc/dfs_zero_cac.c

@@ -5235,6 +5235,7 @@ static inline qdf_freq_t dfs_find_rcac_chan(struct wlan_dfs *dfs,
 
 #endif
 
+#ifdef QCA_SUPPORT_AGILE_DFS
 /* dfs_find_precac_chan() - Find out a channel to perform preCAC.
  *
  * @dfs: Pointer to struct wlan_dfs.
@@ -5314,6 +5315,7 @@ void dfs_set_agilecac_chan_for_freq(struct wlan_dfs *dfs,
 		qdf_info("%s: No valid Agile channels available in the current pdev", __func__);
 }
 #endif
+#endif
 
 #ifdef CONFIG_CHAN_NUM_API
 void dfs_find_vht80_chan_for_precac(struct wlan_dfs *dfs,
@@ -5840,6 +5842,7 @@ void dfs_reinit_precac_lists(struct wlan_dfs *src_dfs,
 	PRECAC_LIST_UNLOCK(dest_dfs);
 }
 
+#ifdef QCA_SUPPORT_ADFS_RCAC
 /* dfs_start_agile_engine() - Prepare ADFS params and program the agile
  *                            engine sending agile config cmd to FW.
  * @dfs: Pointer to struct wlan_dfs.
@@ -5873,8 +5876,6 @@ void dfs_start_agile_engine(struct wlan_dfs *dfs)
 			"dfs_tx_ops=%pK", dfs_tx_ops);
 }
 
-
-#ifdef QCA_SUPPORT_ADFS_RCAC
 /**
  * --------------------- ROLLING CAC STATE MACHINE ----------------------
  *