diff --git a/bindings/python/ns3_module_helper.py b/bindings/python/ns3_module_helper.py index cb0fa831c..3e87ff1f5 100644 --- a/bindings/python/ns3_module_helper.py +++ b/bindings/python/ns3_module_helper.py @@ -1097,11 +1097,11 @@ def register_Ns3WifiHelper_methods(root_module, cls): 'ns3::NetDeviceContainer', [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::WifiMacHelper const &', 'mac'), param('std::string', 'nodeName')], is_const=True) - ## wifi-helper.h: void ns3::WifiHelper::WifiLogComponentEnable() const [member function] - cls.add_method('WifiLogComponentEnable', + ## wifi-helper.h: static void ns3::WifiHelper::EnableLogComponents() [member function] + cls.add_method('EnableLogComponents', 'void', [], - is_const=True) + is_static=True) return def register_Ns3WifiMacHelper_methods(root_module, cls): diff --git a/src/helper/wifi-helper.cc b/src/helper/wifi-helper.cc index 41aeb5e3e..0b0ebe959 100644 --- a/src/helper/wifi-helper.cc +++ b/src/helper/wifi-helper.cc @@ -118,7 +118,7 @@ WifiHelper::Install (const WifiPhyHelper &phy, } void -WifiHelper::WifiLogComponentEnable (void) const +WifiHelper::EnableLogComponents (void) { LogComponentEnable ("Aarfcd", LOG_LEVEL_ALL); LogComponentEnable ("AdhocWifiMac", LOG_LEVEL_ALL); diff --git a/src/helper/wifi-helper.h b/src/helper/wifi-helper.h index 7331ee88a..04648dfa8 100644 --- a/src/helper/wifi-helper.h +++ b/src/helper/wifi-helper.h @@ -158,7 +158,7 @@ public: /** * Helper to enable all WifiNetDevice log components with one statement */ - void WifiLogComponentEnable (void) const; + static void EnableLogComponents (void); private: ObjectFactory m_stationManager;