Bug 895 - SimpleOfdmWimaxPhy SNR computation ns-3.8-RC4
authorTom Henderson <tomh@tomh.org>
Fri, 30 Apr 2010 13:10:23 -0400
changeset 6343 533be42b3c7f
parent 6342 185652e73e47
child 6344 185ea09e6ba2
Bug 895 - SimpleOfdmWimaxPhy SNR computation
RELEASE_NOTES
src/devices/wimax/simple-ofdm-wimax-phy.cc
--- 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);