Skip to content

Commit

Permalink
wifi: Fix documentation on WifiPhy traces
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow5634 authored and tomhenderson committed Jan 26, 2025
1 parent a1e5d6f commit ca702cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/wifi/model/wifi-phy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ WifiPhy::GetTypeId()
"Trace source indicating a packet "
"has been dropped by the device during reception",
MakeTraceSourceAccessor(&WifiPhy::m_phyRxDropTrace),
"ns3::Packet::TracedCallback")
"ns3::WifiPhy::PhyRxDropTracedCallback")
.AddTraceSource("PhyRxPpduDrop",
"Trace source indicating a ppdu "
"has been dropped by the device during reception",
Expand Down
15 changes: 12 additions & 3 deletions src/wifi/model/wifi-phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -746,14 +746,23 @@ class WifiPhy : public Object
typedef void (*PhyRxPayloadBeginTracedCallback)(WifiTxVector txVector, Time psduDuration);

/**
* TracedCallback signature for start of PSDU reception events.
* TracedCallback signature for PhyRxPpduDrop trace source.
*
* @param txVector the TXVECTOR decoded from the PHY header
* @param psduDuration the duration of the PSDU
* @param ppdu the ppdu being received
* @param reason the reason the ppdu was dropped
*/
typedef void (*PhyRxPpduDropTracedCallback)(Ptr<const WifiPpdu> ppdu,
WifiPhyRxfailureReason reason);

/**
* TracedCallback signature for PhyRxDrop trace source.
*
* @param packet the packet being received
* @param reason the reason the packet was dropped
*/
typedef void (*PhyRxDropTracedCallback)(Ptr<const Packet> packet,
WifiPhyRxfailureReason reason);

/**
* TracedCallback signature for end of MAC header reception events.
*
Expand Down

0 comments on commit ca702cf

Please sign in to comment.