Browse Source

qcacmn: Set max rings of DIR_BUF_RX_DMA_SRC to 2

In HSP platform, ring index 0 is for spectral scan, and ring idex 1 is
for CFR capture. Extend max rings to 2 and support CFR capture.

Change-Id: I02b39dd626b67172123bc5e77173d50a132fc735
CRs-Fixed: 2634636
Wu Gao 9 years ago
parent
commit
20380e9491
1 changed files with 5 additions and 1 deletions
  1. 5 1
      hal/wifi3.0/qca6490/hal_6490.c

+ 5 - 1
hal/wifi3.0/qca6490/hal_6490.c

@@ -1899,7 +1899,11 @@ struct hal_hw_srng_config hw_srng_table_6490[] = {
 	},
 	},
 	{ /* DIR_BUF_RX_DMA_SRC */
 	{ /* DIR_BUF_RX_DMA_SRC */
 		.start_ring_id = HAL_SRNG_DIR_BUF_RX_SRC_DMA_RING,
 		.start_ring_id = HAL_SRNG_DIR_BUF_RX_SRC_DMA_RING,
-		.max_rings = 1,
+		/*
+		 * one ring is for spectral scan
+		 * the other is for cfr
+		 */
+		.max_rings = 2,
 		.entry_size = 2,
 		.entry_size = 2,
 		.lmac_ring = TRUE,
 		.lmac_ring = TRUE,
 		.ring_dir = HAL_SRNG_SRC_RING,
 		.ring_dir = HAL_SRNG_SRC_RING,