src/wifi/model/block-ack-agreement.cc
changeset 11622 d0da0aa55bda
parent 11450 9f4ae69f12b7
--- a/src/wifi/model/block-ack-agreement.cc	Tue Sep 01 22:02:05 2015 +0200
+++ b/src/wifi/model/block-ack-agreement.cc	Tue Sep 01 22:44:51 2015 +0200
@@ -76,6 +76,14 @@
 }
 
 void
+BlockAckAgreement::SetStartingSequenceControl (uint16_t seq)
+{
+  NS_LOG_FUNCTION (this << seq);
+  NS_ASSERT (((seq >> 4) & 0x0fff) < 4096);
+  m_startingSeq = (seq >> 4) & 0x0fff;
+}
+
+void
 BlockAckAgreement::SetImmediateBlockAck (void)
 {
   NS_LOG_FUNCTION (this);
@@ -135,7 +143,7 @@
 BlockAckAgreement::GetStartingSequenceControl (void) const
 {
   NS_LOG_FUNCTION (this);
-  uint16_t seqControl = (m_startingSeq << 4) | 0xfff0;
+  uint16_t seqControl = (m_startingSeq << 4) & 0xfff0;
   return seqControl;
 }