summaryrefslogtreecommitdiffstats
path: root/drivers
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-22 00:56:25 +0100
commit6a325d856bc4509f29164fe42501b6909cf57dcf (patch)
treeae2343274693f2810e9935c716899eb3928e8f92 /drivers
parentrt2x00 : bail out of regbusy_read if device is removed. (diff)
downloadlinux-6a325d856bc4509f29164fe42501b6909cf57dcf.tar.xz
linux-6a325d856bc4509f29164fe42501b6909cf57dcf.zip
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')
-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 239afc7a9c0b..842c4e3c83ca 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 {
/*