src/devices/wifi/wifi-remote-station-manager.h
changeset 4793 4f6a6772628e
parent 3745 73e7bb607014
child 4927 5f402ca784d1
equal deleted inserted replaced
4244:7c98934dcccd 4793:4f6a6772628e
    24 #include <utility>
    24 #include <utility>
    25 #include "ns3/mac48-address.h"
    25 #include "ns3/mac48-address.h"
    26 #include "ns3/packet.h"
    26 #include "ns3/packet.h"
    27 #include "ns3/object.h"
    27 #include "ns3/object.h"
    28 #include "ns3/traced-value.h"
    28 #include "ns3/traced-value.h"
       
    29 #include "ns3/tx-statistics.h"
    29 #include "wifi-mode.h"
    30 #include "wifi-mode.h"
    30 
    31 
    31 namespace ns3 {
    32 namespace ns3 {
    32 
    33 
    33 class WifiRemoteStation;
    34 class WifiRemoteStation;
   255    * \param dataMode the transmission mode used to send an ACK we just received
   256    * \param dataMode the transmission mode used to send an ACK we just received
   256    * \returns the transmission mode to use for the ACK to complete the data/ACK
   257    * \returns the transmission mode to use for the ACK to complete the data/ACK
   257    *          handshake.
   258    *          handshake.
   258    */
   259    */
   259   WifiMode GetAckMode (WifiMode dataMode);
   260   WifiMode GetAckMode (WifiMode dataMode);
       
   261   WifiTxStatistics::TX_STATISTICS GetTxStat();
       
   262   void ResetTxStat();
   260 
   263 
   261 private:
   264 private:
   262   typedef std::vector<WifiMode> SupportedModes;
   265   typedef std::vector<WifiMode> SupportedModes;
   263   virtual Ptr<WifiRemoteStationManager> GetManager (void) const = 0;
   266   virtual Ptr<WifiRemoteStationManager> GetManager (void) const = 0;
   264   virtual WifiMode DoGetDataMode (uint32_t size) = 0;
   267   virtual WifiMode DoGetDataMode (uint32_t size) = 0;
   284     GOT_ASSOC_TX_OK
   287     GOT_ASSOC_TX_OK
   285   } m_state;
   288   } m_state;
   286   SupportedModes m_modes;
   289   SupportedModes m_modes;
   287   TracedValue<uint32_t> m_ssrc;
   290   TracedValue<uint32_t> m_ssrc;
   288   TracedValue<uint32_t> m_slrc;
   291   TracedValue<uint32_t> m_slrc;
       
   292   Ptr<WifiTxStatistics> m_txStat;
   289 };
   293 };
   290 
   294 
   291 } // namespace ns3 
   295 } // namespace ns3 
   292 
   296 
   293 #endif /* MAC_STATIONS_H */
   297 #endif /* MAC_STATIONS_H */