diff --git a/src/wifi/model/spectrum-wifi-phy.cc b/src/wifi/model/spectrum-wifi-phy.cc index a8960ccce3..68a1f70b60 100644 --- a/src/wifi/model/spectrum-wifi-phy.cc +++ b/src/wifi/model/spectrum-wifi-phy.cc @@ -539,6 +539,7 @@ SpectrumWifiPhy::StartRx(Ptr rxParams, } } + NS_ASSERT_MSG(totalRxPower >= 0.0, "Negative RX power"); NS_LOG_DEBUG( "Total signal power received after antenna gain: " << totalRxPower << " W"