Commit 13e34ea1 authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by Kalle Valo

ath6kl: Fix bug in computing AMSU subframe padding

This fixes AMSDU rx, otherwise it fails with the following warnings.

"802.3 AMSDU frame bound check failed"
Signed-off-by: default avatarVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 594a0bc8
...@@ -812,7 +812,7 @@ static void aggr_slice_amsdu(struct aggr_info *p_aggr, ...@@ -812,7 +812,7 @@ static void aggr_slice_amsdu(struct aggr_info *p_aggr,
/* Add the length of A-MSDU subframe padding bytes - /* Add the length of A-MSDU subframe padding bytes -
* Round to nearest word. * 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; framep += frame_8023_len;
amsdu_len -= frame_8023_len; amsdu_len -= frame_8023_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment