diff --git a/src/wifi/model/wifi-phy-state-helper.cc b/src/wifi/model/wifi-phy-state-helper.cc index d8d5a5143..41b1b7ed7 100644 --- a/src/wifi/model/wifi-phy-state-helper.cc +++ b/src/wifi/model/wifi-phy-state-helper.cc @@ -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