Răsfoiți Sursa

qcacld-3.0: Fix compilation errors for QCN7605

Fix compilation issue related to datapath when
built for target QCN7605.

CRs-Fixed: 2555844
Change-Id: Iabe649205be31887f037545021f70dcaa5d3aabc
Rakesh Pillai 5 ani în urmă
părinte
comite
2d5596fa13
1 a modificat fișierele cu 6 adăugiri și 4 ștergeri
  1. 6 4
      core/dp/txrx/ol_txrx_flow_control.c

+ 6 - 4
core/dp/txrx/ol_txrx_flow_control.c

@@ -1115,10 +1115,8 @@ static void ol_tx_flow_pool_update(struct ol_tx_flow_pool_t *pool,
 {
 	struct ol_txrx_soc_t *soc = cds_get_context(QDF_MODULE_ID_SOC);
 	ol_txrx_pdev_handle pdev;
-	uint32_t stop_threshold =
-			 ol_cfg_get_tx_flow_stop_queue_th(pdev->ctrl_pdev);
-	uint32_t start_threshold = stop_threshold +
-			ol_cfg_get_tx_flow_start_queue_offset(pdev->ctrl_pdev);
+	uint32_t stop_threshold;
+	uint32_t start_threshold;
 
 	if (qdf_unlikely(!soc)) {
 		ol_txrx_err("soc is NULL");
@@ -1130,6 +1128,10 @@ static void ol_tx_flow_pool_update(struct ol_tx_flow_pool_t *pool,
 		ol_txrx_err("pdev is NULL");
 		return;
 	}
+
+	stop_threshold = ol_cfg_get_tx_flow_stop_queue_th(pdev->ctrl_pdev);
+	start_threshold = stop_threshold +
+			ol_cfg_get_tx_flow_start_queue_offset(pdev->ctrl_pdev);
 	pool->flow_pool_size = new_pool_size;
 	pool->start_th = (start_threshold * new_pool_size) / 100;
 	pool->stop_th = (stop_threshold * new_pool_size) / 100;