Commit 6a325d85 authored by Alban Browaeys's avatar Alban Browaeys Committed by John W. Linville

rt2x00 : modify padding location.

The padding is to be added between header and payload for the only header need
padding case.
Signed-off-by: default avatarBenoit PAPILLAULT <benoit.papillault@free.fr>
Signed-off-by: default avatarAlban Browaeys <prahal@yahoo.com>
Acked-by: default avatarGertjan van Wingerde <gwingerde@gmail.com>
Acked-by: default avatarIvo van Doorn <ivdoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c70762f9
...@@ -197,7 +197,7 @@ void rt2x00queue_insert_l2pad(struct sk_buff *skb, unsigned int header_length) ...@@ -197,7 +197,7 @@ void rt2x00queue_insert_l2pad(struct sk_buff *skb, unsigned int header_length)
* the payload is already properly aligned. * the payload is already properly aligned.
*/ */
skb_push(skb, header_align); skb_push(skb, header_align);
memmove(skb->data, skb->data + header_align, frame_length); memmove(skb->data, skb->data + header_align, header_length);
skbdesc->flags |= SKBDESC_L2_PADDED; skbdesc->flags |= SKBDESC_L2_PADDED;
} else { } else {
/* /*
......
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