Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb879c92 authored by Jinwei Chen's avatar Jinwei Chen Committed by nshrivas
Browse files

qcacmn: fix invalid TX pool status when pool reattach

For AC based TX flow control, when try to do TX desc pool
reattach, currently even if TX desc pool avail_desc count
> BE_BK start threshold, it still mark pool status as
FLOW_POOL_ACTIVE_PAUSED.

Set correct pool status to FLOW_POOL_ACTIVE_UNPAUSED.

Change-Id: I6b675ffd71a2233ac23efbd6df2c235313f59cba
CRs-Fixed: 2687728
parent 53f47990
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ dp_tx_flow_pool_reattach(struct dp_tx_desc_pool_s *pool)

	if (pool->avail_desc > pool->start_th[DP_TH_BE_BK])
		pool->status = FLOW_POOL_ACTIVE_UNPAUSED;
	if (pool->avail_desc <= pool->start_th[DP_TH_BE_BK] &&
	else if (pool->avail_desc <= pool->start_th[DP_TH_BE_BK] &&
		 pool->avail_desc > pool->start_th[DP_TH_VI])
		pool->status = FLOW_POOL_BE_BK_PAUSED;
	else if (pool->avail_desc <= pool->start_th[DP_TH_VI] &&