diff options
| author | Nirav Shah <nnshah@qti.qualcomm.com> | 2015-08-10 16:26:06 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-08-19 04:02:27 -0700 |
| commit | 987b7583e11462a3fdb6ccaaccbc336ceec8aa00 (patch) | |
| tree | 3633ac785904a178cb11f2ddd394beb6040c06c8 | |
| parent | 465004601eae299d2f826deed4ee1c95d2d4b3a9 (diff) | |
qcacld-2.0: Do not reset rx_buf_debug entry when in_use is false
Do not reset rx_buf_debug (Buffer used to keep history of RX
Buffers) entry when we set in_use flag to false.
CRs-Fixed: 887590
Change-Id: I03a19506027b9186e9ff17ff6883e1460e308a9a
| -rw-r--r-- | CORE/CLD_TXRX/HTT/htt_rx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CORE/CLD_TXRX/HTT/htt_rx.c b/CORE/CLD_TXRX/HTT/htt_rx.c index 24e48b9abc77..7afbdcf915ab 100644 --- a/CORE/CLD_TXRX/HTT/htt_rx.c +++ b/CORE/CLD_TXRX/HTT/htt_rx.c @@ -2506,8 +2506,6 @@ htt_rx_hash_list_lookup(struct htt_pdev_t *pdev, u_int32_t paddr) index = NBUF_MAP_ID(netbuf); if (index < HTT_RX_RING_BUFF_DBG_LIST) { pdev->rx_buff_list[index].in_use = false; - pdev->rx_buff_list[index].paddr = 0; - pdev->rx_buff_list[index].vaddr = NULL; } } #endif @@ -2749,9 +2747,11 @@ htt_rx_attach(struct htt_pdev_t *pdev) pdev->rx_buff_list = adf_os_mem_alloc(pdev->osdev, HTT_RX_RING_BUFF_DBG_LIST * sizeof(struct rx_buf_debug)); - if (!pdev->rx_buff_list) { + if (!pdev->rx_buff_list) adf_os_print("HTT: debug RX buffer allocation failed\n"); - } + else + adf_os_mem_set(pdev->rx_buff_list, 0, HTT_RX_RING_BUFF_DBG_LIST * + sizeof(struct rx_buf_debug)); #endif htt_rx_ring_fill_n(pdev, pdev->rx_ring.fill_level); |
