diff --git a/src/devices/wifi/mac-low.cc b/src/devices/wifi/mac-low.cc index 1f84e38e2..ea9243d21 100644 --- a/src/devices/wifi/mac-low.cc +++ b/src/devices/wifi/mac-low.cc @@ -537,7 +537,7 @@ MacLow::ReceiveOk (Ptr packet, double rxSnr, WifiMode txMode, WifiPreamb { NS_LOG_DEBUG ("receive cts from="<FindFirstMatchingTag (tag); + packet->RemovePacketTag (tag); WifiRemoteStation *station = GetStation (m_currentHdr.GetAddr1 ()); station->ReportRxOk (rxSnr, txMode); station->ReportRtsOk (rxSnr, txMode, tag.Get ()); @@ -560,7 +560,7 @@ MacLow::ReceiveOk (Ptr packet, double rxSnr, WifiMode txMode, WifiPreamb { NS_LOG_DEBUG ("receive ack from="<FindFirstMatchingTag (tag); + packet->RemovePacketTag (tag); WifiRemoteStation *station = GetStation (m_currentHdr.GetAddr1 ()); station->ReportRxOk (rxSnr, txMode); station->ReportDataOk (rxSnr, txMode, tag.Get ()); @@ -1080,7 +1080,7 @@ MacLow::SendCtsAfterRts (Mac48Address source, Time duration, WifiMode rtsTxMode, struct SnrTag tag; tag.Set (rtsSnr); - packet->AddTag (tag); + packet->AddPacketTag (tag); ForwardDown (packet, &cts, ctsTxMode); } @@ -1159,7 +1159,7 @@ MacLow::SendAckAfterData (Mac48Address source, Time duration, WifiMode dataTxMod struct SnrTag tag; tag.Set (dataSnr); - packet->AddTag (tag); + packet->AddPacketTag (tag); ForwardDown (packet, &ack, ackTxMode); }