diff --git a/htc/htc_send.c b/htc/htc_send.c index 16ad4ac2935d..5a7db7114853 100644 --- a/htc/htc_send.c +++ b/htc/htc_send.c @@ -2154,13 +2154,15 @@ void htc_process_credit_rpt(HTC_TARGET *target, HTC_CREDIT_REPORT *pRpt, #endif - pEndpoint->TxCredits += rpt_credits; if (pEndpoint->service_id == WMI_CONTROL_SVC) { htc_credit_record(HTC_PROCESS_CREDIT_REPORT, - pEndpoint->TxCredits, + pEndpoint->TxCredits + rpt_credits, HTC_PACKET_QUEUE_DEPTH(&pEndpoint-> TxQueue)); } + + pEndpoint->TxCredits += rpt_credits; + if (pEndpoint->TxCredits && HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue)) { UNLOCK_HTC_TX(target);