aboutsummaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorAlban Browaeys <prahal@yahoo.com>2009-12-04 23:46:58 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-12-21 18:56:25 -0500
commit6a325d856bc4509f29164fe42501b6909cf57dcf (patch)
treeae2343274693f2810e9935c716899eb3928e8f92 /drivers/net
parentc70762f9acad654002704f1e53436a0ba3356c31 (diff)
rt2x00 : modify padding location.
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c
index 239afc7a9c0..842c4e3c83c 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.c
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.c
@@ -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 {
/*