wifi: Pass link ID to Txop::NotifyOff()

This commit is contained in:
Stefano Avallone
2025-06-02 21:56:04 +02:00
parent 604a241172
commit 0e19f579e6
3 changed files with 8 additions and 11 deletions

View File

@@ -1268,16 +1268,11 @@ void
ChannelAccessManager::NotifyOffNow()
{
NS_LOG_FUNCTION(this);
// Cancel timeout
if (m_accessTimeout.IsPending())
{
m_accessTimeout.Cancel();
}
// Reset backoffs
ResetAllBackoffs();
for (auto txop : m_txops)
{
txop->NotifyOff();
txop->NotifyOff(m_linkId);
}
}

View File

@@ -810,9 +810,9 @@ Txop::NotifySleep(uint8_t linkId)
}
void
Txop::NotifyOff()
Txop::NotifyOff(uint8_t linkId)
{
NS_LOG_FUNCTION(this);
NS_LOG_FUNCTION(this << linkId);
}
void

View File

@@ -330,9 +330,11 @@ class Txop : public Object
*/
virtual void NotifySleep(uint8_t linkId);
/**
* When off operation occurs, the queue gets cleaned up.
* Notify that the given link is switched off.
*
* @param linkId the ID of the given link
*/
virtual void NotifyOff();
virtual void NotifyOff(uint8_t linkId);
/**
* When wake up operation occurs on a link, channel access on that link
* will be restarted.