wifi: Fix issue introduced by dba025fe

This commit is contained in:
Stefano Avallone
2021-09-14 14:18:02 +02:00
parent dba025fe6f
commit 40b1edc404

View File

@@ -1764,9 +1764,9 @@ WifiPhy::NotifyMonitorSniffTx (Ptr<const WifiPsdu> 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