ath10k: check the pipe credit update enabled flag before set
Check the credit update flag has enabled for the pipe before setting the flag for credit report update request on the wcn3990 WLAN module. CRs-Fixed: 2141924 Change-Id: Ic628fa49934c110b7abccefb45a2a354dc462791 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
This commit is contained in:
parent
d092195048
commit
7234f3d164
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ static void ath10k_htc_prepare_tx_skb(struct ath10k_htc_ep *ep,
|
|||
hdr->eid = ep->eid;
|
||||
hdr->len = __cpu_to_le16(skb->len - sizeof(*hdr));
|
||||
hdr->flags = 0;
|
||||
hdr->flags |= ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE;
|
||||
if (ep->tx_credit_flow_enabled)
|
||||
hdr->flags |= ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE;
|
||||
|
||||
spin_lock_bh(&ep->htc->tx_lock);
|
||||
hdr->seq_no = ep->seq_no++;
|
||||
|
|
Loading…
Add table
Reference in a new issue