diff --git a/examples/wireless/examples-to-run.py b/examples/wireless/examples-to-run.py index 5de08fb3c..1a4cf9a9d 100755 --- a/examples/wireless/examples-to-run.py +++ b/examples/wireless/examples-to-run.py @@ -195,7 +195,7 @@ cpp_examples = [ "True", ), ( - "wifi-eht-network --simulationTime=0.25s --udp=0 --downlink=0 --useRts=0 --nStations=4 --dlAckType=AGGR-MU-BAR --enableUlOfdma=1 --enableBsrp=1 --mpduBufferSize=1024 --mcs=7 --muSchedAccessReqInterval=45ms --frequency2=6 --minExpectedThroughput=70 --maxExpectedThroughput=550", + "wifi-eht-network --simulationTime=0.25s --udp=0 --downlink=0 --useRts=0 --nStations=4 --dlAckType=AGGR-MU-BAR --enableUlOfdma=1 --enableBsrp=1 --mpduBufferSize=1024 --mcs=8 --muSchedAccessReqInterval=45ms --frequency2=6 --minExpectedThroughput=50 --maxExpectedThroughput=550", "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 47517d3e4..7e6ca58ca 100644 --- a/src/wifi/model/ht/ht-frame-exchange-manager.cc +++ b/src/wifi/model/ht/ht-frame-exchange-manager.cc @@ -1096,7 +1096,8 @@ HtFrameExchangeManager::FinalizeMacHeader(Ptr psdu) // set the Queue Size subfield of the QoS Control field if (!queueSizeForTid[tid].has_value()) { - queueSizeForTid[tid] = edca->GetQosQueueSize(tid, hdr.GetAddr1()); + queueSizeForTid[tid] = + edca->GetQosQueueSize(tid, mpdu->GetOriginal()->GetHeader().GetAddr1()); } hdr.SetQosEosp(); diff --git a/src/wifi/model/qos-frame-exchange-manager.cc b/src/wifi/model/qos-frame-exchange-manager.cc index 713f76fd6..d0e16d98d 100644 --- a/src/wifi/model/qos-frame-exchange-manager.cc +++ b/src/wifi/model/qos-frame-exchange-manager.cc @@ -555,7 +555,9 @@ QosFrameExchangeManager::ForwardMpduDown(Ptr mpdu, WifiTxVector& txVec { uint8_t tid = hdr.GetQosTid(); hdr.SetQosEosp(); - hdr.SetQosQueueSize(m_mac->GetQosTxop(tid)->GetQosQueueSize(tid, hdr.GetAddr1())); + hdr.SetQosQueueSize( + m_mac->GetQosTxop(tid)->GetQosQueueSize(tid, + mpdu->GetOriginal()->GetHeader().GetAddr1())); } FrameExchangeManager::ForwardMpduDown(mpdu, txVector); }