Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this constructor was removed in ns3 3.33 - apparently still needed for earlier releases
authorAugustin Degomme <adegomme@users.noreply.github.com>
Mon, 25 Jan 2021 13:45:22 +0000 (14:45 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Mon, 25 Jan 2021 13:45:22 +0000 (14:45 +0100)
src/surf/network_ns3.cpp

index 1e512f3..5fee0f2 100644 (file)
@@ -53,7 +53,11 @@ static int number_of_networks = 1;
 
 /* wifi globals */
 static ns3::WifiHelper wifi;
-static ns3::YansWifiPhyHelper wifiPhy         = ns3::YansWifiPhyHelper::Default();
+#if NS3_MINOR_VERSION < 33
+static ns3::YansWifiPhyHelper wifiPhy = ns3::YansWifiPhyHelper::Default();
+#else
+static ns3::YansWifiPhyHelper wifiPhy;
+#endif
 static ns3::YansWifiChannelHelper wifiChannel = ns3::YansWifiChannelHelper::Default();
 static ns3::WifiMacHelper wifiMac;
 static ns3::MobilityHelper mobility;