examples: remove useless wifi settings in wireless examples
This commit is contained in:
@@ -262,15 +262,13 @@ def main(argv):
|
||||
wifiInfra.SetRemoteStationManager('ns3::ArfWifiManager')
|
||||
macInfra = ns.wifi.WifiMacHelper();
|
||||
macInfra.SetType("ns3::StaWifiMac",
|
||||
"Ssid", ns.wifi.SsidValue(ssid),
|
||||
"ActiveProbing", ns.core.BooleanValue(False))
|
||||
"Ssid", ns.wifi.SsidValue(ssid))
|
||||
|
||||
# setup stas
|
||||
staDevices = wifiInfra.Install(wifiPhy, macInfra, stas)
|
||||
# setup ap.
|
||||
macInfra.SetType("ns3::ApWifiMac",
|
||||
"Ssid", ns.wifi.SsidValue(ssid),
|
||||
"BeaconGeneration", ns.core.BooleanValue(True),
|
||||
"BeaconInterval", ns.core.TimeValue(ns.core.Seconds(2.5)))
|
||||
apDevices = wifiInfra.Install(wifiPhy, macInfra, backbone.Get(i))
|
||||
# Collect all of these new devices
|
||||
|
||||
@@ -128,13 +128,11 @@ def main(argv):
|
||||
|
||||
# setup stas.
|
||||
wifiMac.SetType("ns3::StaWifiMac",
|
||||
"Ssid", ns.wifi.SsidValue(ssid),
|
||||
"ActiveProbing", ns.core.BooleanValue(False))
|
||||
"Ssid", ns.wifi.SsidValue(ssid))
|
||||
staDevs = wifi.Install(wifiPhy, wifiMac, stas)
|
||||
# setup ap.
|
||||
wifiMac.SetType("ns3::ApWifiMac",
|
||||
"Ssid", ns.wifi.SsidValue(ssid),
|
||||
"BeaconGeneration", ns.core.BooleanValue(True),
|
||||
"BeaconInterval", ns.core.TimeValue(ns.core.Seconds(2.5)))
|
||||
wifi.Install(wifiPhy, wifiMac, ap)
|
||||
|
||||
|
||||
@@ -123,8 +123,7 @@ int main (int argc, char *argv[])
|
||||
wifi.SetRemoteStationManager ("ns3::" + staRaa + "WifiManager");
|
||||
|
||||
mac.SetType ("ns3::StaWifiMac",
|
||||
"Ssid", SsidValue (ssid),
|
||||
"ActiveProbing", BooleanValue (false));
|
||||
"Ssid", SsidValue (ssid));
|
||||
|
||||
NetDeviceContainer staDevice;
|
||||
staDevice = wifi.Install (phy, mac, wifiStaNode);
|
||||
|
||||
@@ -415,8 +415,7 @@ int main (int argc, char *argv[])
|
||||
if (wifiType == "ns3::YansWifiPhy")
|
||||
{
|
||||
mac.SetType ("ns3::StaWifiMac",
|
||||
"Ssid", SsidValue (ssid),
|
||||
"ActiveProbing", BooleanValue (false));
|
||||
"Ssid", SsidValue (ssid));
|
||||
staDevice = wifi.Install (phy, mac, wifiStaNode);
|
||||
mac.SetType ("ns3::ApWifiMac",
|
||||
"Ssid", SsidValue (ssid));
|
||||
@@ -426,8 +425,7 @@ int main (int argc, char *argv[])
|
||||
else if (wifiType == "ns3::SpectrumWifiPhy")
|
||||
{
|
||||
mac.SetType ("ns3::StaWifiMac",
|
||||
"Ssid", SsidValue (ssid),
|
||||
"ActiveProbing", BooleanValue (false));
|
||||
"Ssid", SsidValue (ssid));
|
||||
staDevice = wifi.Install (spectrumPhy, mac, wifiStaNode);
|
||||
mac.SetType ("ns3::ApWifiMac",
|
||||
"Ssid", SsidValue (ssid));
|
||||
|
||||
@@ -441,8 +441,7 @@ int main (int argc, char *argv[])
|
||||
if (wifiType == "ns3::YansWifiPhy")
|
||||
{
|
||||
mac.SetType ("ns3::StaWifiMac",
|
||||
"Ssid", SsidValue (ssid),
|
||||
"ActiveProbing", BooleanValue (false));
|
||||
"Ssid", SsidValue (ssid));
|
||||
staDevice = wifi.Install (phy, mac, wifiStaNode);
|
||||
mac.SetType ("ns3::ApWifiMac",
|
||||
"Ssid", SsidValue (ssid));
|
||||
@@ -452,8 +451,7 @@ int main (int argc, char *argv[])
|
||||
else if (wifiType == "ns3::SpectrumWifiPhy")
|
||||
{
|
||||
mac.SetType ("ns3::StaWifiMac",
|
||||
"Ssid", SsidValue (ssid),
|
||||
"ActiveProbing", BooleanValue (false));
|
||||
"Ssid", SsidValue (ssid));
|
||||
staDevice = wifi.Install (spectrumPhy, mac, wifiStaNode);
|
||||
mac.SetType ("ns3::ApWifiMac",
|
||||
"Ssid", SsidValue (ssid));
|
||||
|
||||
@@ -614,8 +614,7 @@ int main (int argc, char *argv[])
|
||||
if (wifiType == "ns3::YansWifiPhy")
|
||||
{
|
||||
mac.SetType ("ns3::StaWifiMac",
|
||||
"Ssid", SsidValue (ssid),
|
||||
"ActiveProbing", BooleanValue (false));
|
||||
"Ssid", SsidValue (ssid));
|
||||
staDevice = wifi.Install (phy, mac, wifiStaNode);
|
||||
mac.SetType ("ns3::ApWifiMac",
|
||||
"Ssid", SsidValue (ssid));
|
||||
@@ -625,8 +624,7 @@ int main (int argc, char *argv[])
|
||||
else if (wifiType == "ns3::SpectrumWifiPhy")
|
||||
{
|
||||
mac.SetType ("ns3::StaWifiMac",
|
||||
"Ssid", SsidValue (ssid),
|
||||
"ActiveProbing", BooleanValue (false));
|
||||
"Ssid", SsidValue (ssid));
|
||||
staDevice = wifi.Install (spectrumPhy, mac, wifiStaNode);
|
||||
mac.SetType ("ns3::ApWifiMac",
|
||||
"Ssid", SsidValue (ssid));
|
||||
|
||||
Reference in New Issue
Block a user