src/wifi/model/wifi-tx-vector.h
changeset 11479 a3dcf66928f3
parent 11450 9f4ae69f12b7
child 11570 1bf102a32c67
equal deleted inserted replaced
11478:f743110af92e 11479:a3dcf66928f3
    71    * \param shortGuardInterval enable or disable short guard interval
    71    * \param shortGuardInterval enable or disable short guard interval
    72    * \param nss the number of spatial STBC streams (NSS)
    72    * \param nss the number of spatial STBC streams (NSS)
    73    * \param ness the number of extension spatial streams (NESS)
    73    * \param ness the number of extension spatial streams (NESS)
    74    * \param stbc enable or disable STBC
    74    * \param stbc enable or disable STBC
    75    */
    75    */
    76   WifiTxVector (WifiMode mode, uint8_t powerLevel, uint8_t retries, bool shortGuardInterval, uint8_t nss, uint8_t ness, bool stbc);
    76   WifiTxVector (WifiMode mode,
       
    77                 uint8_t powerLevel,
       
    78                 uint8_t retries,
       
    79                 bool shortGuardInterval,
       
    80                 uint8_t nss,
       
    81                 uint8_t ness,
       
    82                 bool aggregation,
       
    83                 bool stbc);
    77   /**
    84   /**
    78    * \returns the txvector payload mode
    85    * \returns the txvector payload mode
    79    */
    86    */
    80   WifiMode GetMode (void) const;
    87   WifiMode GetMode (void) const;
    81   /**
    88   /**
   132    * Sets the Ness number refer to IEEE 802.11n Table 20-6 for explanation
   139    * Sets the Ness number refer to IEEE 802.11n Table 20-6 for explanation
   133    *
   140    *
   134    * \param ness
   141    * \param ness
   135    */
   142    */
   136   void SetNess (uint8_t ness);
   143   void SetNess (uint8_t ness);
       
   144   /**
       
   145    * Checks whether the PSDU contains A-MPDU.
       
   146    *  \returns true if this PSDU has A-MPDU aggregation,
       
   147    *           false otherwise.
       
   148    */
       
   149   bool IsAggregation (void) const;
       
   150   /**
       
   151    * Sets if PSDU contains A-MPDU.
       
   152    *
       
   153    * \param aggregated whether the PSDU contains A-MPDU or not.
       
   154    */
       
   155   void SetAggregation (bool aggregation);
   137   /**
   156   /**
   138    * Check if STBC is used or not
   157    * Check if STBC is used or not
   139    *
   158    *
   140    * \returns true if STBC is used,
   159    * \returns true if STBC is used,
   141    *           false otherwise
   160    *           false otherwise
   160                                  for Click radiotap information */
   179                                  for Click radiotap information */
   161 
   180 
   162   bool     m_shortGuardInterval; /**< true if short GI is going to be used */
   181   bool     m_shortGuardInterval; /**< true if short GI is going to be used */
   163   uint8_t  m_nss;                /**< number of streams */
   182   uint8_t  m_nss;                /**< number of streams */
   164   uint8_t  m_ness;               /**< number of streams in beamforming */
   183   uint8_t  m_ness;               /**< number of streams in beamforming */
       
   184   bool     m_aggregation;        /** Flag whether the PSDU contains A-MPDU. */
   165   bool     m_stbc;               /**< STBC used or not */
   185   bool     m_stbc;               /**< STBC used or not */
   166 
   186 
   167   bool     m_modeInitialized;         //*< Internal initialization flag */
   187   bool     m_modeInitialized;         //*< Internal initialization flag */
   168   bool     m_txPowerLevelInitialized; //*< Internal initialization flag */
   188   bool     m_txPowerLevelInitialized; //*< Internal initialization flag */
   169 
   189