diff --git a/src/wifi/model/phy-entity.cc b/src/wifi/model/phy-entity.cc index 23b668168..a861159f7 100644 --- a/src/wifi/model/phy-entity.cc +++ b/src/wifi/model/phy-entity.cc @@ -702,9 +702,8 @@ PhyEntity::EndReceivePayload(Ptr event) { const auto ppdu = event->GetPpdu(); const auto& txVector = ppdu->GetTxVector(); - const auto psduDuration = - ppdu->GetTxDuration() - CalculatePhyPreambleAndHeaderDuration(txVector); - NS_LOG_FUNCTION(this << *event << psduDuration); + NS_LOG_FUNCTION( + this << *event << ppdu->GetTxDuration() - CalculatePhyPreambleAndHeaderDuration(txVector)); NS_ASSERT(event->GetEndTime() == Simulator::Now()); const auto staId = GetStaId(ppdu); const auto channelWidthAndBand = GetChannelWidthAndBand(txVector, staId);