diff --git a/src/lte/helper/lte-helper.cc b/src/lte/helper/lte-helper.cc index a6f1cdfdc..f11ade32f 100644 --- a/src/lte/helper/lte-helper.cc +++ b/src/lte/helper/lte-helper.cc @@ -328,9 +328,6 @@ LteHelper::InstallSingleEnbDevice (Ptr n) Ptr dlPhy = CreateObject (); Ptr ulPhy = CreateObject (); - dlPhy->SetChannel (m_downlinkChannel); - ulPhy->SetChannel (m_uplinkChannel); - Ptr phy = CreateObject (dlPhy, ulPhy); Ptr harq = Create (); @@ -347,6 +344,9 @@ LteHelper::InstallSingleEnbDevice (Ptr n) Ptr pInterf = Create (phy); ulPhy->AddInterferenceDataChunkProcessor (pInterf); // for interference power tracing + dlPhy->SetChannel (m_downlinkChannel); + ulPhy->SetChannel (m_uplinkChannel); + Ptr mm = n->GetObject (); NS_ASSERT_MSG (mm, "MobilityModel needs to be set on node before calling LteHelper::InstallUeDevice ()"); dlPhy->SetMobility (mm); @@ -472,9 +472,6 @@ LteHelper::InstallSingleUeDevice (Ptr n) Ptr dlPhy = CreateObject (); Ptr ulPhy = CreateObject (); - dlPhy->SetChannel (m_downlinkChannel); - ulPhy->SetChannel (m_uplinkChannel); - Ptr phy = CreateObject (dlPhy, ulPhy); Ptr harq = Create (); @@ -494,6 +491,9 @@ LteHelper::InstallSingleUeDevice (Ptr n) Ptr pData = Create (dlPhy); dlPhy->AddDataSinrChunkProcessor (pData); + dlPhy->SetChannel (m_downlinkChannel); + ulPhy->SetChannel (m_uplinkChannel); + Ptr mm = n->GetObject (); NS_ASSERT_MSG (mm, "MobilityModel needs to be set on node before calling LteHelper::InstallUeDevice ()"); dlPhy->SetMobility (mm);