wifi: Allow QosTxop to return its Access Category
This commit is contained in:
@@ -788,4 +788,10 @@ QosTxop::IsQosTxop (void) const
|
||||
return true;
|
||||
}
|
||||
|
||||
AcIndex
|
||||
QosTxop::GetAccessCategory (void) const
|
||||
{
|
||||
return m_ac;
|
||||
}
|
||||
|
||||
} //namespace ns3
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -423,4 +423,10 @@ Txop::IsQosTxop () const
|
||||
return false;
|
||||
}
|
||||
|
||||
AcIndex
|
||||
Txop::GetAccessCategory (void) const
|
||||
{
|
||||
return AC_BE_NQOS;
|
||||
}
|
||||
|
||||
} //namespace ns3
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user