Browse Source

qcacmn: memzero with correct size

Add memzero with correct size.

Change-Id: Ied78bbc7c15e4b5765015944a71148f5501f2884
CRs-Fixed: 3354666
Nandha Kishore Easwaran 2 years ago
parent
commit
c79a97bc8a
1 changed files with 5 additions and 5 deletions
  1. 5 5
      dp/wifi3.0/monitor/2.0/dp_mon_filter_2.0.c

+ 5 - 5
dp/wifi3.0/monitor/2.0/dp_mon_filter_2.0.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2021, The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -1362,11 +1362,11 @@ void dp_tx_mon_filter_set_all(struct dp_mon_pdev_be *mon_pdev_be,
 			      struct htt_tx_ring_tlv_filter *filter)
 {
 	qdf_mem_zero(&filter->dtlvs,
-		     sizeof(struct dp_tx_mon_downstream_tlv_config));
-	qdf_mem_zero(&filter->dtlvs,
-		     sizeof(struct dp_tx_mon_upstream_tlv_config));
+		     sizeof(filter->dtlvs));
+	qdf_mem_zero(&filter->utlvs,
+		     sizeof(filter->utlvs));
 	qdf_mem_zero(&filter->wmask,
-		     sizeof(struct dp_tx_mon_upstream_tlv_config));
+		     sizeof(filter->wmask));
 
 	dp_tx_mon_filter_set_downstream_tlvs(filter);
 	dp_tx_mon_filter_set_upstream_tlvs(filter);