|
@@ -2154,13 +2154,15 @@ void htc_process_credit_rpt(HTC_TARGET *target, HTC_CREDIT_REPORT *pRpt,
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- pEndpoint->TxCredits += rpt_credits;
|
|
|
|
if (pEndpoint->service_id == WMI_CONTROL_SVC) {
|
|
if (pEndpoint->service_id == WMI_CONTROL_SVC) {
|
|
htc_credit_record(HTC_PROCESS_CREDIT_REPORT,
|
|
htc_credit_record(HTC_PROCESS_CREDIT_REPORT,
|
|
- pEndpoint->TxCredits,
|
|
|
|
|
|
+ pEndpoint->TxCredits + rpt_credits,
|
|
HTC_PACKET_QUEUE_DEPTH(&pEndpoint->
|
|
HTC_PACKET_QUEUE_DEPTH(&pEndpoint->
|
|
TxQueue));
|
|
TxQueue));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ pEndpoint->TxCredits += rpt_credits;
|
|
|
|
+
|
|
if (pEndpoint->TxCredits
|
|
if (pEndpoint->TxCredits
|
|
&& HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue)) {
|
|
&& HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue)) {
|
|
UNLOCK_HTC_TX(target);
|
|
UNLOCK_HTC_TX(target);
|