diff -r acf97b5fd60a src/devices/uan/model/uan-channel.cc --- a/src/devices/uan/model/uan-channel.cc Tue Nov 09 16:21:33 2010 +0100 +++ b/src/devices/uan/model/uan-channel.cc Mon Nov 15 14:28:41 2010 +0100 @@ -170,12 +170,12 @@ Ptr rcvrMobility = i->first->GetNode ()->GetObject (); Time delay = m_prop->GetDelay (senderMobility, rcvrMobility, txMode); UanPdp pdp = m_prop->GetPdp (senderMobility, rcvrMobility, txMode); - double rxPowerDb = txPowerDb + m_prop->GetPathLossDb (senderMobility, + double rxPowerDb = txPowerDb - m_prop->GetPathLossDb (senderMobility, rcvrMobility, txMode); NS_LOG_DEBUG ("txPowerDb=" << txPowerDb << "dB, rxPowerDb=" - << rxPowerDb << "distance=" + << rxPowerDb << "dB, distance=" << senderMobility->GetDistanceFrom (rcvrMobility) << "m, delay=" << delay);