src/wifi/model/wifi-tx-vector.cc
changeset 11479 a3dcf66928f3
parent 11450 9f4ae69f12b7
child 11570 1bf102a32c67
--- a/src/wifi/model/wifi-tx-vector.cc	Wed Jul 08 00:09:46 2015 +0200
+++ b/src/wifi/model/wifi-tx-vector.cc	Wed Jul 08 23:44:17 2015 +0200
@@ -29,6 +29,7 @@
     m_shortGuardInterval (false),
     m_nss (1),
     m_ness (0),
+    m_aggregation (false),
     m_stbc (false),
     m_modeInitialized (false),
     m_txPowerLevelInitialized (false)
@@ -36,13 +37,15 @@
 }
 
 WifiTxVector::WifiTxVector (WifiMode mode, uint8_t powerLevel, uint8_t retries,
-                            bool shortGuardInterval, uint8_t nss, uint8_t ness, bool stbc)
+                            bool shortGuardInterval, uint8_t nss, uint8_t ness,
+                            bool aggregation, bool stbc)
   : m_mode (mode),
     m_txPowerLevel (powerLevel),
     m_retries (retries),
     m_shortGuardInterval (shortGuardInterval),
     m_nss (nss),
     m_ness (ness),
+    m_aggregation (aggregation),
     m_stbc (stbc),
     m_modeInitialized (true),
     m_txPowerLevelInitialized (true)
@@ -94,6 +97,12 @@
 }
 
 bool
+WifiTxVector::IsAggregation (void) const
+{
+  return m_aggregation;
+}
+
+bool
 WifiTxVector::IsStbc (void) const
 {
   return m_stbc;
@@ -138,6 +147,12 @@
 }
 
 void
+WifiTxVector::SetAggregation (bool aggregation)
+{
+  m_aggregation = aggregation;
+}
+
+void
 WifiTxVector::SetStbc (bool stbc)
 {
   m_stbc = stbc;
@@ -151,6 +166,7 @@
     " Short GI: " << v.IsShortGuardInterval () <<
     " Nss: " << (uint32_t)v.GetNss () <<
     " Ness: " << (uint32_t)v.GetNess () <<
+    " MPDU aggregation" << v.IsAggregation () <<
     " STBC: " << v.IsStbc ();
   return os;
 }