소스 검색

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
Jinwei Chen 5 년 전
부모
커밋
05bd796311
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      dp/wifi3.0/dp_tx_flow_control.c

+ 2 - 2
dp/wifi3.0/dp_tx_flow_control.c

@@ -90,8 +90,8 @@ 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] &&
-	    pool->avail_desc > pool->start_th[DP_TH_VI])
+	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] &&
 		 pool->avail_desc > pool->start_th[DP_TH_VO])