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();