Config::ConnectWithoutContext ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/RxOk"
, MakeCallback (&PacketRxOk));
Config::ConnectWithoutContext ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/State"
, MakeCallback (&PhyStateTracer));
The second may be called "wave device",which will implement 802.11p, 1609.4 currently, and 1609.3 in the future. The device is the object of ns3::WaveNetDevice. So if you want to trace these events, you shall use code like uncommented by ns3user.cc
If you find any issue, you can remind me :)
Thanks.
Junling
Config::ConnectWithoutContext ("/NodeList/0/DeviceList/0/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/RxOk", MakeCallback (&PacketRxOk));
Config::ConnectWithoutContext ("/NodeList/0/DeviceList/0/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/State/RxOk", MakeCallback (&PacketRxOk));