src/wifi/model/block-ack-agreement.h
changeset 11174 780a43e4980c
parent 10483 e3a02ed14587
child 11450 9f4ae69f12b7
equal deleted inserted replaced
11173:9b4c47e6c37e 11174:780a43e4980c
    71    * Enable or disable A-MSDU support.
    71    * Enable or disable A-MSDU support.
    72    *
    72    *
    73    * \param supported enable or disable A-MSDU support
    73    * \param supported enable or disable A-MSDU support
    74    */
    74    */
    75   void SetAmsduSupport (bool supported);
    75   void SetAmsduSupport (bool supported);
    76 
    76   /**
       
    77    * Set ending sequence number.
       
    78    *
       
    79    * \param seq the ending sequence number
       
    80    */
       
    81   void SetWinEnd (uint16_t seq);
    77   /**
    82   /**
    78    * Return the Traffic ID (TID).
    83    * Return the Traffic ID (TID).
    79    *
    84    *
    80    * \return TID
    85    * \return TID
    81    */
    86    */
   109    *
   114    *
   110    * \return starting sequence control
   115    * \return starting sequence control
   111    */
   116    */
   112   uint16_t GetStartingSequenceControl (void) const;
   117   uint16_t GetStartingSequenceControl (void) const;
   113   /**
   118   /**
       
   119    * Return the ending sequence number
       
   120    *
       
   121    * \return ending sequence number
       
   122    */
       
   123   uint16_t GetWinEnd (void) const;
       
   124   /**
   114    * Check whether the current ACK policy is immediate block ACK.
   125    * Check whether the current ACK policy is immediate block ACK.
   115    *
   126    *
   116    * \return true if the current ACK policy is immediate block ACK,
   127    * \return true if the current ACK policy is immediate block ACK,
   117    *         false otherwise
   128    *         false otherwise
   118    */
   129    */
   122    *
   133    *
   123    * \return true if A-MSDU is supported,
   134    * \return true if A-MSDU is supported,
   124    *         false otherwise
   135    *         false otherwise
   125    */
   136    */
   126   bool IsAmsduSupported (void) const;
   137   bool IsAmsduSupported (void) const;
       
   138   /**
       
   139    * Enable or disable HT support.
       
   140    *
       
   141    * \param htSupported enable or disable HT support
       
   142    */
       
   143   void SetHtSupported (bool htSupported);
       
   144   /**
       
   145    * Check whether HT is supported
       
   146    *
       
   147    * \return true if HT is supported,
       
   148    *         false otherwise
       
   149    */
       
   150   bool IsHtSupported (void) const;
   127 
   151 
   128 protected:
   152 protected:
   129   Mac48Address m_peer;
   153   Mac48Address m_peer;       //!< Peer address
   130   uint8_t m_amsduSupported;
   154   uint8_t m_amsduSupported;  //!< Flag whether MSDU aggregation is supported
   131   uint8_t m_blockAckPolicy; /* represents type of block ack: immediate or delayed */
   155   uint8_t m_blockAckPolicy;  //!< Type of block ack: immediate or delayed
   132   uint8_t m_tid;
   156   uint8_t m_tid;             //!< Traffic ID
   133   uint16_t m_bufferSize;
   157   uint16_t m_bufferSize;     //!< Buffer size
   134   uint16_t m_timeout;
   158   uint16_t m_timeout;        //!< Timeout
   135   uint16_t m_startingSeq;
   159   uint16_t m_startingSeq;    //!< Starting squence control
   136 
   160   uint16_t m_winEnd;         //!< Ending sequence number
   137   EventId m_inactivityEvent;
   161   uint8_t m_htSupported;     //!< Flag whether HT is supported
       
   162   EventId m_inactivityEvent; //!<
   138 };
   163 };
   139 
   164 
   140 } // namespace ns3
   165 } // namespace ns3
   141 
   166 
   142 #endif /* BLOCK_ACK_AGREEMENT_H */
   167 #endif /* BLOCK_ACK_AGREEMENT_H */