Fix Bug 927:SimpleOfdmWimaxChannel RxPower computation
authorMohamed Amine Ismail <amine.ismail@sophia.inria.fr>
Tue, 08 Jun 2010 12:01:05 +0200
changeset 6344 00368e2fb08e
parent 6343 f5e99299143e
child 6345 a33353f63cea
Fix Bug 927:SimpleOfdmWimaxChannel RxPower computation
src/devices/wimax/simple-ofdm-wimax-channel.cc
--- a/src/devices/wimax/simple-ofdm-wimax-channel.cc	Tue Jun 08 11:41:17 2010 +0200
+++ b/src/devices/wimax/simple-ofdm-wimax-channel.cc	Tue Jun 08 12:01:05 2010 +0200
@@ -158,7 +158,7 @@
             {
               distance = senderMobility->GetDistanceFrom (receiverMobility);
               delay =  Seconds(distance/300000000.0);
-              rxPowerDbm = m_loss->CalcRxPower (rxPowerDbm, senderMobility, receiverMobility);
+              rxPowerDbm = m_loss->CalcRxPower (txPowerDbm, senderMobility, receiverMobility);
             }
           simpleOfdmSendParam * param = new simpleOfdmSendParam (fecBlock,
                                                                  burstSize,