wifi: Allow QosTxop to return its Access Category

This commit is contained in:
Stefano Avallone
2021-01-12 12:42:20 +01:00
parent fa87c21c83
commit f99d624f5e
4 changed files with 20 additions and 0 deletions

View File

@@ -788,4 +788,10 @@ QosTxop::IsQosTxop (void) const
return true;
}
AcIndex
QosTxop::GetAccessCategory (void) const
{
return m_ac;
}
} //namespace ns3

View File

@@ -84,6 +84,7 @@ public:
virtual ~QosTxop ();
bool IsQosTxop (void) const override;
AcIndex GetAccessCategory (void) const override;
void SetWifiRemoteStationManager (const Ptr<WifiRemoteStationManager> remoteManager) override;
bool HasFramesToTransmit (void) override;
void NotifyInternalCollision (void) override;

View File

@@ -423,4 +423,10 @@ Txop::IsQosTxop () const
return false;
}
AcIndex
Txop::GetAccessCategory (void) const
{
return AC_BE_NQOS;
}
} //namespace ns3

View File

@@ -36,6 +36,7 @@ class UniformRandomVariable;
class CtrlBAckResponseHeader;
class WifiRemoteStationManager;
enum WifiMacDropReason : uint8_t; // opaque enum declaration
enum AcIndex : uint8_t;
/**
* \brief Handle packet fragmentation and retransmissions
@@ -97,6 +98,12 @@ public:
* \returns true if QoS TXOP.
*/
virtual bool IsQosTxop () const;
/**
* Get the access category.
*
* \return the access category.
*/
virtual AcIndex GetAccessCategory (void) const;
/**
* Set ChannelAccessManager this Txop is associated to.