src/devices/wifi/edca-txop-n.cc
changeset 5952 0588b01cd77e
parent 5906 509b5089a081
child 5953 9e400f6b8a2c
--- a/src/devices/wifi/edca-txop-n.cc	Wed Feb 03 20:34:49 2010 +0100
+++ b/src/devices/wifi/edca-txop-n.cc	Wed Feb 03 20:34:49 2010 +0100
@@ -687,4 +687,16 @@
   m_aggregator = aggr;
 }
 
+void
+EdcaTxopN::PushFront (Ptr<const Packet> packet, const WifiMacHeader &hdr)
+{
+  NS_LOG_FUNCTION (this << packet << &hdr);
+  WifiMacTrailer fcs;
+  uint32_t fullPacketSize = hdr.GetSerializedSize () + packet->GetSize () + fcs.GetSerializedSize ();
+  WifiRemoteStation *station = GetStation (hdr.GetAddr1 ());
+  station->PrepareForQueue (packet, fullPacketSize);
+  m_queue->PushFront (packet, hdr);
+  StartAccessIfNeeded ();
+}
+
 } //namespace ns3