Skip to content

Commit

Permalink
ath6kl: Print bad trailer data only when htc fails to parse trailer info
Browse files Browse the repository at this point in the history
Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Raja Mani authored and Kalle Valo committed Aug 9, 2011
1 parent 58d92ab commit 2588f55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wireless/ath/ath6kl/htc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1400,8 +1400,9 @@ static int htc_proc_trailer(struct htc_target *target,
len -= record->len;
}

ath6kl_dbg_dump(ATH6KL_DBG_RAW_BYTES, "BAD Recv Trailer",
orig_buf, orig_len);
if (status)
ath6kl_dbg_dump(ATH6KL_DBG_RAW_BYTES, "BAD Recv Trailer",
orig_buf, orig_len);

return status;
}
Expand Down

0 comments on commit 2588f55

Please sign in to comment.