diff options
author | Benoit Papillault <benoit.papillault@free.fr> | 2009-11-24 15:49:18 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-28 15:04:50 -0500 |
commit | 1bc1488067ee2c295b933ef6decd6035230f1a1c (patch) | |
tree | 3e378bdeee251367d08fec654056e046b9853c6b /drivers/net/wireless/ath/ath9k/common.h | |
parent | e7824a50662f7f79b1a739f705b4d906c31cf221 (diff) | |
download | blackbird-op-linux-1bc1488067ee2c295b933ef6decd6035230f1a1c.tar.gz blackbird-op-linux-1bc1488067ee2c295b933ef6decd6035230f1a1c.zip |
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); |