wifi: Generate backoff if needed when a PHY wakes up or is turned on

This commit is contained in:
Stefano Avallone
2023-09-19 17:44:48 +02:00
committed by Stefano Avallone
parent 2bb301a8db
commit 9d172ac9a1

View File

@@ -679,7 +679,8 @@ void
Txop::NotifyWakeUp(uint8_t linkId)
{
NS_LOG_FUNCTION(this << +linkId);
StartAccessIfNeeded(linkId);
// before wake up, no packet can be transmitted
StartAccessAfterEvent(linkId, false, false);
}
void
@@ -688,7 +689,8 @@ Txop::NotifyOn()
NS_LOG_FUNCTION(this);
for (const auto& [id, link] : m_links)
{
StartAccessIfNeeded(id);
// before being turned on, no packet can be transmitted
StartAccessAfterEvent(id, false, false);
}
}