diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2012-03-21 05:22:16 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-26 08:47:49 -0400 |
commit | 5c980fbb4e7ac2d01e95c3372e95ac40dacd33cd (patch) | |
tree | 3c2ec2da7f91c964a8e6a4773eee4b53647189a6 /drivers/net/wireless/ath | |
parent | b4d13d3b70b085ef9b8e0bf7132d502d77d9ffc6 (diff) |
ath6kl: Dump htc header when invalid Rx frame length is detected
Dump htc header along with the warning message when the request
to Rx with invalid frame length is detected.
kvalo: fix open parenthesis alignment
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index 4849d99cce77..5dfb7cc27aa3 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c | |||
@@ -1353,7 +1353,9 @@ static int ath6kl_htc_rx_setup(struct htc_target *target, | |||
1353 | sizeof(*htc_hdr)); | 1353 | sizeof(*htc_hdr)); |
1354 | 1354 | ||
1355 | if (!htc_valid_rx_frame_len(target, ep->eid, full_len)) { | 1355 | if (!htc_valid_rx_frame_len(target, ep->eid, full_len)) { |
1356 | ath6kl_warn("Rx buffer requested with invalid length\n"); | 1356 | ath6kl_warn("Rx buffer requested with invalid length htc_hdr:eid %d, flags 0x%x, len %d\n", |
1357 | htc_hdr->eid, htc_hdr->flags, | ||
1358 | le16_to_cpu(htc_hdr->payld_len)); | ||
1357 | return -EINVAL; | 1359 | return -EINVAL; |
1358 | } | 1360 | } |
1359 | 1361 | ||