wifi: Remove unneeded StartAccessIfNeeded functions

This commit is contained in:
Stefano Avallone
2023-09-19 18:20:44 +02:00
committed by Stefano Avallone
parent b4ef172776
commit 637334f280
4 changed files with 0 additions and 39 deletions

View File

@@ -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()
{

View File

@@ -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

View File

@@ -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)
{

View File

@@ -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.
*/