Ver código fonte

qcacmn: Add correct ring number offset for PPE2TCL ring

Target 6432 - Add the correct ring number offset for PPE2TCL ring.

Change-Id: I057fb9ea959078fb0cb49cb65d8600e7aa64f22c
CRs-Fixed: 3512321
syed touqeer pasha 2 anos atrás
pai
commit
131126e7b3
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      hal/wifi3.0/qcn6432/hal_6432_tx.h

+ 3 - 1
hal/wifi3.0/qcn6432/hal_6432_tx.h

@@ -229,7 +229,9 @@ hal_tx_config_rbm_mapping_be_6432(hal_soc_handle_t hal_soc_hdl,
 
 	reg_addr = HWIO_TCL_R0_RBM_MAPPING0_ADDR(MAC_TCL_REG_REG_BASE);
 
-	if (ring_type == TCL_CMD_CREDIT)
+	if (ring_type == PPE2TCL)
+		ring_num = ring_num + RBM_PPE2TCL_OFFSET;
+	else if (ring_type == TCL_CMD_CREDIT)
 		ring_num = ring_num + RBM_TCL_CMD_CREDIT_OFFSET;
 
 	/* get current value stored in register address */