mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
qcacmn: Restore the correct credit for EP
qcacld-2.0 to qcacmn propagation Restore the correct credit for the flow control endpoint, add back all the credits consumed by the queue, if fail to send packet by HIFSend_head. Change-Id: I480f7aba5ce8c8d1e57caaae5b2bfcd77209091c CRs-Fixed: 2360669
This commit is contained in:
parent
fbf6d922d6
commit
d2cc13ede9
1 changed files with 6 additions and 3 deletions
|
|
@ -646,12 +646,15 @@ static QDF_STATUS htc_issue_packets(HTC_TARGET *target,
|
|||
target->ce_send_cnt--;
|
||||
pEndpoint->ul_outstanding_cnt--;
|
||||
HTC_PACKET_REMOVE(&pEndpoint->TxLookupQueue, pPacket);
|
||||
/* reclaim credits */
|
||||
pEndpoint->TxCredits +=
|
||||
pPacket->PktInfo.AsTx.CreditsUsed;
|
||||
htc_packet_set_magic_cookie(pPacket, 0);
|
||||
/* put it back into the callers queue */
|
||||
HTC_PACKET_ENQUEUE_TO_HEAD(pPktQueue, pPacket);
|
||||
/* reclaim credits */
|
||||
HTC_PACKET_QUEUE_ITERATE_ALLOW_REMOVE(pPktQueue,
|
||||
pPacket) {
|
||||
pEndpoint->TxCredits +=
|
||||
pPacket->PktInfo.AsTx.CreditsUsed;
|
||||
} HTC_PACKET_QUEUE_ITERATE_END;
|
||||
if (!pEndpoint->async_update) {
|
||||
UNLOCK_HTC_TX(target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue