wifi: Add check on received power in spectrum PHY

This commit is contained in:
Sébastien Deronne
2024-09-09 20:24:40 +02:00
parent 496657e0e4
commit cc1a148262

View File

@@ -539,6 +539,7 @@ SpectrumWifiPhy::StartRx(Ptr<SpectrumSignalParameters> rxParams,
} }
} }
NS_ASSERT_MSG(totalRxPower >= 0.0, "Negative RX power");
NS_LOG_DEBUG( NS_LOG_DEBUG(
"Total signal power received after antenna gain: " "Total signal power received after antenna gain: "
<< totalRxPower << " W" << totalRxPower << " W"