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 <gwingerde@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Tested-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
05e8594d55
commit
d43e49ec83
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue