diff --git a/examples/wireless/examples-to-run.py b/examples/wireless/examples-to-run.py index dbefabcf3..2e2683c37 100755 --- a/examples/wireless/examples-to-run.py +++ b/examples/wireless/examples-to-run.py @@ -160,7 +160,7 @@ cpp_examples = [ "True", ), ( - "wifi-eht-network --simulationTime=0.1 --frequency=2.4 --useRts=1 --minExpectedThroughput=6 --maxExpectedThroughput=240", + "wifi-eht-network --simulationTime=0.1 --frequency=2.4 --useRts=1 --minExpectedThroughput=5 --maxExpectedThroughput=240", "True", "True", ), diff --git a/src/wifi/model/ht/ht-frame-exchange-manager.cc b/src/wifi/model/ht/ht-frame-exchange-manager.cc index 0102b1eca..a9dbb3b53 100644 --- a/src/wifi/model/ht/ht-frame-exchange-manager.cc +++ b/src/wifi/model/ht/ht-frame-exchange-manager.cc @@ -27,6 +27,7 @@ #include "ns3/recipient-block-ack-agreement.h" #include "ns3/snr-tag.h" #include "ns3/sta-wifi-mac.h" +#include "ns3/vht-configuration.h" #include "ns3/wifi-mac-queue.h" #include "ns3/wifi-utils.h" @@ -109,7 +110,7 @@ HtFrameExchangeManager::NeedSetupBlockAck(Mac48Address recipient, uint8_t tid) Ptr qosTxop = m_mac->GetQosTxop(tid); bool establish; - if (!GetWifiRemoteStationManager()->GetHtSupported(recipient)) + if (!m_mac->GetHtSupported(recipient)) { establish = false; } @@ -126,7 +127,7 @@ HtFrameExchangeManager::NeedSetupBlockAck(Mac48Address recipient, uint8_t tid) ((qosTxop->GetBlockAckThreshold() > 0 && packets >= qosTxop->GetBlockAckThreshold()) || (m_mpduAggregator->GetMaxAmpduSize(recipient, tid, WIFI_MOD_CLASS_HT) > 0 && packets > 1) || - GetWifiRemoteStationManager()->GetVhtSupported()); + m_mac->GetVhtConfiguration()); } NS_LOG_FUNCTION(this << recipient << +tid << establish);