mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 19:45:06 +08:00
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>
This commit is contained in:
parent
c70762f9ac
commit
6a325d856b
@ -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 {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user