소스 검색

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.