From 0d7b205e2b6bcee058760225d0bebc0da0ecaefb Mon Sep 17 00:00:00 2001 From: adrien gougeon Date: Fri, 25 Sep 2020 16:56:08 +0200 Subject: [PATCH] active probing return to default value for STA nodes --- src/surf/network_ns3.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/surf/network_ns3.cpp b/src/surf/network_ns3.cpp index 42714294f4..4494cd21e1 100644 --- a/src/surf/network_ns3.cpp +++ b/src/surf/network_ns3.cpp @@ -103,6 +103,7 @@ std::unordered_map WifiZone::wifi_zones; static void initialize_ns3_wifi() { wifi.SetStandard (ns3::WIFI_PHY_STANDARD_80211n_5GHZ); + for (auto host : simgrid::s4u::Engine::get_instance()->get_all_hosts()) { const char* wifi_link = host->get_property("wifi_link"); const char* wifi_mcs = host->get_property("wifi_mcs"); @@ -606,8 +607,8 @@ void ns3_add_direct_route(NetPointNs3* src, NetPointNs3* dst, double bw, double wifiPhy.Set("MaxSupportedRxSpatialStreams", ns3::UintegerValue(zone->get_nss())); wifiMac.SetType ("ns3::StaWifiMac", - "Ssid", ns3::SsidValue(link_name), - "ActiveProbing", ns3::BooleanValue(false)); + "Ssid", ns3::SsidValue(link_name)); + //~ "ActiveProbing", ns3::BooleanValue(false)); netA.Add(wifi.Install (wifiPhy, wifiMac, staNode)); -- 2.20.1