ath6kl: Fix bug in computing AMSU subframe padding
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Tue, 16 Aug 2011 05:49:38 +0000 (11:19 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 31 Aug 2011 07:10:54 +0000 (10:10 +0300)
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>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/txrx.c

index 5d3d4b61ec894ae9b473c09e130fbeee2c7e9777..44bf2271b16274b6caaea46c84ddd89eacc6fa6d 100644 (file)
@@ -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;