* [PATCH V2] ath6kl: Fix bug in computing AMSU subframe padding
@ 2011-08-16 5:49 Vasanthakumar Thiagarajan
2011-08-17 16:32 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Vasanthakumar Thiagarajan @ 2011-08-16 5:49 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, kvalo
This fixes AMSDU rx, otherwise it fails with the following warnings.
"802.3 AMSDU frame bound check failed"
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath6kl/txrx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
V2 -- It is 4-byte aligned not 3, thanks to Kevin for pointing this out.
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index 5d3d4b6..44bf227 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -812,7 +812,7 @@ static void aggr_slice_amsdu(struct aggr_info *p_aggr,
/* Add the length of A-MSDU subframe padding bytes -
* Round to nearest word.
*/
- frame_8023_len = ALIGN(frame_8023_len + 3, 3);
+ frame_8023_len = ALIGN(frame_8023_len, 4);
framep += frame_8023_len;
amsdu_len -= frame_8023_len;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH V2] ath6kl: Fix bug in computing AMSU subframe padding
2011-08-16 5:49 [PATCH V2] ath6kl: Fix bug in computing AMSU subframe padding Vasanthakumar Thiagarajan
@ 2011-08-17 16:32 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2011-08-17 16:32 UTC (permalink / raw)
To: Vasanthakumar Thiagarajan; +Cc: linux-wireless
On 08/15/2011 10:49 PM, Vasanthakumar Thiagarajan wrote:
> This fixes AMSDU rx, otherwise it fails with the following warnings.
>
> "802.3 AMSDU frame bound check failed"
Thanks, applied.
Kalle
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-17 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 5:49 [PATCH V2] ath6kl: Fix bug in computing AMSU subframe padding Vasanthakumar Thiagarajan
2011-08-17 16:32 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).