Browse Source

qcacmn: Reset the dfs radar event log counter

Reset the dfs radar event log counter during dfs reset.

Change-Id: I299167e986a9933010b9a9b79ef40cbd8d4e041e
CRs-Fixed: 2235745
Abhijit Pradhan 6 years ago
parent
commit
839cf6df59
1 changed files with 3 additions and 1 deletions
  1. 3 1
      umac/dfs/core/src/misc/dfs.c

+ 3 - 1
umac/dfs/core/src/misc/dfs.c

@@ -143,8 +143,10 @@ void dfs_reset(struct wlan_dfs *dfs)
 
 	dfs_cac_timer_reset(dfs);
 	dfs_zero_cac_reset(dfs);
-	if (!dfs->dfs_is_offload_enabled)
+	if (!dfs->dfs_is_offload_enabled) {
 		dfs_main_timer_reset(dfs);
+		dfs->dfs_event_log_count = 0;
+	}
 }
 
 void dfs_detach(struct wlan_dfs *dfs)