--- a/RELEASE_NOTES Wed Apr 28 16:21:23 2010 -0400
+++ b/RELEASE_NOTES Fri Apr 30 13:10:23 2010 -0400
@@ -137,6 +137,7 @@
- bug 888 - Writing ascii trace to addtional tests fails
- bug 891 - WiMAX device helper does not include propagation loss model by default
- bug 894 - ./waf --run error message upon segfault
+ - bug 895 - SimpleOfdmWimaxPhy SNR computation
- bug 899 - EmuNetDevice::SetPromiscReceiveCallback not implemented
Known issues
--- a/src/devices/wimax/simple-ofdm-wimax-phy.cc Wed Apr 28 16:21:23 2010 -0400
+++ b/src/devices/wimax/simple-ofdm-wimax-phy.cc Fri Apr 30 13:10:23 2010 -0400
@@ -333,7 +333,7 @@
UniformVariable URNG;
uint8_t drop = 0;
- double Nwb = -114 + m_noiseFigure + 10 * log (GetBandwidth () / 1000000000) / 2.303;
+ double Nwb = -114 + m_noiseFigure + 10 * log (GetBandwidth () / 1000000000.0) / 2.303;
double SNR = rxPower - Nwb;
SNRToBlockErrorRateRecord * record = m_snrToBlockErrorRateManager->GetSNRToBlockErrorRateRecord (SNR, modulationType);