Skip to content

Commit

Permalink
rt2x00 : modify padding location.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alban Browaeys authored and John W. Linville committed Dec 21, 2009
1 parent c70762f commit 6a325d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rt2x00/rt2x00queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/*
Expand Down

0 comments on commit 6a325d8

Please sign in to comment.