提交 d5a4c5e3 编写于 作者: S Sujith 提交者: 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: NSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册