diff --git a/bindings/python/ns3_module_helper.py b/bindings/python/ns3_module_helper.py index a9cb2518a..926fbd154 100644 --- a/bindings/python/ns3_module_helper.py +++ b/bindings/python/ns3_module_helper.py @@ -857,6 +857,11 @@ def register_Ns3WifiHelper_methods(root_module, cls): 'ns3::NetDeviceContainer', [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::NodeContainer', 'c')], is_const=True) + ## wifi-helper.h: ns3::NetDeviceContainer ns3::WifiHelper::Install(ns3::WifiPhyHelper const & phy, ns3::Ptr node) const [member function] + cls.add_method('Install', + 'ns3::NetDeviceContainer', + [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::Ptr< ns3::Node >', 'node')], + is_const=True) return def register_Ns3WifiPhyHelper_methods(root_module, cls): diff --git a/src/helper/wifi-helper.cc b/src/helper/wifi-helper.cc index ad1064567..0e06504eb 100644 --- a/src/helper/wifi-helper.cc +++ b/src/helper/wifi-helper.cc @@ -121,6 +121,11 @@ WifiHelper::Install (const WifiPhyHelper &phyHelper, NodeContainer c) const } return devices; } +NetDeviceContainer +WifiHelper::Install (const WifiPhyHelper &phy, Ptr node) const +{ + return Install (phy, NodeContainer (node)); +} } // namespace ns3 diff --git a/src/helper/wifi-helper.h b/src/helper/wifi-helper.h index b2eed5caf..1b292d981 100644 --- a/src/helper/wifi-helper.h +++ b/src/helper/wifi-helper.h @@ -118,6 +118,7 @@ public: std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ()); NetDeviceContainer Install (const WifiPhyHelper &phy, NodeContainer c) const; + NetDeviceContainer Install (const WifiPhyHelper &phy, Ptr node) const; private: ObjectFactory m_stationManager;