wifi: Fix assert hit if channel switch delay is set to zero

This commit is contained in:
Sebastien Deronne
2022-06-07 20:11:30 +02:00
committed by Stefano Avallone
parent e474944d82
commit ffb2d15399

View File

@@ -452,7 +452,7 @@ WifiPhyStateHelper::SwitchToChannelSwitching (Time switchingDuration)
m_startSwitching = now;
m_endSwitching = now + switchingDuration;
NotifySwitchingStart (switchingDuration);
NS_ASSERT (IsStateSwitching ());
NS_ASSERT (switchingDuration.IsZero () || IsStateSwitching ());
}
void