From b5dfd9a838095b4afeb7c450b35e3efe0cddf19b Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 20 Mar 2009 14:30:36 +0100 Subject: [PATCH] stop using byte tags --- src/devices/wifi/mac-low.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); }