View | Details | Raw Unified | Return to bug 2492
Collapse All | Expand All

(-)a/src/uan/model/uan-phy-gen.cc (+3 lines)
 Lines 608-619    Link Here 
608
}
608
}
609
609
610
610
611
void
611
void
612
UanPhyGen::StartRxPacket (Ptr<Packet> pkt, double rxPowerDb, UanTxMode txMode, UanPdp pdp)
612
UanPhyGen::StartRxPacket (Ptr<Packet> pkt, double rxPowerDb, UanTxMode txMode, UanPdp pdp)
613
{
613
{
614
  rxPowerDb += GetRxGainDb ();
615
  NS_LOG_DEBUG ("PHY " << m_mac->GetAddress () << ": rx power after RX gain = " << rxPowerDb << " db re uPa");
616
614
  switch (m_state)
617
  switch (m_state)
615
    {
618
    {
616
    case DISABLED:
619
    case DISABLED:
617
      NS_LOG_DEBUG ("Energy depleted, node cannot receive any packet. Dropping.");
620
      NS_LOG_DEBUG ("Energy depleted, node cannot receive any packet. Dropping.");
618
      NotifyRxDrop(pkt);    // traced source netanim
621
      NotifyRxDrop(pkt);    // traced source netanim
619
      return;
622
      return;

Return to bug 2492