wifi: Pass link ID to Txop::NotifyOff()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user