src/helper/wifi-helper.cc
changeset 3553 065488d0420c
parent 3073 387c041695cd
child 3786 9f384deadb46
equal deleted inserted replaced
3552:b822851cb95d 3553:065488d0420c
   191 }
   191 }
   192 
   192 
   193 void 
   193 void 
   194 WifiHelper::EnableAscii (std::ostream &os, uint32_t nodeid, uint32_t deviceid)
   194 WifiHelper::EnableAscii (std::ostream &os, uint32_t nodeid, uint32_t deviceid)
   195 {
   195 {
   196     Packet::EnableMetadata ();
   196   Packet::EnablePrinting ();
   197   std::ostringstream oss;
   197   std::ostringstream oss;
   198   oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/RxOk";
   198   oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/RxOk";
   199   Config::Connect (oss.str (), MakeBoundCallback (&AsciiPhyRxOkEvent, &os));
   199   Config::Connect (oss.str (), MakeBoundCallback (&AsciiPhyRxOkEvent, &os));
   200   oss.str ("");
   200   oss.str ("");
   201   oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/Tx";
   201   oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/Tx";