From 232e5b6cccb79469549bd16f0c5c157cf5f84cad Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Tue, 6 Sep 2011 10:17:57 -0300 Subject: [PATCH] Fixed antialising strict rules. --- include/dot11.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dot11.h b/include/dot11.h index b1eeef8..4a26cbc 100644 --- a/include/dot11.h +++ b/include/dot11.h @@ -2174,13 +2174,13 @@ namespace Tins { * \brief Getter for the bar control field. * \return The bar control field. */ - uint16_t bar_control() const { return *(const uint16_t*)&_bar_control; } + uint16_t bar_control() const { return _bar_control.tid; } /** * \brief Getter for the start sequence field. * \return The bar start sequence. */ - uint16_t start_sequence() const { return *(const uint16_t*)&_start_sequence; } + uint16_t start_sequence() const { return (_start_sequence.frag << 12) | (_start_sequence.seq); } /** * \brief Returns the 802.11 frame's header length.