aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2010-03-29 06:37:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-31 14:46:39 -0400
commitd5a4c5e3afb9697c8f627b2563f4b8583ef88498 (patch)
treeae63c42f7b1cdb898f65376883edda9567d51ae8 /drivers/net/wireless/ath
parentef98c3cd9b68ed27eeb94b833f74860fa1a734b7 (diff)
ath9k_htc: Fix watchdog pattern parsing
Skip beyond the watchdog pattern properly. This fixes occasional failure of the driver to load. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_hst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.c b/drivers/net/wireless/ath/ath9k/htc_hst.c
index 9a48999d0979..30f608bfc567 100644
--- a/drivers/net/wireless/ath/ath9k/htc_hst.c
+++ b/drivers/net/wireless/ath/ath9k/htc_hst.c
@@ -377,7 +377,7 @@ void ath9k_htc_rx_msg(struct htc_target *htc_handle,
377 if (htc_hdr->flags & HTC_FLAGS_RECV_TRAILER) { 377 if (htc_hdr->flags & HTC_FLAGS_RECV_TRAILER) {
378 if (be32_to_cpu(*(u32 *) skb->data) == 0x00C60000) 378 if (be32_to_cpu(*(u32 *) skb->data) == 0x00C60000)
379 /* Move past the Watchdog pattern */ 379 /* Move past the Watchdog pattern */
380 htc_hdr = (struct htc_frame_hdr *) skb->data + 4; 380 htc_hdr = (struct htc_frame_hdr *)(skb->data + 4);
381 } 381 }
382 382
383 /* Get the message ID */ 383 /* Get the message ID */