diff options
author | Alban Browaeys <prahal@yahoo.com> | 2009-12-04 23:46:58 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-21 18:56:25 -0500 |
commit | 6a325d856bc4509f29164fe42501b6909cf57dcf (patch) | |
tree | ae2343274693f2810e9935c716899eb3928e8f92 /drivers/net/wireless/rt2x00/rt2x00queue.c | |
parent | c70762f9acad654002704f1e53436a0ba3356c31 (diff) | |
download | linux-6a325d856bc4509f29164fe42501b6909cf57dcf.tar.gz linux-6a325d856bc4509f29164fe42501b6909cf57dcf.tar.bz2 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/net/wireless/rt2x00/rt2x00queue.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 2 |
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 { /* |