From d245b79ed7231d11c7e28b01e51da20a492536ac Mon Sep 17 00:00:00 2001 From: Federico Guerra Date: Thu, 6 Oct 2016 22:52:46 -0700 Subject: [PATCH] uan: (fixes #2492) Make use of RxGain attribute in UanPhyGen class Patch suggested by Randall Plate --- src/uan/model/uan-phy-gen.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uan/model/uan-phy-gen.cc b/src/uan/model/uan-phy-gen.cc index db95b6032..15b9ab382 100644 --- a/src/uan/model/uan-phy-gen.cc +++ b/src/uan/model/uan-phy-gen.cc @@ -611,6 +611,9 @@ UanPhyGen::RegisterListener (UanPhyListener *listener) void UanPhyGen::StartRxPacket (Ptr pkt, double rxPowerDb, UanTxMode txMode, UanPdp pdp) { + rxPowerDb += GetRxGainDb (); + NS_LOG_DEBUG ("PHY " << m_mac->GetAddress () << ": rx power after RX gain = " << rxPowerDb << " dB re uPa"); + switch (m_state) { case DISABLED: