wifi: Add check on received power in spectrum PHY
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user