uan: (fixes #2492) Make use of RxGain attribute in UanPhyGen class

Patch suggested by Randall Plate
This commit is contained in:
Federico Guerra
2016-10-06 22:52:46 -07:00
parent 104ce293ce
commit d245b79ed7

View File

@@ -611,6 +611,9 @@ UanPhyGen::RegisterListener (UanPhyListener *listener)
void
UanPhyGen::StartRxPacket (Ptr<Packet> 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: