wifi: Remove unneeded StartAccessIfNeeded functions
This commit is contained in:
committed by
Stefano Avallone
parent
b4ef172776
commit
637334f280
@@ -590,16 +590,6 @@ Txop::StartAccessAfterEvent(uint8_t linkId, bool hadFramesToTransmit, bool check
|
||||
m_mac->GetChannelAccessManager(linkId)->RequestAccess(this);
|
||||
}
|
||||
|
||||
void
|
||||
Txop::StartAccessIfNeeded(uint8_t linkId)
|
||||
{
|
||||
NS_LOG_FUNCTION(this << +linkId);
|
||||
if (HasFramesToTransmit(linkId) && GetLink(linkId).access == NOT_REQUESTED)
|
||||
{
|
||||
m_mac->GetChannelAccessManager(linkId)->RequestAccess(this);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Txop::DoInitialize()
|
||||
{
|
||||
|
||||
@@ -412,13 +412,6 @@ class Txop : public Object
|
||||
*/
|
||||
void StartAccessAfterEvent(uint8_t linkId, bool hadFramesToTransmit, bool checkMediumBusy);
|
||||
|
||||
/**
|
||||
* Request access from Txop on the given link if needed.
|
||||
*
|
||||
* \param linkId the ID of the given link
|
||||
*/
|
||||
void StartAccessIfNeeded(uint8_t linkId);
|
||||
|
||||
/**
|
||||
* \param nSlots the number of slots of the backoff.
|
||||
* \param linkId the ID of the given link
|
||||
|
||||
@@ -1477,21 +1477,6 @@ WifiMac::UnblockUnicastTxOnLinks(WifiQueueBlockedReason reason,
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
WifiMac::StartAccessIfNeeded(uint8_t linkId)
|
||||
{
|
||||
NS_LOG_FUNCTION(this << linkId);
|
||||
|
||||
if (m_txop)
|
||||
{
|
||||
m_txop->StartAccessIfNeeded(linkId);
|
||||
}
|
||||
for (const auto& [acIndex, edca] : m_edca)
|
||||
{
|
||||
edca->StartAccessIfNeeded(linkId);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
WifiMac::Enqueue(Ptr<Packet> packet, Mac48Address to, Mac48Address from)
|
||||
{
|
||||
|
||||
@@ -368,13 +368,6 @@ class WifiMac : public Object
|
||||
*/
|
||||
virtual bool SupportsSendFrom() const;
|
||||
|
||||
/**
|
||||
* Request channel access from DCF/EDCAFs on the given link if needed.
|
||||
*
|
||||
* \param linkId the ID of the given link
|
||||
*/
|
||||
void StartAccessIfNeeded(uint8_t linkId);
|
||||
|
||||
/**
|
||||
* \param phys the physical layers attached to this MAC.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user