diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-11-18 00:35:27 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-11-18 00:35:27 -0800 |
| commit | 74a9c48a91cd57fb125f3479a2c2e37034e560fe (patch) | |
| tree | 94a907c8bf3762a5893fe49e956b2cd61cfe91b2 | |
| parent | e18df67a5b7eeaddb1a14abcd54f150d2c878fd7 (diff) | |
| parent | 7234f3d1640683eb70df3f620a9ca661dbf3ecab (diff) | |
Merge "ath10k: check the pipe credit update enabled flag before set"
| -rw-r--r-- | drivers/net/wireless/ath/ath10k/htc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c index c01f59955797..aa20ebbefe94 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c @@ -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++; |
