#cmakedefine01 SIMGRID_HAVE_MC
/* Was the ns-3 support compiled in? */
#cmakedefine01 SIMGRID_HAVE_NS3
-
+#cmakedefine NS3_MINOR_VERSION @NS3_MINOR_VERSION@
#endif /* SIMGRID_PUBLIC_CONFIG_H */
simgrid::kernel::routing::WifiZone* wifizone = dynamic_cast<simgrid::kernel::routing::WifiZone*> (zone.get_impl());
if (wifizone == nullptr) return;
+#if NS3_MINOR_VERSION < 32
wifi.SetStandard(ns3::WIFI_PHY_STANDARD_80211n_5GHZ);
+#else
+ wifi.SetStandard(ns3::WIFI_STANDARD_80211n_5GHZ);
+#endif
std::string ssid = wifizone->get_name();
const char* mcs = wifizone->get_property("mcs");
endif()
string(REGEX REPLACE ".*ns([.0-9]+)-core.*" "\\1" NS3_VERSION "${NS3_LIBRARIES}")
+ string(REGEX REPLACE "3.([.0-9]+)" "\\1" NS3_MINOR_VERSION "${NS3_VERSION}")
get_filename_component(NS3_LIBRARY_PATH "${NS3_LIBRARIES}" PATH)
# Compute NS3_PATH