wifi: (fixes #470) Update default Wi-Fi standard to 802.11ax
This commit is contained in:
@@ -99,22 +99,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;
|
||||
|
||||
@@ -93,12 +93,11 @@ channel = ns.wifi.YansWifiChannelHelper.Default()
|
||||
phy = ns.wifi.YansWifiPhyHelper()
|
||||
phy.SetChannel(channel.Create())
|
||||
|
||||
wifi = ns.wifi.WifiHelper()
|
||||
wifi.SetRemoteStationManager("ns3::AarfWifiManager")
|
||||
|
||||
mac = ns.wifi.WifiMacHelper()
|
||||
ssid = ns.wifi.Ssid ("ns-3-ssid")
|
||||
|
||||
wifi = ns.wifi.WifiHelper()
|
||||
|
||||
mac.SetType ("ns3::StaWifiMac", "Ssid", ns.wifi.SsidValue(ssid), "ActiveProbing", ns.core.BooleanValue(False))
|
||||
staDevices = wifi.Install(phy, mac, wifiStaNodes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user