rt2x00: Only remove L2 padding in received frames if there is payload.
authorGertjan van Wingerde <gwingerde@gmail.com>
Fri, 4 Dec 2009 22:47:04 +0000 (23:47 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 23:56:36 +0000 (18:56 -0500)
commitb734083349d1f1aab1edc810cef02e8046251b48
tree8e3c5d9f38693806f625b32c9c0be510f5929d78
parent2e331462fcb3d897921d8a0af4fca1b08c1b7269
rt2x00: Only remove L2 padding in received frames if there is payload.

L2 padding will only be present when there is actual payload present.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <ivdoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c