wifi: Make InterferenceHelper::GetEnergyDuration const

This commit is contained in:
Alexander Krotov
2017-04-14 01:34:58 +03:00
parent 9a53145c00
commit d60076cae0
2 changed files with 2 additions and 2 deletions

View File

@@ -187,7 +187,7 @@ InterferenceHelper::SetNumberOfReceiveAntennas (uint8_t rx)
}
Time
InterferenceHelper::GetEnergyDuration (double energyW)
InterferenceHelper::GetEnergyDuration (double energyW) const
{
Time now = Simulator::Now ();
double noiseInterferenceW = 0.0;

View File

@@ -155,7 +155,7 @@ private:
* energy on the medium will be higher than
* the requested threshold.
*/
Time GetEnergyDuration (double energyW);
Time GetEnergyDuration (double energyW) const;
/**
* Add the packet-related signal to interference helper.