Browse Source

qcacmn: do not process tx comp after quota is exhausted

If number of entries available in tx comp ring are more
than quota then process number of entries as per quota

Change-Id: I6345cb6f7cee62c343d152f42beb15460ce02ef1
Chaithanya Garrepalli 4 years ago
parent
commit
9988a35c3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dp/wifi3.0/dp_tx.c

+ 1 - 1
dp/wifi3.0/dp_tx.c

@@ -4421,7 +4421,7 @@ more_data:
 	dp_srng_dst_inv_cached_descs(soc, hal_ring_hdl, num_avail_for_reap);
 
 	/* Find head descriptor from completion ring */
-	while (qdf_likely(num_avail_for_reap)) {
+	while (qdf_likely(num_avail_for_reap--)) {
 
 		tx_comp_hal_desc =  dp_srng_dst_get_next(soc, hal_ring_hdl);
 		if (qdf_unlikely(!tx_comp_hal_desc))