diff options
author | Benoit Papillault <benoit.papillault@free.fr> | 2009-11-24 17:49:18 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-28 23:04:50 +0300 |
commit | 1bc1488067ee2c295b933ef6decd6035230f1a1c (patch) | |
tree | 3e378bdeee251367d08fec654056e046b9853c6b /drivers/net/wireless/ath/ath9k/common.h | |
parent | e7824a50662f7f79b1a739f705b4d906c31cf221 (diff) | |
download | linux-1bc1488067ee2c295b933ef6decd6035230f1a1c.tar.xz |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.h b/drivers/net/wireless/ath/ath9k/common.h index b230bb15279e..042999c2fe9c 100644 --- a/drivers/net/wireless/ath/ath9k/common.h +++ b/drivers/net/wireless/ath/ath9k/common.h @@ -123,3 +123,5 @@ void ath9k_cmn_rx_skb_postprocess(struct ath_common *common, struct ath_rx_status *rx_stats, struct ieee80211_rx_status *rxs, bool decrypt_error); + +int ath9k_cmn_padpos(__le16 frame_control); |