From 40b1edc40448d4554c45eb9ef80ebf6379950e5b Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Tue, 14 Sep 2021 14:18:02 +0200 Subject: [PATCH] wifi: Fix issue introduced by dba025fe --- src/wifi/model/wifi-phy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index e08d100ac..25191fa63 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -1764,9 +1764,9 @@ WifiPhy::NotifyMonitorSniffTx (Ptr psdu, uint16_t channelFreqMhz for (size_t i = 0; i < nMpdus;) { m_phyMonitorSniffTxTrace (psdu->GetAmpduSubframe (i), channelFreqMhz, txVector, aMpdu, staId); + ++i; + aMpdu.type = (i == (nMpdus - 1)) ? LAST_MPDU_IN_AGGREGATE : MIDDLE_MPDU_IN_AGGREGATE; } - ++i; - aMpdu.type = (i == (nMpdus - 1)) ? LAST_MPDU_IN_AGGREGATE : MIDDLE_MPDU_IN_AGGREGATE; } } else