examples: Fix broken python examples after wifi api cleanup

This commit is contained in:
Sébastien Deronne
2018-01-24 12:51:57 +01:00
parent 51fa9e6142
commit 8c6d28009b
3 changed files with 3 additions and 3 deletions

View File

@@ -257,7 +257,7 @@ def main(argv):
# Create another ad hoc network and devices
#
ssid = ns.wifi.Ssid('wifi-infra' + str(i))
wifiInfra = ns.wifi.WifiHelper.Default()
wifiInfra = ns.wifi.WifiHelper()
wifiPhy.SetChannel(wifiChannel.Create())
wifiInfra.SetRemoteStationManager('ns3::ArfWifiManager')
macInfra = ns.wifi.WifiMacHelper();

View File

@@ -104,7 +104,7 @@ def main(argv):
# disable fragmentation
ns.core.Config.SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", ns.core.StringValue("2200"))
wifi = ns.wifi.WifiHelper.Default()
wifi = ns.wifi.WifiHelper()
mobility = ns.mobility.MobilityHelper()
stas = ns.network.NodeContainer()
ap = ns.network.NodeContainer()

View File

@@ -49,7 +49,7 @@ def main(argv):
cmd.Parse(argv)
wifi = ns.wifi.WifiHelper.Default()
wifi = ns.wifi.WifiHelper()
wifiMac = ns.wifi.WifiMacHelper()
wifiPhy = ns.wifi.YansWifiPhyHelper.Default()
wifiChannel = ns.wifi.YansWifiChannelHelper.Default()