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: