src/wifi/model/wifi-tx-vector.cc
changeset 11479 a3dcf66928f3
parent 11450 9f4ae69f12b7
child 11570 1bf102a32c67
equal deleted inserted replaced
11478:f743110af92e 11479:a3dcf66928f3
    27 WifiTxVector::WifiTxVector ()
    27 WifiTxVector::WifiTxVector ()
    28   : m_retries (0),
    28   : m_retries (0),
    29     m_shortGuardInterval (false),
    29     m_shortGuardInterval (false),
    30     m_nss (1),
    30     m_nss (1),
    31     m_ness (0),
    31     m_ness (0),
       
    32     m_aggregation (false),
    32     m_stbc (false),
    33     m_stbc (false),
    33     m_modeInitialized (false),
    34     m_modeInitialized (false),
    34     m_txPowerLevelInitialized (false)
    35     m_txPowerLevelInitialized (false)
    35 {
    36 {
    36 }
    37 }
    37 
    38 
    38 WifiTxVector::WifiTxVector (WifiMode mode, uint8_t powerLevel, uint8_t retries,
    39 WifiTxVector::WifiTxVector (WifiMode mode, uint8_t powerLevel, uint8_t retries,
    39                             bool shortGuardInterval, uint8_t nss, uint8_t ness, bool stbc)
    40                             bool shortGuardInterval, uint8_t nss, uint8_t ness,
       
    41                             bool aggregation, bool stbc)
    40   : m_mode (mode),
    42   : m_mode (mode),
    41     m_txPowerLevel (powerLevel),
    43     m_txPowerLevel (powerLevel),
    42     m_retries (retries),
    44     m_retries (retries),
    43     m_shortGuardInterval (shortGuardInterval),
    45     m_shortGuardInterval (shortGuardInterval),
    44     m_nss (nss),
    46     m_nss (nss),
    45     m_ness (ness),
    47     m_ness (ness),
       
    48     m_aggregation (aggregation),
    46     m_stbc (stbc),
    49     m_stbc (stbc),
    47     m_modeInitialized (true),
    50     m_modeInitialized (true),
    48     m_txPowerLevelInitialized (true)
    51     m_txPowerLevelInitialized (true)
    49 {
    52 {
    50 }
    53 }
    92 {
    95 {
    93   return m_ness;
    96   return m_ness;
    94 }
    97 }
    95 
    98 
    96 bool
    99 bool
       
   100 WifiTxVector::IsAggregation (void) const
       
   101 {
       
   102   return m_aggregation;
       
   103 }
       
   104 
       
   105 bool
    97 WifiTxVector::IsStbc (void) const
   106 WifiTxVector::IsStbc (void) const
    98 {
   107 {
    99   return m_stbc;
   108   return m_stbc;
   100 }
   109 }
   101 
   110 
   136 {
   145 {
   137   m_ness = ness;
   146   m_ness = ness;
   138 }
   147 }
   139 
   148 
   140 void
   149 void
       
   150 WifiTxVector::SetAggregation (bool aggregation)
       
   151 {
       
   152   m_aggregation = aggregation;
       
   153 }
       
   154 
       
   155 void
   141 WifiTxVector::SetStbc (bool stbc)
   156 WifiTxVector::SetStbc (bool stbc)
   142 {
   157 {
   143   m_stbc = stbc;
   158   m_stbc = stbc;
   144 }
   159 }
   145 
   160 
   149     " txpwrlvl:" << (uint32_t)v.GetTxPowerLevel () <<
   164     " txpwrlvl:" << (uint32_t)v.GetTxPowerLevel () <<
   150     " retries:" << (uint32_t)v.GetRetries () <<
   165     " retries:" << (uint32_t)v.GetRetries () <<
   151     " Short GI: " << v.IsShortGuardInterval () <<
   166     " Short GI: " << v.IsShortGuardInterval () <<
   152     " Nss: " << (uint32_t)v.GetNss () <<
   167     " Nss: " << (uint32_t)v.GetNss () <<
   153     " Ness: " << (uint32_t)v.GetNess () <<
   168     " Ness: " << (uint32_t)v.GetNess () <<
       
   169     " MPDU aggregation" << v.IsAggregation () <<
   154     " STBC: " << v.IsStbc ();
   170     " STBC: " << v.IsStbc ();
   155   return os;
   171   return os;
   156 }
   172 }
   157 
   173 
   158 } //namespace ns3
   174 } //namespace ns3