src/devices/wifi/mac-low.cc
changeset 6341 375d70f07323
parent 6331 eee2eab36748
child 6488 0acf7562923c
equal deleted inserted replaced
6340:fe24c9edacb6 6341:375d70f07323
  1399   Ptr<Packet> packet = Create<Packet> ();
  1399   Ptr<Packet> packet = Create<Packet> ();
  1400   packet->AddHeader (cts);
  1400   packet->AddHeader (cts);
  1401   WifiMacTrailer fcs;
  1401   WifiMacTrailer fcs;
  1402   packet->AddTrailer (fcs);
  1402   packet->AddTrailer (fcs);
  1403 
  1403 
  1404   struct SnrTag tag;
  1404   SnrTag tag;
  1405   tag.Set (rtsSnr);
  1405   tag.Set (rtsSnr);
  1406   packet->AddPacketTag (tag);
  1406   packet->AddPacketTag (tag);
  1407 
  1407 
  1408   ForwardDown (packet, &cts, ctsTxMode);
  1408   ForwardDown (packet, &cts, ctsTxMode);
  1409 }
  1409 }
  1478   Ptr<Packet> packet = Create<Packet> ();
  1478   Ptr<Packet> packet = Create<Packet> ();
  1479   packet->AddHeader (ack);
  1479   packet->AddHeader (ack);
  1480   WifiMacTrailer fcs;
  1480   WifiMacTrailer fcs;
  1481   packet->AddTrailer (fcs);
  1481   packet->AddTrailer (fcs);
  1482 
  1482 
  1483   struct SnrTag tag;
  1483   SnrTag tag;
  1484   tag.Set (dataSnr);
  1484   tag.Set (dataSnr);
  1485   packet->AddPacketTag (tag);
  1485   packet->AddPacketTag (tag);
  1486 
  1486 
  1487   ForwardDown (packet, &ack, ackTxMode);
  1487   ForwardDown (packet, &ack, ackTxMode);
  1488 }
  1488 }