From 0907c4679d982c2687f940e36a6b50a04c274182 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Fri, 25 Sep 2020 20:54:15 +0530 Subject: [PATCH] qcacmn: Initialize the HW FST memory to zero HW flow search table memory is not initialized to zero due to incorrect argument order to qdf_mem_set. This results in the possibility of HW flow entry to be not configured properly even though SW flow entry is configured properly. Fix is to use the appropriate argument order to qdf_mem_set so that HW FST memory is initialized to zero. Change-Id: If24f50c507392bd8d4974232d48d3af6f4f29b43 CRs-Fixed: 2773951 --- hal/wifi3.0/hal_rx_flow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hal/wifi3.0/hal_rx_flow.c b/hal/wifi3.0/hal_rx_flow.c index ecfef9a42a90..c98e07b34495 100644 --- a/hal/wifi3.0/hal_rx_flow.c +++ b/hal/wifi3.0/hal_rx_flow.c @@ -429,7 +429,7 @@ hal_rx_fst_attach(qdf_device_t qdf_dev, return NULL; } - qdf_mem_set(fst, 0, sizeof(struct hal_rx_fst)); + qdf_mem_set(fst, sizeof(struct hal_rx_fst), 0); fst->key = hash_key; fst->max_skid_length = max_search; @@ -456,8 +456,8 @@ hal_rx_fst_attach(qdf_device_t qdf_dev, QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_ANY, QDF_TRACE_LEVEL_DEBUG, (void *)fst->key, HAL_FST_HASH_KEY_SIZE_BYTES); - qdf_mem_set((uint8_t *)fst->base_vaddr, 0, - (fst->max_entries * HAL_RX_FST_ENTRY_SIZE)); + qdf_mem_set((uint8_t *)fst->base_vaddr, + (fst->max_entries * HAL_RX_FST_ENTRY_SIZE), 0); hal_rx_fst_key_configure(fst); hal_flow_toeplitz_create_cache(fst);