Bläddra i källkod

qcacld-3.0: update dump_tx_desc

The dump_tx_desc function is called to report the number of freed and used
tx descriptors when a suspend is rejected by data path.  The debug code
was directly referencing a data field whereas the code to check the freed
and used descriptors used a function that reports a different number under
certain compilation flags.  Use the function in the debug statement such that
the value checked is the value printed.

Change-Id: Iad3f519dc88319c7a421f77376dd43e15e6eaf09
CRs-Fixed: 1113880
Houston Hoffman 8 år sedan
förälder
incheckning
02d1e8e7ce
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4 2
      core/dp/txrx/ol_txrx.c

+ 4 - 2
core/dp/txrx/ol_txrx.c

@@ -3349,16 +3349,18 @@ ol_txrx_peer_find_by_addr(struct ol_txrx_pdev_t *pdev, uint8_t *peer_mac_addr)
 static void ol_txrx_dump_tx_desc(ol_txrx_pdev_handle pdev_handle)
 {
 	struct ol_txrx_pdev_t *pdev = (ol_txrx_pdev_handle) pdev_handle;
-	uint32_t total;
+	uint32_t total, num_free;
 
 	if (ol_cfg_is_high_latency(pdev->ctrl_pdev))
 		total = qdf_atomic_read(&pdev->orig_target_tx_credit);
 	else
 		total = ol_tx_get_desc_global_pool_size(pdev);
 
+	num_free = ol_tx_get_total_free_desc(pdev);
+
 	TXRX_PRINT(TXRX_PRINT_LEVEL_ERR,
 		   "total tx credit %d num_free %d",
-		   total, pdev->tx_desc.num_free);
+		   total, num_free);
 
 	return;
 }