From 17a84ba2b4596363ee2df14abb7101a581ec9bab Mon Sep 17 00:00:00 2001 From: Mirko Banchi Date: Fri, 20 Aug 2010 19:15:12 +0200 Subject: [PATCH] Add ResetBitmap method to block ack response header --- src/devices/wifi/ctrl-headers.cc | 6 ++++++ src/devices/wifi/ctrl-headers.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/devices/wifi/ctrl-headers.cc b/src/devices/wifi/ctrl-headers.cc index 97492fc5b..861277cac 100644 --- a/src/devices/wifi/ctrl-headers.cc +++ b/src/devices/wifi/ctrl-headers.cc @@ -707,4 +707,10 @@ CtrlBAckResponseHeader::GetCompressedBitmap (void) const return bitmap.m_compressedBitmap; } +void +CtrlBAckResponseHeader::ResetBitmap (void) +{ + memset (&bitmap, 0, sizeof (bitmap)); +} + } //namespace ns3 diff --git a/src/devices/wifi/ctrl-headers.h b/src/devices/wifi/ctrl-headers.h index 5150a3a41..85d62a9e1 100644 --- a/src/devices/wifi/ctrl-headers.h +++ b/src/devices/wifi/ctrl-headers.h @@ -116,6 +116,8 @@ public: void SetStartingSequenceControl (uint16_t seqControl); const uint16_t* GetBitmap (void) const; uint64_t GetCompressedBitmap (void) const; + + void ResetBitmap (void); private: