|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
24 #include "ns3/packet.h"
26 #include "ns3/ht-capabilities.h"
27 #include "ns3/vht-capabilities.h"
28 #include "ns3/he-capabilities.h"
41 .SetGroupName (
"Wifi")
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Ptr< const Packet > GetPacket(void) const
Get the packet stored in this item.
void AddStationHeCapabilities(Mac48Address from, HeCapabilities heCapabilities)
Records HE capabilities of the remote station.
void SetLinkUpCallback(Callback< void > linkUp) override
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void Receive(Ptr< WifiMacQueueItem > mpdu) override
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has bee...
void SetBssid(Mac48Address bssid)
bool GetHeSupported() const
Return whether the device supports HE.
Wifi MAC high model for an ad-hoc Wifi MAC.
void SetAddress(Mac48Address address) override
Mac48Address GetBssid(void) const override
void SetLinkUpCallback(Callback< void > linkUp) override
base class for all MAC-level wifi objects.
const WifiMacHeader & GetHeader(void) const
Get the header stored in this item.
virtual void DeaggregateAmsduAndForward(Ptr< WifiMacQueueItem > mpdu)
This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack.
void AddAllSupportedModes(Mac48Address address)
Invoked in a STA or AP to store all of the modes supported by a destination which is also supported l...
bool GetQosSupported() const
Return whether the device supports QoS.
void AddAllSupportedMcs(Mac48Address address)
Invoked in a STA or AP to store all of the MCS supported by a destination which is also supported loc...
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Mac48Address GetAddress(void) const override
EdcaQueues m_edca
This is a map from Access Category index to the corresponding channel access function.
bool GetVhtSupported() const
Return whether the device supports VHT.
void SetAddress(Mac48Address address) override
AcIndex QosUtilsMapTidToAc(uint8_t tid)
Maps TID (Traffic ID) to Access classes.
Ptr< Txop > m_txop
This holds a pointer to the TXOP instance for this WifiMac - used for transmission of frames to non-Q...
Ptr< WifiRemoteStationManager > m_stationManager
Remote station manager (rate control, RTS/CTS/fragmentation thresholds etc.)
bool IsBrandNew(Mac48Address address) const
Return whether the station state is brand new.
void SetTypeOfStation(TypeOfStation type) override
This method is invoked by a subclass to specify what type of station it is implementing.
void ForwardUp(Ptr< const Packet > packet, Mac48Address from, Mac48Address to)
Forward the packet up to the device.
void AddStationHtCapabilities(Mac48Address from, HtCapabilities htCapabilities)
Records HT capabilities of the remote station.
void AddStationVhtCapabilities(Mac48Address from, VhtCapabilities vhtCapabilities)
Records VHT capabilities of the remote station.
void RecordDisassociated(Mac48Address address)
Records that the STA was disassociated.
static TypeId GetTypeId(void)
Get the type ID.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities of the device.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities of the device.
Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities of the device.
bool GetHtSupported() const
Return whether the device supports HT.
virtual void Queue(Ptr< Packet > packet, const WifiMacHeader &hdr)
virtual void Receive(Ptr< WifiMacQueueItem > mpdu)
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has bee...
void Enqueue(Ptr< Packet > packet, Mac48Address to) override
uint8_t QosUtilsGetTidForPacket(Ptr< const Packet > packet)
If a QoS tag is attached to the packet, returns a value < 8.