src/spectrum/helper/spectrum-helper.cc
changeset 7553 2b93d333dea6
parent 7343 b3e668a5949c
equal deleted inserted replaced
7552:97606ed04882 7553:2b93d333dea6
   213 SpectrumPhyHelper::Create (Ptr<Node> node, Ptr<NetDevice> device) const
   213 SpectrumPhyHelper::Create (Ptr<Node> node, Ptr<NetDevice> device) const
   214 {
   214 {
   215   NS_ASSERT (m_channel);
   215   NS_ASSERT (m_channel);
   216   Ptr<SpectrumPhy> phy = (m_phy.Create ())->GetObject<SpectrumPhy> ();
   216   Ptr<SpectrumPhy> phy = (m_phy.Create ())->GetObject<SpectrumPhy> ();
   217   phy->SetChannel (m_channel);
   217   phy->SetChannel (m_channel);
   218   phy->SetMobility (node);
   218   phy->SetMobility (node->GetObject<MobilityModel> ());
   219   phy->SetDevice (device);
   219   phy->SetDevice (device);
   220   return phy;
   220   return phy;
   221 }
   221 }
   222 
   222 
   223 
   223