ソースを参照

qca-wifi: Build the preCAC list only for ETSI domain

The preCAC list (forest) is built irrespective of the current DFS domain.
But since preCAC feature is only supported by ETSI spec., the list will
not be used by other domains.

Build the preCAC list only for ETSI domain.

Change-Id: I5949fda8b2c51237f80ce5335d9c9453f46ef3a4
CRs-Fixed: 2499643
Vignesh Mohan 6 年 前
コミット
8d81493bc3
1 ファイル変更6 行追加0 行削除
  1. 6 0
      umac/dfs/core/src/misc/dfs_zero_cac.c

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

@@ -1277,6 +1277,12 @@ void dfs_init_precac_list(struct wlan_dfs *dfs)
 	int nchans = 0;
 	QDF_STATUS status;
 
+	/* Right now, only ETSI domain supports preCAC. Check if current
+	 * DFS domain is ETSI and only then build the preCAC list.
+	 */
+	if (utils_get_dfsdomain(dfs->dfs_pdev_obj) != DFS_ETSI_DOMAIN)
+		return;
+
 	/*
 	 * We need to prepare list of uniq VHT80 center frequencies. But at the
 	 * beginning we do not know how many uniq frequencies are present.