From: Gertjan van Wingerde Date: Sat, 8 May 2010 21:40:18 +0000 (+0200) Subject: rt2x00: Fix setting of txdesc->length field. X-Git-Tag: v2.6.35-rc1~473^2~167^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d43e49ec83b7d1b1339205e1f3980a447658dc40;p=platform%2Fkernel%2Flinux-3.10.git rt2x00: Fix setting of txdesc->length field. We should take the stripping of the IV into account for the txdesc->length field. Signed-off-by: Gertjan van Wingerde Acked-by: Ivo van Doorn Tested-by: Pavel Roskin Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2x00crypto.c b/drivers/net/wireless/rt2x00/rt2x00crypto.c index d291c786..583dacd 100644 --- a/drivers/net/wireless/rt2x00/rt2x00crypto.c +++ b/drivers/net/wireless/rt2x00/rt2x00crypto.c @@ -128,6 +128,7 @@ void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, struct txentry_desc *txdesc) /* Pull buffer to correct size */ skb_pull(skb, txdesc->iv_len); + txdesc->length -= txdesc->iv_len; /* IV/EIV data has officially been stripped */ skbdesc->flags |= SKBDESC_IV_STRIPPED;