From 7a5cd0c637286493293fa236b002fb3ce03e1469 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 21 Apr 2022 13:16:46 +0200 Subject: [PATCH] prepare for next NS3 release --- src/surf/network_ns3.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/surf/network_ns3.cpp b/src/surf/network_ns3.cpp index 1d3e409136..9f8300862e 100644 --- a/src/surf/network_ns3.cpp +++ b/src/surf/network_ns3.cpp @@ -98,8 +98,11 @@ static void zoneCreation_cb(simgrid::s4u::NetZone const& zone) #if NS3_MINOR_VERSION < 32 wifi.SetStandard(ns3::WIFI_PHY_STANDARD_80211n_5GHZ); -#else +#elif NS3_MINOR_VERSION < 36 wifi.SetStandard(ns3::WIFI_STANDARD_80211n_5GHZ); +#else + wifi.SetStandard(ns3::WIFI_STANDARD_80211n); + wifiPhy.Set ("ChannelSettings", StringValue ("{0, 0, WIFI_PHY_BAND_5GHZ, 0}")); #endif std::string ssid = wifizone->get_name(); -- 2.20.1