rt2x00: Fix rt2800usb RX frame format and as such L2PAD
authorBenoit Papillault <benoit.papillault@free.fr>
Fri, 4 Dec 2009 22:47:06 +0000 (23:47 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 23:56:39 +0000 (18:56 -0500)
commit5de42f9eeafa7d54ffb833e0526d4828e194fddb
tree4e7318d01b6e46e0271c17b347854e5c67712c8c
parent9c8427d9deca1c0c2415c8da0e731e13fc89d111
rt2x00: Fix rt2800usb RX frame format and as such L2PAD

According to Ralink source code, the RX frame format is RXINFO + RXWI +
802.11 frame + RXD, including various padding. Before this patch, we
were using RXD + RXWI + 802.11 frame, so RXD was not correct.

Doing this, we fix the L2PAD bit which is now correctly set on received
frames.

Signed-off-by: Benoit Papillault <benoit.papillault@free.fr>
Acked-by: Ivo van Doorn <ivdoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800usb.c
drivers/net/wireless/rt2x00/rt2800usb.h