rt2x00 : modify padding location.
authorAlban Browaeys <prahal@yahoo.com>
Fri, 4 Dec 2009 22:46:58 +0000 (23:46 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 23:56:25 +0000 (18:56 -0500)
The padding is to be added between header and payload for the only header need
padding case.

Signed-off-by: Benoit PAPILLAULT <benoit.papillault@free.fr>
Signed-off-by: Alban Browaeys <prahal@yahoo.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <ivdoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00queue.c

index 239afc7a9c0bd180f267e961641ebb2d611c3d94..842c4e3c83cab12dfe755f3acdebe7529f7c8887 100644 (file)
@@ -197,7 +197,7 @@ void rt2x00queue_insert_l2pad(struct sk_buff *skb, unsigned int header_length)
                 * the payload is already properly aligned.
                 */
                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;
        } else {
                /*