Explorar el Código

qcacmn: Limit yield log to rx data CEs

A recent change added NAPI yield stats update call for all CEs.
With another receent change that shortened the yield time, we see
a lot of logs complaining about CEs where this particular stats
are not applicable to. Limit the stats update to NAPI CEs.

Change-Id: Ia17a4ddf53ce52116f30d48190f47914721a548e
CRs-Fixed: 2092084
Orhan K AKYILDIZ hace 7 años
padre
commit
9e5b93c55c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hif/src/ce/ce_service.c

+ 1 - 1
hif/src/ce/ce_service.c

@@ -229,7 +229,7 @@ bool hif_ce_service_should_yield(struct hif_softc *scn,
 
 	yield =  time_limit_reached || rxpkt_thresh_reached;
 
-	if (yield)
+	if (yield && ce_state->htt_rx_data)
 		hif_napi_update_yield_stats(ce_state,
 					    time_limit_reached,
 					    rxpkt_thresh_reached);