src/devices/mesh/dot11s/hwmp-protocol.cc
changeset 6069 c21754b56036
parent 5828 9959ba75ba25
child 6157 e3f238a05acb
equal deleted inserted replaced
6068:a2127017ecb4 6069:c21754b56036
   708       m_interfaces[wifiNetDev->GetIfIndex ()] = hwmpMac;
   708       m_interfaces[wifiNetDev->GetIfIndex ()] = hwmpMac;
   709       mac->InstallPlugin (hwmpMac);
   709       mac->InstallPlugin (hwmpMac);
   710       //Installing airtime link metric:
   710       //Installing airtime link metric:
   711       Ptr<AirtimeLinkMetricCalculator> metric = CreateObject <AirtimeLinkMetricCalculator> ();
   711       Ptr<AirtimeLinkMetricCalculator> metric = CreateObject <AirtimeLinkMetricCalculator> ();
   712       mac->SetLinkMetricCallback (MakeCallback (&AirtimeLinkMetricCalculator::CalculateMetric, metric));
   712       mac->SetLinkMetricCallback (MakeCallback (&AirtimeLinkMetricCalculator::CalculateMetric, metric));
   713       metric->SetPhyStandard (mac->GetPhyStandard ());
       
   714     }
   713     }
   715   mp->SetRoutingProtocol (this);
   714   mp->SetRoutingProtocol (this);
   716   // Mesh point aggregates all installed protocols
   715   // Mesh point aggregates all installed protocols
   717   mp->AggregateObject (this);
   716   mp->AggregateObject (this);
   718   m_address = Mac48Address::ConvertFrom (mp->GetAddress ());// address;
   717   m_address = Mac48Address::ConvertFrom (mp->GetAddress ());// address;