ath9k: Proper padding/unpadding for the TX/RX path.
authorBenoit Papillault <benoit.papillault@free.fr>
Tue, 24 Nov 2009 14:49:18 +0000 (15:49 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 28 Nov 2009 20:04:50 +0000 (15:04 -0500)
commit882de2d0fa0db1aa2a4173675b6bf5d8b54d3aec
tree3e378bdeee251367d08fec654056e046b9853c6b
parent8e0e7475570563d5d60ef9e38b573a3dff1fc8e4
ath9k: Proper padding/unpadding for the TX/RX path.

Software padding is done on the TX path and software unpadding is done on the
RX path. This patch corrects the position where the padding occurs. A specific
function computes the pad position and this function is used in the TX and RX
path. This patch has been tested by generating every possible 802.11 frames
with every possible frame_control field and a varying length. This patch is
useful for analyzing non standard 802.11 frames going over the air

Signed-off-by: Benoit Papillault <benoit.papillault@free.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/common.c
drivers/net/wireless/ath/ath9k/common.h
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/xmit.c