25 #include "ns3/fatal-error.h"
62 return (os <<
"DOWNLINK");
64 return (os <<
"UPLINK");
66 return (os <<
"BOTH_DIRECTIONS");
69 return (os <<
"INVALID");
134 uint32_t
GetMuBarSize(std::list<BlockAckReqType> types);
155 bool IsInWindow(uint16_t seq, uint16_t winstart, uint16_t winsize);
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static constexpr uint16_t SEQNO_SPACE_HALF_SIZE
Size of the half the space of sequence numbers (used to determine old packets)
double RatioToDb(double ratio)
Convert from ratio to dB.
double WToDbm(double w)
Convert from Watts to dBm.
uint32_t GetRtsSize()
Return the total RTS size (including FCS trailer).
double DbmToW(double dBm)
Convert from dBm to Watts.
uint32_t GetBlockAckRequestSize(BlockAckReqType type)
Return the total BlockAckRequest size (including FCS trailer).
static constexpr uint8_t SINGLE_LINK_OP_ID
Link ID for single link operations (helps tracking places where correct link ID is to be used to supp...
uint32_t GetMuBarSize(std::list< BlockAckReqType > types)
Return the total MU-BAR size (including FCS trailer).
WifiDirection
Wifi direction.
static constexpr uint16_t SEQNO_SPACE_SIZE
Size of the space of sequence numbers.
bool TidToLinkMappingValidForNegType1(const WifiTidLinkMapping &dlLinkMapping, const WifiTidLinkMapping &ulLinkMapping)
Check if the given TID-to-Link Mappings are valid for a negotiation type of 1.
uint32_t GetBlockAckSize(BlockAckType type)
Return the total BlockAck size (including FCS trailer).
void AddWifiMacTrailer(Ptr< Packet > packet)
Add FCS trailer to a packet.
static constexpr uint8_t WIFI_LINKID_UNDEFINED
Invalid link identifier.
std::map< uint8_t, std::set< uint8_t > > WifiTidLinkMapping
TID-indexed map of the link set to which the TID is mapped.
uint32_t GetAckSize()
Return the total Ack size (including FCS trailer).
std::ostream & operator<<(std::ostream &os, const Angles &a)
uint32_t GetSize(Ptr< const Packet > packet, const WifiMacHeader *hdr, bool isAmpdu)
Return the total size of the packet after WifiMacHeader and FCS trailer have been added.
double DbToRatio(double dB)
Convert from dB to ratio.
uint32_t GetCtsSize()
Return the total CTS size (including FCS trailer).
bool IsInWindow(uint16_t seq, uint16_t winstart, uint16_t winsize)
The different BlockAckRequest variants.
The different BlockAck variants.