wifi: Avoid unnecessary GetObject in YansWifiChannel::Send
This commit is contained in:
@@ -76,7 +76,7 @@ YansWifiChannel::SetPropagationDelayModel (Ptr<PropagationDelayModel> delay)
|
||||
void
|
||||
YansWifiChannel::Send (Ptr<YansWifiPhy> sender, Ptr<const Packet> packet, double txPowerDbm, Time duration) const
|
||||
{
|
||||
Ptr<MobilityModel> senderMobility = sender->GetMobility ()->GetObject<MobilityModel> ();
|
||||
Ptr<MobilityModel> senderMobility = sender->GetMobility ();
|
||||
NS_ASSERT (senderMobility != 0);
|
||||
uint32_t j = 0;
|
||||
for (PhyList::const_iterator i = m_phyList.begin (); i != m_phyList.end (); i++, j++)
|
||||
|
||||
Reference in New Issue
Block a user