Commit d5a4c5e3 authored by Sujith's avatar Sujith Committed by John W. Linville

ath9k_htc: Fix watchdog pattern parsing

Skip beyond the watchdog pattern properly.
This fixes occasional failure of the driver to load.
Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ef98c3cd
...@@ -377,7 +377,7 @@ void ath9k_htc_rx_msg(struct htc_target *htc_handle, ...@@ -377,7 +377,7 @@ void ath9k_htc_rx_msg(struct htc_target *htc_handle,
if (htc_hdr->flags & HTC_FLAGS_RECV_TRAILER) { if (htc_hdr->flags & HTC_FLAGS_RECV_TRAILER) {
if (be32_to_cpu(*(u32 *) skb->data) == 0x00C60000) if (be32_to_cpu(*(u32 *) skb->data) == 0x00C60000)
/* Move past the Watchdog pattern */ /* Move past the Watchdog pattern */
htc_hdr = (struct htc_frame_hdr *) skb->data + 4; htc_hdr = (struct htc_frame_hdr *)(skb->data + 4);
} }
/* Get the message ID */ /* Get the message ID */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment