wifi: Backoff is not needed if in sleep mode or off

This commit is contained in:
Stefano Avallone
2020-06-21 22:51:58 +02:00
parent f8d0ae104e
commit 4ca20707ba

View File

@@ -247,6 +247,12 @@ ChannelAccessManager::NeedBackoffUponAccess (Ptr<Txop> txop)
{
NS_LOG_FUNCTION (this << txop);
// No backoff needed if in sleep mode or off
if (m_sleeping || m_off)
{
return false;
}
// the Txop might have a stale value of remaining backoff slots
UpdateBackoff ();