From 4cbc131aa4caf8209cc09fed472d73ccf9c57ac0 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Tue, 15 Feb 2022 15:30:05 -0800 Subject: [PATCH] wifi: (#470 postfix) Align third-distributed.cc Wi-Fi config with third.cc --- src/mpi/examples/third-distributed.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/mpi/examples/third-distributed.cc b/src/mpi/examples/third-distributed.cc index 7b82b2c28..c3fba6c1a 100644 --- a/src/mpi/examples/third-distributed.cc +++ b/src/mpi/examples/third-distributed.cc @@ -163,22 +163,20 @@ main (int argc, char *argv[]) YansWifiPhyHelper phy; phy.SetChannel (channel.Create ()); - WifiHelper wifi; - wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); - WifiMacHelper mac; Ssid ssid = Ssid ("ns-3-ssid"); + + WifiHelper wifi; + + NetDeviceContainer staDevices; mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false)); - - NetDeviceContainer staDevices; staDevices = wifi.Install (phy, mac, wifiStaNodes); + NetDeviceContainer apDevices; mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); - - NetDeviceContainer apDevices; apDevices = wifi.Install (phy, mac, wifiApNode); MobilityHelper mobility;