]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: fix 802.11 header padding on RX, unpadding on TX
authorBenoit PAPILLAULT <benoit.papillault@free.fr>
Fri, 12 Dec 2008 14:29:58 +0000 (15:29 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Dec 2008 20:23:07 +0000 (15:23 -0500)
commite1b461253c2b07c4e0e87889831232738b01664b
treec248895ecf387cabb1350ca327d382a306e6f0e3
parent3fd079e2e703c09b01788da3995b0e987247810f
ath5k: fix 802.11 header padding on RX, unpadding on TX

Padding the 802.11 header to a multiple of 4 bytes needs to be done only for
frames with a body. This fixes a bug where 2 bytes were missing in monitor
mode for ACK frames. Inspired by a patch from Jouni Malinen on ath9k.

Ref: http://bugzilla.kernel.org/show_bug.cgi?id=12101 :
Signed-off-by: Benoit Papillault <benoit.papillault@free.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/base.c