Jelajahi Sumber

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

Linux Build Service Account 5 tahun lalu
induk
melakukan
9ef0c191fe
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      umac/dfs/core/src/misc/dfs_zero_cac.c

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

@@ -1288,6 +1288,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.