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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user