瀏覽代碼

qcacmn: dfs: Fix reset delay line log for bin5 radars

Some dfs domains do not support bin5 radars and bin5 tables
will be null for these domains. So do not log error if number
of bin5 radars are zero.

Change-Id: If9cceae38fa71d1b9b2413f490976ab9f5156086
CRs-Fixed: 2285127
Arif Hussain 6 年之前
父節點
當前提交
7fc2561205
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      umac/dfs/core/src/filtering/dfs_init.c

+ 7 - 4
umac/dfs/core/src/filtering/dfs_init.c

@@ -51,13 +51,13 @@ void dfs_reset_alldelaylines(struct wlan_dfs *dfs)
 	int i;
 
 	if (!dfs) {
-		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS,  "dfs is NULL");
+		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "dfs is NULL");
 		return;
 	}
 	pl = dfs->pulses;
 
 	if (!pl) {
-		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS,  "pl==NULL, dfs=%pK", dfs);
+		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "pl is NULL");
 		return;
 	}
 
@@ -73,8 +73,11 @@ void dfs_reset_alldelaylines(struct wlan_dfs *dfs)
 	}
 
 	if (!(dfs->dfs_b5radars)) {
-		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS,  "b5radars=%pK",
-				dfs->dfs_b5radars);
+		if (dfs->dfs_rinfo.rn_numbin5radars > 0)
+			dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS,
+				"null dfs_b5radars, numbin5radars=%d domain=%d",
+				dfs->dfs_rinfo.rn_numbin5radars,
+				dfs->dfsdomain);
 		return;
 	}