Skip to content

Commit

Permalink
wifi: Add check on received power in spectrum PHY
Browse files Browse the repository at this point in the history
  • Loading branch information
sderonne committed Oct 5, 2024
1 parent 496657e commit cc1a148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wifi/model/spectrum-wifi-phy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ SpectrumWifiPhy::StartRx(Ptr<SpectrumSignalParameters> rxParams,
}
}

NS_ASSERT_MSG(totalRxPower >= 0.0, "Negative RX power");
NS_LOG_DEBUG(
"Total signal power received after antenna gain: "
<< totalRxPower << " W"
Expand Down

0 comments on commit cc1a148

Please sign in to comment.