stop using byte tags
This commit is contained in:
@@ -537,7 +537,7 @@ MacLow::ReceiveOk (Ptr<Packet> packet, double rxSnr, WifiMode txMode, WifiPreamb
|
||||
{
|
||||
NS_LOG_DEBUG ("receive cts from="<<m_currentHdr.GetAddr1 ());
|
||||
SnrTag tag;
|
||||
packet->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> packet, double rxSnr, WifiMode txMode, WifiPreamb
|
||||
{
|
||||
NS_LOG_DEBUG ("receive ack from="<<m_currentHdr.GetAddr1 ());
|
||||
SnrTag tag;
|
||||
packet->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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user