소스 검색

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

Linux Build Service Account 5 년 전
부모
커밋
9ef0c191fe
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

@@ -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.