Bug 895 - SimpleOfdmWimaxPhy SNR computation ns-3.8-RC4
authorTom Henderson <tomh@tomh.org>
Fri, 30 Apr 2010 13:10:23 -0400
changeset 6282533be42b3c7f
parent 6281 185652e73e47
child 6283 185ea09e6ba2
Bug 895 - SimpleOfdmWimaxPhy SNR computation
RELEASE_NOTES
src/devices/wimax/simple-ofdm-wimax-phy.cc
     1.1 --- a/RELEASE_NOTES	Wed Apr 28 16:21:23 2010 -0400
     1.2 +++ b/RELEASE_NOTES	Fri Apr 30 13:10:23 2010 -0400
     1.3 @@ -137,6 +137,7 @@
     1.4     - bug 888 - Writing ascii trace to addtional tests fails
     1.5     - bug 891 - WiMAX device helper does not include propagation loss model by default 
     1.6     - bug 894 - ./waf --run error message upon segfault
     1.7 +   - bug 895 - SimpleOfdmWimaxPhy SNR computation
     1.8     - bug 899 - EmuNetDevice::SetPromiscReceiveCallback not implemented
     1.9  
    1.10  Known issues
     2.1 --- a/src/devices/wimax/simple-ofdm-wimax-phy.cc	Wed Apr 28 16:21:23 2010 -0400
     2.2 +++ b/src/devices/wimax/simple-ofdm-wimax-phy.cc	Fri Apr 30 13:10:23 2010 -0400
     2.3 @@ -333,7 +333,7 @@
     2.4  
     2.5    UniformVariable URNG;
     2.6    uint8_t drop = 0;
     2.7 -  double Nwb = -114 + m_noiseFigure + 10 * log (GetBandwidth () / 1000000000) / 2.303;
     2.8 +  double Nwb = -114 + m_noiseFigure + 10 * log (GetBandwidth () / 1000000000.0) / 2.303;
     2.9    double SNR = rxPower - Nwb;
    2.10  
    2.11    SNRToBlockErrorRateRecord * record = m_snrToBlockErrorRateManager->GetSNRToBlockErrorRateRecord (SNR, modulationType);