mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 12:49:47 +07:00
ath10k: add initialization of HTC header
HTC header carries junk values that may be interpreted by the firmware differently. Enable credit update only if flow control is enabled for the corresponding endpoint. Signed-off-by: Alagu Sankar <alagusankar@silex-india.com> Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
30382dd1cf
commit
fbd428a5b8
@ -73,6 +73,7 @@ static void ath10k_htc_prepare_tx_skb(struct ath10k_htc_ep *ep,
|
||||
struct ath10k_htc_hdr *hdr;
|
||||
|
||||
hdr = (struct ath10k_htc_hdr *)skb->data;
|
||||
memset(hdr, 0, sizeof(struct ath10k_htc_hdr));
|
||||
|
||||
hdr->eid = ep->eid;
|
||||
hdr->len = __cpu_to_le16(skb->len - sizeof(*hdr));
|
||||
|
Loading…
Reference in New Issue
Block a user