A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::WifiMac Class Referenceabstract

base class for all MAC-level wifi objects. More...

#include "wifi-mac.h"

+ Inheritance diagram for ns3::WifiMac:
+ Collaboration diagram for ns3::WifiMac:

Classes

struct  LinkEntity
 Structure holding information specific to a single link. More...
 

Public Types

typedef Callback< void, Ptr< const Packet >, Mac48Address, Mac48AddressForwardUpCallback
 This type defines the callback of a higher layer that a WifiMac(-derived) object invokes to pass a packet up the stack.
 
using OriginatorAgreementOptConstRef = std::optional< std::reference_wrapper< const OriginatorBlockAckAgreement > >
 optional const reference to OriginatorBlockAckAgreement
 
using RecipientAgreementOptConstRef = std::optional< std::reference_wrapper< const RecipientBlockAckAgreement > >
 optional const reference to RecipientBlockAckAgreement
 

Public Member Functions

 WifiMac ()
 
 WifiMac (const WifiMac &)=delete
 
 ~WifiMac () override
 
void BlockUnicastTxOnLinks (WifiQueueBlockedReason reason, const Mac48Address &address, const std::set< uint8_t > &linkIds)
 Block the transmission on the given links of all unicast frames addressed to the station with the given address for the given reason.
 
virtual bool CanForwardPacketsTo (Mac48Address to) const =0
 Return true if packets can be forwarded to the given destination, false otherwise.
 
virtual void ConfigureStandard (WifiStandard standard)
 
virtual void Enqueue (Ptr< Packet > packet, Mac48Address to)=0
 
virtual void Enqueue (Ptr< Packet > packet, Mac48Address to, Mac48Address from)
 
Mac48Address GetAddress () const
 
OriginatorAgreementOptConstRef GetBaAgreementEstablishedAsOriginator (Mac48Address recipient, uint8_t tid) const
 
RecipientAgreementOptConstRef GetBaAgreementEstablishedAsRecipient (Mac48Address originator, uint8_t tid) const
 
BlockAckReqType GetBarTypeAsOriginator (const Mac48Address &recipient, uint8_t tid) const
 
BlockAckReqType GetBarTypeAsRecipient (Mac48Address originator, uint8_t tid) const
 
BlockAckType GetBaTypeAsOriginator (const Mac48Address &recipient, uint8_t tid) const
 
BlockAckType GetBaTypeAsRecipient (Mac48Address originator, uint8_t tid) const
 
Mac48Address GetBssid (uint8_t linkId) const
 
Ptr< ChannelAccessManagerGetChannelAccessManager (uint8_t linkId=SINGLE_LINK_OP_ID) const
 Get the Channel Access Manager associated with the given link.
 
Ptr< WifiNetDeviceGetDevice () const
 Return the device this PHY is associated with.
 
bool GetDsssSupported (uint8_t linkId) const
 Return whether the device supports DSSS on the given link.
 
EhtCapabilities GetEhtCapabilities (uint8_t linkId) const
 Return the EHT capabilities of the device for the given link.
 
Ptr< EhtConfigurationGetEhtConfiguration () const
 
bool GetEhtSupported () const
 Return whether the device supports EHT.
 
bool GetEhtSupported (const Mac48Address &address) const
 
bool GetErpSupported (uint8_t linkId) const
 Return whether the device supports ERP on the given link.
 
ExtendedCapabilities GetExtendedCapabilities () const
 Return the extended capabilities of the device.
 
Ptr< FrameExchangeManagerGetFrameExchangeManager (uint8_t linkId=SINGLE_LINK_OP_ID) const
 Get the Frame Exchange Manager associated with the given link.
 
HeCapabilities GetHeCapabilities (uint8_t linkId) const
 Return the HE capabilities of the device for the given link.
 
Ptr< HeConfigurationGetHeConfiguration () const
 
bool GetHeSupported () const
 Return whether the device supports HE.
 
bool GetHeSupported (const Mac48Address &address) const
 
HtCapabilities GetHtCapabilities (uint8_t linkId) const
 Return the HT capabilities of the device for the given link.
 
Ptr< HtConfigurationGetHtConfiguration () const
 
bool GetHtSupported () const
 Return whether the device supports HT.
 
bool GetHtSupported (const Mac48Address &address) const
 
virtual std::optional< uint8_t > GetLinkIdByAddress (const Mac48Address &address) const
 Get the ID of the link having the given MAC address, if any.
 
Mac48Address GetLocalAddress (const Mac48Address &remoteAddr) const
 Get the local MAC address used to communicate with a remote STA.
 
Ptr< WifiMacQueueSchedulerGetMacQueueScheduler () const
 Get the wifi MAC queue scheduler.
 
uint32_t GetMaxAmpduSize (AcIndex ac) const
 Return the maximum A-MPDU size of the given Access Category.
 
uint16_t GetMaxAmsduSize (AcIndex ac) const
 Return the maximum A-MSDU size of the given Access Category.
 
std::optional< Mac48AddressGetMldAddress (const Mac48Address &remoteAddr) const
 
uint8_t GetNLinks () const
 Get the number of links (can be greater than 1 for 11be devices only).
 
bool GetQosSupported () const
 Return whether the device supports QoS.
 
Ptr< QosTxopGetQosTxop (AcIndex ac) const
 Accessor for a specified EDCA object.
 
Ptr< QosTxopGetQosTxop (uint8_t tid) const
 Accessor for a specified EDCA object.
 
Ssid GetSsid () const
 
Ptr< TxopGetTxop () const
 Accessor for the Txop object.
 
virtual Ptr< WifiMacQueueGetTxopQueue (AcIndex ac) const
 Get the wifi MAC queue of the (Qos)Txop associated with the given AC, if such (Qos)Txop is installed, or a null pointer, otherwise.
 
TypeOfStation GetTypeOfStation () const
 Return the type of station.
 
VhtCapabilities GetVhtCapabilities (uint8_t linkId) const
 Return the VHT capabilities of the device for the given link.
 
Ptr< VhtConfigurationGetVhtConfiguration () const
 
bool GetVhtSupported (const Mac48Address &address) const
 
bool GetVhtSupported (uint8_t linkId) const
 Return whether the device supports VHT on the given link.
 
Ptr< WifiPhyGetWifiPhy (uint8_t linkId=SINGLE_LINK_OP_ID) const
 
Ptr< WifiRemoteStationManagerGetWifiRemoteStationManager (uint8_t linkId=0) const
 
virtual bool HasFramesToTransmit (uint8_t linkId)
 Check if the MAC has frames to transmit over the given link.
 
virtual void NotifyChannelSwitching (uint8_t linkId)
 Notify that channel on the given link has been switched.
 
void NotifyPromiscRx (Ptr< const Packet > packet)
 
void NotifyRx (Ptr< const Packet > packet)
 
void NotifyRxDrop (Ptr< const Packet > packet)
 
void NotifyTx (Ptr< const Packet > packet)
 
void NotifyTxDrop (Ptr< const Packet > packet)
 
WifiMacoperator= (const WifiMac &)=delete
 
void ResetWifiPhys ()
 Remove currently attached WifiPhy objects from this MAC.
 
virtual void SetAddress (Mac48Address address)
 
void SetBssid (Mac48Address bssid, uint8_t linkId)
 
void SetCtsToSelfSupported (bool enable)
 Enable or disable CTS-to-self feature.
 
void SetDevice (const Ptr< WifiNetDevice > device)
 Sets the device this PHY is associated with.
 
void SetForwardUpCallback (ForwardUpCallback upCallback)
 
void SetLinkDownCallback (Callback< void > linkDown)
 
virtual void SetLinkUpCallback (Callback< void > linkUp)
 
virtual void SetMacQueueScheduler (Ptr< WifiMacQueueScheduler > scheduler)
 Set the wifi MAC queue scheduler.
 
void SetPromisc ()
 Sets the interface in promiscuous mode.
 
void SetSsid (Ssid ssid)
 
void SetTypeOfStation (TypeOfStation type)
 This method is invoked by a subclass to specify what type of station it is implementing.
 
virtual void SetWifiPhys (const std::vector< Ptr< WifiPhy > > &phys)
 
void SetWifiRemoteStationManager (Ptr< WifiRemoteStationManager > stationManager)
 
void SetWifiRemoteStationManagers (const std::vector< Ptr< WifiRemoteStationManager > > &stationManagers)
 
virtual bool SupportsSendFrom () const
 
void UnblockUnicastTxOnLinks (WifiQueueBlockedReason reason, const Mac48Address &address, const std::set< uint8_t > &linkIds)
 Unblock the transmission on the given links of all unicast frames addressed to the station with the given address for the given reason.
 
- Public Member Functions inherited from ns3::Object
 Object ()
 Constructor.
 
 ~Object () override
 Destructor.
 
void AggregateObject (Ptr< Object > other)
 Aggregate two Objects together.
 
void Dispose ()
 Dispose of this Object.
 
AggregateIterator GetAggregateIterator () const
 Get an iterator to the Objects aggregated to this one.
 
TypeId GetInstanceTypeId () const override
 Get the most derived TypeId for this Object.
 
template<typename T >
Ptr< T > GetObject () const
 Get a pointer to the requested aggregated Object.
 
template<>
Ptr< ObjectGetObject () const
 Specialization of () for objects of type ns3::Object.
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 Get a pointer to the requested aggregated Object by TypeId.
 
template<>
Ptr< ObjectGetObject (TypeId tid) const
 Specialization of (TypeId tid) for objects of type ns3::Object.
 
void Initialize ()
 Invoke DoInitialize on all Objects aggregated to this one.
 
bool IsInitialized () const
 Check if the object has been initialized.
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor.
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful.
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors.
 
virtual TypeId GetInstanceTypeId () const =0
 Get the most derived TypeId for this Object.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful.
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors.
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context.
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context.
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context.
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context.
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId ()
 Register this type.
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID.
 

Protected Member Functions

virtual void ConfigureContentionWindow (uint32_t cwMin, uint32_t cwMax)
 
virtual void DeaggregateAmsduAndForward (Ptr< const WifiMpdu > mpdu)
 This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack.
 
void DoDispose () override
 Destructor implementation.
 
void DoInitialize () override
 Initialize() implementation.
 
void ForwardUp (Ptr< const Packet > packet, Mac48Address from, Mac48Address to)
 Forward the packet up to the device.
 
Ptr< QosTxopGetBEQueue () const
 Accessor for the AC_BE channel access function.
 
Ptr< QosTxopGetBKQueue () const
 Accessor for the AC_BK channel access function.
 
LinkEntityGetLink (uint8_t linkId) const
 Get a reference to the link associated with the given ID.
 
bool GetShortSlotTimeSupported () const
 
Ptr< QosTxopGetVIQueue () const
 Accessor for the AC_VI channel access function.
 
Ptr< QosTxopGetVOQueue () const
 Accessor for the AC_VO channel access function.
 
virtual void Receive (Ptr< const WifiMpdu > mpdu, uint8_t linkId)
 This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received on the given link.
 
void SetQosSupported (bool enable)
 Enable or disable QoS support for the device.
 
void SetShortSlotTimeSupported (bool enable)
 Enable or disable short slot time feature.
 
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 Copy an Object.
 
virtual void DoDispose ()
 Destructor implementation.
 
virtual void DoInitialize ()
 Initialize() implementation.
 
virtual void NotifyNewAggregate ()
 Notify all Objects aggregated to this one of a new Object being aggregated.
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes.
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed.
 

Protected Attributes

Callback< void > m_linkDown
 Callback when a link is down.
 
Callback< void > m_linkUp
 Callback when a link is up.
 
Ptr< MacRxMiddlem_rxMiddle
 RX middle (defragmentation etc.)
 
Ptr< WifiMacQueueSchedulerm_scheduler
 wifi MAC queue scheduler
 
Ptr< MacTxMiddlem_txMiddle
 TX middle (aggregation etc.)
 
Ptr< Txopm_txop
 TXOP used for transmission of frames to non-QoS peers.
 

Private Types

typedef void(* DroppedMpduCallback) (WifiMacDropReason reason, Ptr< const WifiMpdu > mpdu)
 TracedCallback signature for MPDU drop events.
 
typedef TracedCallback< WifiMacDropReason, Ptr< const WifiMpdu > > DroppedMpduTracedCallback
 TracedCallback for MPDU drop events typedef.
 
typedef std::map< AcIndex, Ptr< QosTxop >, std::greater< AcIndex > > EdcaQueues
 This type defines a mapping between an Access Category index, and a pointer to the corresponding channel access function.
 
typedef void(* MpduResponseTimeoutCallback) (uint8_t reason, Ptr< const WifiMpdu > mpdu, const WifiTxVector &txVector)
 TracedCallback signature for MPDU response timeout events.
 
typedef TracedCallback< uint8_t, Ptr< const WifiMpdu >, const WifiTxVector & > MpduResponseTimeoutTracedCallback
 TracedCallback for MPDU response timeout events typedef.
 
typedef TracedCallback< Ptr< const WifiMpdu > > MpduTracedCallback
 TracedCallback for acked/nacked MPDUs typedef.
 
typedef void(* PsduMapResponseTimeoutCallback) (uint8_t reason, WifiPsduMap *psduMap, const std::set< Mac48Address > *missingStations, std::size_t nTotalStations)
 TracedCallback signature for PSDU map response timeout events.
 
typedef TracedCallback< uint8_t, WifiPsduMap *, const std::set< Mac48Address > *, std::size_t > PsduMapResponseTimeoutTracedCallback
 TracedCallback for PSDU map response timeout events typedef.
 
typedef void(* PsduResponseTimeoutCallback) (uint8_t reason, Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector)
 TracedCallback signature for PSDU response timeout events.
 
typedef TracedCallback< uint8_t, Ptr< const WifiPsdu >, const WifiTxVector & > PsduResponseTimeoutTracedCallback
 TracedCallback for PSDU response timeout events typedef.
 

Private Member Functions

void ConfigureDcf (Ptr< Txop > dcf, uint32_t cwmin, uint32_t cwmax, std::list< bool > isDsss, AcIndex ac)
 
void ConfigurePhyDependentParameters (uint8_t linkId)
 Configure PHY dependent parameters such as CWmin and CWmax on the given link.
 
virtual std::unique_ptr< LinkEntityCreateLinkEntity () const
 Create a LinkEntity object.
 
virtual Mac48Address DoGetLocalAddress (const Mac48Address &remoteAddr) const
 This method is called if this device is an MLD to determine the MAC address of the affiliated STA used to communicate with the single link device having the given MAC address.
 
void SetBeBlockAckInactivityTimeout (uint16_t timeout)
 Set BE block ack inactivity timeout.
 
void SetBeBlockAckThreshold (uint8_t threshold)
 Set the block ack threshold for AC_BE.
 
void SetBkBlockAckInactivityTimeout (uint16_t timeout)
 Set BK block ack inactivity timeout.
 
void SetBkBlockAckThreshold (uint8_t threshold)
 Set the block ack threshold for AC_BK.
 
void SetDsssSupported (bool enable, uint8_t linkId)
 Enable or disable DSSS support for the given link.
 
void SetErpSupported (bool enable, uint8_t linkId)
 Enable or disable ERP support for the given link.
 
void SetupEdcaQueue (AcIndex ac)
 This method is a private utility invoked to configure the channel access function for the specified Access Category.
 
Ptr< FrameExchangeManagerSetupFrameExchangeManager (WifiStandard standard)
 Create a Frame Exchange Manager depending on the supported version of the standard.
 
void SetViBlockAckInactivityTimeout (uint16_t timeout)
 Set VI block ack inactivity timeout.
 
void SetViBlockAckThreshold (uint8_t threshold)
 Set the block ack threshold for AC_VI.
 
void SetVoBlockAckInactivityTimeout (uint16_t timeout)
 Set VO block ack inactivity timeout.
 
void SetVoBlockAckThreshold (uint8_t threshold)
 Set the block ack threshold for AC_VO.
 

Private Attributes

MpduTracedCallback m_ackedMpduCallback
 ack'ed MPDU callback
 
Mac48Address m_address
 MAC address of this station.
 
uint32_t m_beMaxAmpduSize
 maximum A-MPDU size for AC_BE (in bytes)
 
uint16_t m_beMaxAmsduSize
 maximum A-MSDU size for AC_BE (in bytes)
 
uint32_t m_bkMaxAmpduSize
 maximum A-MPDU size for AC_BK (in bytes)
 
uint16_t m_bkMaxAmsduSize
 maximum A-MSDU size for AC_BK (in bytes)
 
bool m_ctsToSelfSupported
 flag indicating whether CTS-To-Self is supported
 
Ptr< WifiNetDevicem_device
 Pointer to the device.
 
DroppedMpduTracedCallback m_droppedMpduCallback
 This trace indicates that an MPDU was dropped for the given reason.
 
EdcaQueues m_edca
 This is a map from Access Category index to the corresponding channel access function.
 
ForwardUpCallback m_forwardUp
 Callback to forward packet up the stack.
 
std::vector< std::unique_ptr< LinkEntity > > m_links
 vector of Link objects
 
TracedCallback< Ptr< const Packet > > m_macPromiscRxTrace
 The trace source fired for packets successfully received by the device immediately before being forwarded up to higher layers (at the L2/L3 transition).
 
TracedCallback< Ptr< const Packet > > m_macRxDropTrace
 The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer during reception.
 
TracedCallback< Ptr< const Packet > > m_macRxTrace
 The trace source fired for packets successfully received by the device immediately before being forwarded up to higher layers (at the L2/L3 transition).
 
TracedCallback< Ptr< const Packet > > m_macTxDropTrace
 The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer before being queued for transmission.
 
TracedCallback< Ptr< const Packet > > m_macTxTrace
 The trace source fired when packets come into the "top" of the device at the L3/L2 transition, before being queued for transmission.
 
MpduResponseTimeoutTracedCallback m_mpduResponseTimeoutCallback
 MPDU response timeout traced callback.
 
MpduTracedCallback m_nackedMpduCallback
 nack'ed MPDU callback
 
PsduMapResponseTimeoutTracedCallback m_psduMapResponseTimeoutCallback
 PSDU map response timeout traced callback.
 
PsduResponseTimeoutTracedCallback m_psduResponseTimeoutCallback
 PSDU response timeout traced callback.
 
bool m_qosSupported
 This Boolean is set true iff this WifiMac is to model 802.11e/WMM style Quality of Service.
 
bool m_shortSlotTimeSupported
 flag whether short slot time is supported
 
Ssid m_ssid
 Service Set ID (SSID)
 
TracedCallback< const WifiMacHeader & > m_txErrCallback
 transmit error callback
 
TracedCallback< const WifiMacHeader & > m_txOkCallback
 transmit OK callback
 
TypeOfStation m_typeOfStation
 the type of station
 
uint32_t m_viMaxAmpduSize
 maximum A-MPDU size for AC_VI (in bytes)
 
uint16_t m_viMaxAmsduSize
 maximum A-MSDU size for AC_VI (in bytes)
 
uint32_t m_voMaxAmpduSize
 maximum A-MPDU size for AC_VO (in bytes)
 
uint16_t m_voMaxAmsduSize
 maximum A-MSDU size for AC_VO (in bytes)
 

Additional Inherited Members

Detailed Description

base class for all MAC-level wifi objects.

This class encapsulates all the low-level MAC functionality DCA, EDCA, etc) and all the high-level MAC functionality (association/disassociation state machines).

Config Paths

ns3::WifiMac is accessible through the following paths with Config::Set and Config::Connect:

  • "/NodeList/[i]/DeviceList/[i]/$ns3::WifiNetDevice/Mac"

Attributes

  • BE_BlockAckInactivityTimeout: Represents max time (blocks of 1024 microseconds) allowed for block ackinactivity for AC_BE. If this value isn't equal to 0 a timer start after that ablock ack setup is completed and will be reset every time that a block ackframe is received. If this value is 0, block ack inactivity timeout won't be used.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:65535
    • Initial value: 0
    • Flags: constructwrite
  • BE_BlockAckThreshold: If number of packets in BE queue reaches this value, block ack mechanism is used. If this value is 0, block ack is never used.When A-MPDU is enabled, block ack mechanism is used regardless of this value.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint8_t 0:64
    • Initial value: 0
    • Flags: constructwrite
  • BE_MaxAmpduSize: Maximum length in bytes of an A-MPDU for AC_BE access class (capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, 6500631 for HE PPDUs and 15523200 for EHT PPDUs). Value 0 means A-MPDU aggregation is disabled for that AC.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint32_t 0:15523200
    • Initial value: 65535
    • Flags: constructwriteread
  • BE_MaxAmsduSize: Maximum length in bytes of an A-MSDU for AC_BE access class (capped to 7935 for HT PPDUs and 11398 for VHT/HE/EHT PPDUs). Value 0 means A-MSDU aggregation is disabled for that AC.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:11398
    • Initial value: 0
    • Flags: constructwriteread
  • BE_Txop: Queue that manages packets belonging to AC_BE access class.
  • BK_BlockAckInactivityTimeout: Represents max time (blocks of 1024 microseconds) allowed for block ackinactivity for AC_BK. If this value isn't equal to 0 a timer start after that ablock ack setup is completed and will be reset every time that a block ackframe is received. If this value is 0, block ack inactivity timeout won't be used.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:65535
    • Initial value: 0
    • Flags: constructwrite
  • BK_BlockAckThreshold: If number of packets in BK queue reaches this value, block ack mechanism is used. If this value is 0, block ack is never used.When A-MPDU is enabled, block ack mechanism is used regardless of this value.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint8_t 0:64
    • Initial value: 0
    • Flags: constructwrite
  • BK_MaxAmpduSize: Maximum length in bytes of an A-MPDU for AC_BK access class (capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, 6500631 for HE PPDUs and 15523200 for EHT PPDUs). Value 0 means A-MPDU aggregation is disabled for that AC.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint32_t 0:15523200
    • Initial value: 0
    • Flags: constructwriteread
  • BK_MaxAmsduSize: Maximum length in bytes of an A-MSDU for AC_BK access class (capped to 7935 for HT PPDUs and 11398 for VHT/HE/EHT PPDUs). Value 0 means A-MSDU aggregation is disabled for that AC.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:11398
    • Initial value: 0
    • Flags: constructwriteread
  • BK_Txop: Queue that manages packets belonging to AC_BK access class.
  • CtsToSelfSupported: Use CTS to Self when using a rate that is not in the basic rate set.
    • Set with class: ns3::BooleanValue
    • Underlying type: bool
    • Initial value: false
    • Flags: constructwrite
  • QosSupported: This Boolean attribute is set to enable 802.11e/WMM-style QoS support at this STA.
    • Set with class: ns3::BooleanValue
    • Underlying type: bool
    • Initial value: false
    • Flags: constructread
  • ShortSlotTimeSupported: Whether or not short slot time is supported (only used by ERP APs or STAs).
    • Set with class: ns3::BooleanValue
    • Underlying type: bool
    • Initial value: true
    • Flags: constructwriteread
  • Ssid: The ssid we want to belong to.
    • Set with class: ns3::SsidValue
    • Underlying type: Ssid
    • Initial value: ssid=default
    • Flags: constructwriteread
  • Txop: The Txop object.
  • VI_BlockAckInactivityTimeout: Represents max time (blocks of 1024 microseconds) allowed for block ackinactivity for AC_VI. If this value isn't equal to 0 a timer start after that ablock ack setup is completed and will be reset every time that a block ackframe is received. If this value is 0, block ack inactivity timeout won't be used.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:65535
    • Initial value: 0
    • Flags: constructwrite
  • VI_BlockAckThreshold: If number of packets in VI queue reaches this value, block ack mechanism is used. If this value is 0, block ack is never used.When A-MPDU is enabled, block ack mechanism is used regardless of this value.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint8_t 0:64
    • Initial value: 0
    • Flags: constructwrite
  • VI_MaxAmpduSize: Maximum length in bytes of an A-MPDU for AC_VI access class (capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, 6500631 for HE PPDUs and 15523200 for EHT PPDUs). Value 0 means A-MPDU aggregation is disabled for that AC.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint32_t 0:15523200
    • Initial value: 65535
    • Flags: constructwriteread
  • VI_MaxAmsduSize: Maximum length in bytes of an A-MSDU for AC_VI access class (capped to 7935 for HT PPDUs and 11398 for VHT/HE/EHT PPDUs). Value 0 means A-MSDU aggregation is disabled for that AC.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:11398
    • Initial value: 0
    • Flags: constructwriteread
  • VI_Txop: Queue that manages packets belonging to AC_VI access class.
  • VO_BlockAckInactivityTimeout: Represents max time (blocks of 1024 microseconds) allowed for block ackinactivity for AC_VO. If this value isn't equal to 0 a timer start after that ablock ack setup is completed and will be reset every time that a block ackframe is received. If this value is 0, block ack inactivity timeout won't be used.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:65535
    • Initial value: 0
    • Flags: constructwrite
  • VO_BlockAckThreshold: If number of packets in VO queue reaches this value, block ack mechanism is used. If this value is 0, block ack is never used.When A-MPDU is enabled, block ack mechanism is used regardless of this value.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint8_t 0:64
    • Initial value: 0
    • Flags: constructwrite
  • VO_MaxAmpduSize: Maximum length in bytes of an A-MPDU for AC_VO access class (capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, 6500631 for HE PPDUs and 15523200 for EHT PPDUs). Value 0 means A-MPDU aggregation is disabled for that AC.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint32_t 0:15523200
    • Initial value: 0
    • Flags: constructwriteread
  • VO_MaxAmsduSize: Maximum length in bytes of an A-MSDU for AC_VO access class (capped to 7935 for HT PPDUs and 11398 for VHT/HE/EHT PPDUs). Value 0 means A-MSDU aggregation is disabled for that AC.
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:11398
    • Initial value: 0
    • Flags: constructwriteread
  • VO_Txop: Queue that manages packets belonging to AC_VO access class.

TraceSources

  • AckedMpdu: An MPDU that was successfully acknowledged, via either a Normal Ack or a Block Ack.
    Callback signature: ns3::WifiMpdu::TracedCallback
  • DroppedMpdu: An MPDU that was dropped for the given reason (see WifiMacDropReason).
    Callback signature: ns3::WifiMac::DroppedMpduCallback
  • MacPromiscRx: A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack. This is a promiscuous trace.
    Callback signature: ns3::Packet::TracedCallback
  • MacRx: A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack. This is a non-promiscuous trace.
    Callback signature: ns3::Packet::TracedCallback
  • MacRxDrop: A packet has been dropped in the MAC layer after it has been passed up from the physical layer.
    Callback signature: ns3::Packet::TracedCallback
  • MacTx: A packet has been received from higher layers and is being processed in preparation for queueing for transmission.
    Callback signature: ns3::Packet::TracedCallback
  • MacTxDrop: A packet has been dropped in the MAC layer before being queued for transmission. This trace source is fired, e.g., when an AP's MAC receives from the upper layer a packet destined to a station that is not associated with the AP or a STA's MAC receives a packet from the upper layer while it is not associated with any AP.
    Callback signature: ns3::Packet::TracedCallback
  • MpduResponseTimeout: An MPDU whose response was not received before the timeout, along with an identifier of the type of timeout (see WifiTxTimer::Reason) and the TXVECTOR used to transmit the MPDU. This trace source is fired when a CTS is missing after an RTS, when all CTS frames are missing after an MU-RTS, or when a Normal Ack is missing after an MPDU or after a DL MU PPDU acknowledged in SU format.
    Callback signature: ns3::WifiMac::MpduResponseTimeoutCallback
  • NAckedMpdu: An MPDU that was negatively acknowledged via a Block Ack.
    Callback signature: ns3::WifiMpdu::TracedCallback
  • PsduMapResponseTimeout: A PSDU map for which not all the responses were received before the timeout, along with an identifier of the type of timeout (see WifiTxTimer::Reason), the set of MAC addresses of the stations that did not respond and the total number of stations that had to respond. This trace source is fired when not all the addressed stations responded to an MU-BAR Trigger frame (either sent as a SU frame or aggregated to PSDUs in the DL MU PPDU), a Basic Trigger Frame or a BSRP Trigger Frame.
    Callback signature: ns3::WifiMac::PsduMapResponseTimeoutCallback
  • PsduResponseTimeout: A PSDU whose response was not received before the timeout, along with an identifier of the type of timeout (see WifiTxTimer::Reason) and the TXVECTOR used to transmit the PSDU. This trace source is fired when a BlockAck is missing after an A-MPDU, a BlockAckReq (possibly in the context of the acknowledgment of a DL MU PPDU in SU format) or a TB PPDU (in the latter case the missing BlockAck is a Multi-STA BlockAck).
    Callback signature: ns3::WifiMac::PsduResponseTimeoutCallback
  • TxErrHeader: The header of unsuccessfuly transmitted packet.
    Callback signature: ns3::WifiMacHeader::TracedCallback
  • TxOkHeader: The header of successfully transmitted packet.
    Callback signature: ns3::WifiMacHeader::TracedCallback

Size of this type is 464 bytes (on a 64-bit architecture).

Definition at line 93 of file wifi-mac.h.

Member Typedef Documentation

◆ DroppedMpduCallback

typedef void(* ns3::WifiMac::DroppedMpduCallback) (WifiMacDropReason reason, Ptr< const WifiMpdu > mpdu)
private

TracedCallback signature for MPDU drop events.

Parameters
reasonthe reason why the MPDU was dropped (
See also
WifiMacDropReason)
Parameters
mpduthe dropped MPDU

Definition at line 1009 of file wifi-mac.h.

◆ DroppedMpduTracedCallback

TracedCallback for MPDU drop events typedef.

Definition at line 1012 of file wifi-mac.h.

◆ EdcaQueues

typedef std::map<AcIndex, Ptr<QosTxop>, std::greater<AcIndex> > ns3::WifiMac::EdcaQueues
private

This type defines a mapping between an Access Category index, and a pointer to the corresponding channel access function.

Access Categories are sorted in decreasing order of priority.

Definition at line 944 of file wifi-mac.h.

◆ ForwardUpCallback

This type defines the callback of a higher layer that a WifiMac(-derived) object invokes to pass a packet up the stack.

Parameters
packetthe packet that has been received.
fromthe MAC address of the device that sent the packet.
tothe MAC address of the device that the packet is destined for.

Definition at line 385 of file wifi-mac.h.

◆ MpduResponseTimeoutCallback

typedef void(* ns3::WifiMac::MpduResponseTimeoutCallback) (uint8_t reason, Ptr< const WifiMpdu > mpdu, const WifiTxVector &txVector)
private

TracedCallback signature for MPDU response timeout events.

Parameters
reasonthe reason why the timer was started
mpduthe MPDU whose response was not received before the timeout
txVectorthe TXVECTOR used to transmit the MPDU

Definition at line 1032 of file wifi-mac.h.

◆ MpduResponseTimeoutTracedCallback

TracedCallback for MPDU response timeout events typedef.

Definition at line 1038 of file wifi-mac.h.

◆ MpduTracedCallback

TracedCallback for acked/nacked MPDUs typedef.

Definition at line 1020 of file wifi-mac.h.

◆ OriginatorAgreementOptConstRef

using ns3::WifiMac::OriginatorAgreementOptConstRef = std::optional<std::reference_wrapper<const OriginatorBlockAckAgreement> >

optional const reference to OriginatorBlockAckAgreement

Definition at line 591 of file wifi-mac.h.

◆ PsduMapResponseTimeoutCallback

typedef void(* ns3::WifiMac::PsduMapResponseTimeoutCallback) (uint8_t reason, WifiPsduMap *psduMap, const std::set< Mac48Address > *missingStations, std::size_t nTotalStations)
private

TracedCallback signature for PSDU map response timeout events.

Parameters
reasonthe reason why the timer was started
psduMapthe PSDU map for which not all responses were received before the timeout
missingStationsthe MAC addresses of the stations that did not respond
nTotalStationsthe total number of stations that had to respond

Definition at line 1075 of file wifi-mac.h.

◆ PsduMapResponseTimeoutTracedCallback

typedef TracedCallback<uint8_t, WifiPsduMap*, const std::set<Mac48Address>*, std::size_t> ns3::WifiMac::PsduMapResponseTimeoutTracedCallback
private

TracedCallback for PSDU map response timeout events typedef.

Definition at line 1082 of file wifi-mac.h.

◆ PsduResponseTimeoutCallback

typedef void(* ns3::WifiMac::PsduResponseTimeoutCallback) (uint8_t reason, Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector)
private

TracedCallback signature for PSDU response timeout events.

Parameters
reasonthe reason why the timer was started
psduthe PSDU whose response was not received before the timeout
txVectorthe TXVECTOR used to transmit the PSDU

Definition at line 1053 of file wifi-mac.h.

◆ PsduResponseTimeoutTracedCallback

TracedCallback for PSDU response timeout events typedef.

Definition at line 1059 of file wifi-mac.h.

◆ RecipientAgreementOptConstRef

using ns3::WifiMac::RecipientAgreementOptConstRef = std::optional<std::reference_wrapper<const RecipientBlockAckAgreement> >

optional const reference to RecipientBlockAckAgreement

Definition at line 594 of file wifi-mac.h.

Constructor & Destructor Documentation

◆ WifiMac() [1/2]

ns3::WifiMac::WifiMac ( )

Definition at line 48 of file wifi-mac.cc.

References m_rxMiddle, m_txMiddle, ns3::MakeCallback(), NS_LOG_FUNCTION, and Receive().

+ Here is the call graph for this function:

◆ ~WifiMac()

ns3::WifiMac::~WifiMac ( )
override

Definition at line 59 of file wifi-mac.cc.

References NS_LOG_FUNCTION.

◆ WifiMac() [2/2]

ns3::WifiMac::WifiMac ( const WifiMac )
delete

Member Function Documentation

◆ BlockUnicastTxOnLinks()

void ns3::WifiMac::BlockUnicastTxOnLinks ( WifiQueueBlockedReason  reason,
const Mac48Address address,
const std::set< uint8_t > &  linkIds 
)

Block the transmission on the given links of all unicast frames addressed to the station with the given address for the given reason.

The given MAC address must be the MLD address in case the addressed device is multi-link.

Parameters
reasonthe reason for blocking transmissions
addressthe MAC address of the given device
linkIdsthe IDs of the links to block

Definition at line 1113 of file wifi-mac.cc.

References GetAddress(), GetLink(), m_scheduler, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::WIFI_CTL_QUEUE, ns3::WIFI_MGT_QUEUE, ns3::WIFI_QOSDATA_QUEUE, and ns3::wifiAcList.

Referenced by ns3::EhtFrameExchangeManager::EmlsrSwitchToListening(), and ns3::ApWifiMac::StaSwitchingToPsMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanForwardPacketsTo()

virtual bool ns3::WifiMac::CanForwardPacketsTo ( Mac48Address  to) const
pure virtual

Return true if packets can be forwarded to the given destination, false otherwise.

Parameters
tothe address to which the packet should be sent
Returns
whether packets can be forwarded to the given destination

Implemented in ns3::MeshWifiInterfaceMac, ns3::AdhocWifiMac, ns3::ApWifiMac, and ns3::StaWifiMac.

Referenced by ns3::QosTxop::PeekNextMpdu().

+ Here is the caller graph for this function:

◆ ConfigureContentionWindow()

void ns3::WifiMac::ConfigureContentionWindow ( uint32_t  cwMin,
uint32_t  cwMax 
)
protectedvirtual
Parameters
cwMinthe minimum contention window size
cwMaxthe maximum contention window size

This method is called to set the minimum and the maximum contention window size.

Reimplemented in ns3::MeshWifiInterfaceMac.

Definition at line 646 of file wifi-mac.cc.

References ns3::AC_BE_NQOS, ConfigureDcf(), m_edca, m_links, and m_txop.

Referenced by ns3::MeshWifiInterfaceMac::ConfigureContentionWindow(), and ConfigurePhyDependentParameters().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ConfigureDcf()

void ns3::WifiMac::ConfigureDcf ( Ptr< Txop dcf,
uint32_t  cwmin,
uint32_t  cwmax,
std::list< bool >  isDsss,
AcIndex  ac 
)
private
Parameters
dcfthe DCF to be configured
cwminthe minimum contention window for the DCF
cwmaxthe maximum contention window for the DCF
isDsssvector of flags to indicate whether PHY is DSSS or HR/DSSS for every link
acthe access category for the DCF

Configure the DCF with appropriate values depending on the given access category.

Definition at line 669 of file wifi-mac.cc.

References ns3::AC_BE, ns3::AC_BE_NQOS, ns3::AC_BEACON, ns3::AC_BK, ns3::AC_UNDEF, ns3::AC_VI, ns3::AC_VO, m_links, ns3::MicroSeconds(), NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by ConfigureContentionWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ConfigurePhyDependentParameters()

void ns3::WifiMac::ConfigurePhyDependentParameters ( uint8_t  linkId)
private

Configure PHY dependent parameters such as CWmin and CWmax on the given link.

Parameters
linkIdthe ID of the given link

Definition at line 795 of file wifi-mac.cc.

References ConfigureContentionWindow(), GetLink(), ns3::WifiPhy::GetStandard(), m_links, NS_LOG_FUNCTION, ns3::WifiMac::LinkEntity::phy, SetDsssSupported(), SetErpSupported(), ns3::WIFI_PHY_BAND_2_4GHZ, ns3::WIFI_STANDARD_80211b, and ns3::WIFI_STANDARD_80211g.

Referenced by ConfigureStandard(), and NotifyChannelSwitching().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ConfigureStandard()

void ns3::WifiMac::ConfigureStandard ( WifiStandard  standard)
virtual
Parameters
standardthe wifi standard to be configured

This method completes the configuration process for a requested PHY standard by creating the Frame Exchange Manager and the Channel Access Manager and configuring the PHY dependent parameters. This method can only be called after a configured PHY has been set.

Reimplemented in ns3::MeshWifiInterfaceMac, and ns3::ApWifiMac.

Definition at line 748 of file wifi-mac.cc.

References ConfigurePhyDependentParameters(), m_edca, m_links, m_qosSupported, m_txop, NS_ABORT_IF, NS_ABORT_MSG_IF, NS_LOG_FUNCTION, SetupFrameExchangeManager(), ns3::Txop::SetWifiMac(), and ns3::WIFI_STANDARD_80211n.

Referenced by ns3::MeshWifiInterfaceMac::ConfigureStandard(), ns3::ApWifiMac::ConfigureStandard(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), and HeAggregationTest::DoRunSubTest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateLinkEntity()

std::unique_ptr< WifiMac::LinkEntity > ns3::WifiMac::CreateLinkEntity ( ) const
privatevirtual

Create a LinkEntity object.

Returns
a unique pointer to the created LinkEntity object

Reimplemented in ns3::ApWifiMac, and ns3::StaWifiMac.

Definition at line 916 of file wifi-mac.cc.

Referenced by SetWifiPhys(), and SetWifiRemoteStationManagers().

+ Here is the caller graph for this function:

◆ DeaggregateAmsduAndForward()

void ns3::WifiMac::DeaggregateAmsduAndForward ( Ptr< const WifiMpdu mpdu)
protectedvirtual

This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack.

Parameters
mpduthe MPDU containing the A-MSDU.

Reimplemented in ns3::ApWifiMac.

Definition at line 1346 of file wifi-mac.cc.

References ForwardUp(), NS_LOG_FUNCTION, and ns3::PeekPointer().

Referenced by ns3::AdhocWifiMac::Receive(), and ns3::StaWifiMac::Receive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoDispose()

void ns3::WifiMac::DoDispose ( )
overrideprotectedvirtual

Destructor implementation.

This method is called by Dispose() or by the Object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overridden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.

It is safe to call GetObject() from within this method.

Reimplemented from ns3::Object.

Definition at line 376 of file wifi-mac.cc.

References ns3::Object::Dispose(), m_device, m_edca, m_links, m_rxMiddle, m_scheduler, m_txMiddle, m_txop, and NS_LOG_FUNCTION.

Referenced by ns3::MeshWifiInterfaceMac::DoDispose(), ns3::ApWifiMac::DoDispose(), and ns3::StaWifiMac::DoDispose().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoGetLocalAddress()

Mac48Address ns3::WifiMac::DoGetLocalAddress ( const Mac48Address remoteAddr) const
privatevirtual

This method is called if this device is an MLD to determine the MAC address of the affiliated STA used to communicate with the single link device having the given MAC address.

This method is overridden because its implementation depends on the type of station.

Parameters
remoteAddrthe MAC address of the remote single link device
Returns
the MAC address of the affiliated STA used to communicate with the remote device

Reimplemented in ns3::ApWifiMac, and ns3::StaWifiMac.

Definition at line 1399 of file wifi-mac.cc.

References m_address.

Referenced by GetLocalAddress().

+ Here is the caller graph for this function:

◆ DoInitialize()

void ns3::WifiMac::DoInitialize ( )
overrideprotectedvirtual

Initialize() implementation.

This method is called only once by Initialize(). If the user calls Initialize() multiple times, DoInitialize() is called only the first time.

Subclasses are expected to override this method and chain up to their parent's implementation once they are done. It is safe to call GetObject() and AggregateObject() from within this method.

Reimplemented from ns3::Object.

Definition at line 352 of file wifi-mac.cc.

References ns3::Object::Initialize(), m_edca, m_links, m_txop, and NS_LOG_FUNCTION.

Referenced by ns3::ApWifiMac::DoInitialize(), and ns3::StaWifiMac::DoInitialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Enqueue() [1/2]

virtual void ns3::WifiMac::Enqueue ( Ptr< Packet packet,
Mac48Address  to 
)
pure virtual
Parameters
packetthe packet to send.
tothe address to which the packet should be sent.

The packet should be enqueued in a TX queue, and should be dequeued as soon as the DCF function determines that access it granted to this MAC.

Implemented in ns3::MeshWifiInterfaceMac, ns3::AdhocWifiMac, ns3::ApWifiMac, and ns3::StaWifiMac.

◆ Enqueue() [2/2]

void ns3::WifiMac::Enqueue ( Ptr< Packet packet,
Mac48Address  to,
Mac48Address  from 
)
virtual
Parameters
packetthe packet to send.
tothe address to which the packet should be sent.
fromthe address from which the packet should be sent.

The packet should be enqueued in a TX queue, and should be dequeued as soon as the DCF function determines that access it granted to this MAC. The extra parameter "from" allows this device to operate in a bridged mode, forwarding received frames without altering the source address.

Reimplemented in ns3::MeshWifiInterfaceMac, and ns3::ApWifiMac.

Definition at line 1205 of file wifi-mac.cc.

References GetAddress(), and NS_FATAL_ERROR.

Referenced by ns3::WifiNetDevice::Send(), and ns3::WifiNetDevice::SendFrom().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ForwardUp()

void ns3::WifiMac::ForwardUp ( Ptr< const Packet packet,
Mac48Address  from,
Mac48Address  to 
)
protected

Forward the packet up to the device.

Parameters
packetthe packet that we are forwarding up to the device
fromthe address of the source
tothe address of the destination

Definition at line 1216 of file wifi-mac.cc.

References m_forwardUp, and NS_LOG_FUNCTION.

Referenced by DeaggregateAmsduAndForward(), ns3::ApWifiMac::DeaggregateAmsduAndForward(), ns3::MeshWifiInterfaceMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), and ns3::StaWifiMac::Receive().

+ Here is the caller graph for this function:

◆ GetAddress()

◆ GetBaAgreementEstablishedAsOriginator()

WifiMac::OriginatorAgreementOptConstRef ns3::WifiMac::GetBaAgreementEstablishedAsOriginator ( Mac48Address  recipient,
uint8_t  tid 
) const

◆ GetBaAgreementEstablishedAsRecipient()

WifiMac::RecipientAgreementOptConstRef ns3::WifiMac::GetBaAgreementEstablishedAsRecipient ( Mac48Address  originator,
uint8_t  tid 
) const
Parameters
originator(link or device) MAC address of the originator
tidtraffic ID.
Returns
the recipient block ack agreement, if one has been established

Checks if a recipient block ack agreement is established with station addressed by originator for TID tid.

Definition at line 1419 of file wifi-mac.cc.

References ns3::QosTxop::GetBaManager(), GetMldAddress(), and GetQosTxop().

Referenced by ns3::HtFrameExchangeManager::EndReceiveAmpdu(), GetBarTypeAsRecipient(), GetBaTypeAsRecipient(), ns3::MultiUserScheduler::GetMaxSizeOfQosNullAmpdu(), ns3::RrMultiUserScheduler::GetTxVectorForUlMu(), and ns3::HtFrameExchangeManager::ReceiveMpdu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBarTypeAsOriginator()

BlockAckReqType ns3::WifiMac::GetBarTypeAsOriginator ( const Mac48Address recipient,
uint8_t  tid 
) const
Parameters
recipientMAC address of recipient
tidtraffic ID
Returns
the type of Block Ack Requests sent to the recipient

This function returns the type of Block Ack Requests sent to the recipient.

Definition at line 1436 of file wifi-mac.cc.

References GetBaAgreementEstablishedAsOriginator(), and NS_ABORT_MSG_IF.

Referenced by ns3::WifiDefaultAckManager::GetAckInfoIfAggregatedMuBar(), ns3::WifiDefaultAckManager::GetAckInfoIfBarBaSequence(), ns3::WifiDefaultAckManager::GetAckInfoIfTfMuBar(), and ns3::WifiDefaultAckManager::TryAddMpdu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBarTypeAsRecipient()

BlockAckReqType ns3::WifiMac::GetBarTypeAsRecipient ( Mac48Address  originator,
uint8_t  tid 
) const
Parameters
originatorMAC address of originator
tidtraffic ID
Returns
the type of Block Ack Requests sent by the originator

This function returns the type of Block Ack Requests sent by the originator.

Definition at line 1454 of file wifi-mac.cc.

References GetBaAgreementEstablishedAsRecipient(), and NS_ABORT_MSG_IF.

+ Here is the call graph for this function:

◆ GetBaTypeAsOriginator()

BlockAckType ns3::WifiMac::GetBaTypeAsOriginator ( const Mac48Address recipient,
uint8_t  tid 
) const
Parameters
recipientMAC address
tidtraffic ID
Returns
the type of Block Acks sent by the recipient

This function returns the type of Block Acks sent by the recipient.

Definition at line 1427 of file wifi-mac.cc.

References GetBaAgreementEstablishedAsOriginator(), and NS_ABORT_MSG_IF.

Referenced by ns3::WifiDefaultAckManager::GetAckInfoIfAggregatedMuBar(), ns3::WifiDefaultAckManager::GetAckInfoIfBarBaSequence(), ns3::WifiDefaultAckManager::GetAckInfoIfTfMuBar(), and ns3::WifiDefaultAckManager::TryAddMpdu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBaTypeAsRecipient()

BlockAckType ns3::WifiMac::GetBaTypeAsRecipient ( Mac48Address  originator,
uint8_t  tid 
) const
Parameters
originatorMAC address of originator
tidtraffic ID
Returns
the type of Block Acks sent to the originator

This function returns the type of Block Acks sent to the originator.

Definition at line 1445 of file wifi-mac.cc.

References GetBaAgreementEstablishedAsRecipient(), and NS_ABORT_MSG_IF.

Referenced by ns3::WifiDefaultAckManager::TryUlMuTransmission().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBEQueue()

Ptr< QosTxop > ns3::WifiMac::GetBEQueue ( ) const
protected

Accessor for the AC_BE channel access function.

Returns
a smart pointer to QosTxop

Definition at line 531 of file wifi-mac.cc.

References ns3::AC_BE, GetQosTxop(), and m_qosSupported.

Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), GetTypeId(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendProbeResp(), SetBeBlockAckInactivityTimeout(), and SetBeBlockAckThreshold().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBKQueue()

Ptr< QosTxop > ns3::WifiMac::GetBKQueue ( ) const
protected

Accessor for the AC_BK channel access function.

Returns
a smart pointer to QosTxop

Definition at line 537 of file wifi-mac.cc.

References ns3::AC_BK, GetQosTxop(), and m_qosSupported.

Referenced by GetTypeId(), SetBkBlockAckInactivityTimeout(), and SetBkBlockAckThreshold().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBssid()

Mac48Address ns3::WifiMac::GetBssid ( uint8_t  linkId) const
Returns
the BSSID of the network the given link belongs to.
Parameters
linkIdthe ID of the given link

Definition at line 476 of file wifi-mac.cc.

References ns3::WifiMac::LinkEntity::feManager, and GetLink().

Referenced by ns3::StaWifiMac::Disassociated(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::WifiNetDevice::GetAddress(), ns3::StaWifiMac::GetAssociationRequest(), ns3::EmlsrManager::NotifyMgtFrameReceived(), ns3::StaWifiMac::Receive(), ns3::EmlsrManager::SendEmlOperatingModeNotification(), ns3::StaWifiMac::SetPowerSaveMode(), and ns3::EmlsrManager::TxDropped().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetChannelAccessManager()

Ptr< ChannelAccessManager > ns3::WifiMac::GetChannelAccessManager ( uint8_t  linkId = SINGLE_LINK_OP_ID) const

Get the Channel Access Manager associated with the given link.

Parameters
linkIdthe ID of the given link
Returns
the Channel Access Manager

Definition at line 870 of file wifi-mac.cc.

References ns3::WifiMac::LinkEntity::channelAccessManager, and GetLink().

Referenced by ns3::MultiUserScheduler::AccessReqTimeout(), ns3::Txop::Queue(), ns3::Txop::RequestAccess(), ns3::Txop::StartAccessIfNeeded(), and ns3::QosTxop::StartMuEdcaTimerNow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDevice()

◆ GetDsssSupported()

bool ns3::WifiMac::GetDsssSupported ( uint8_t  linkId) const

Return whether the device supports DSSS on the given link.

Parameters
linkIdthe ID of the given link
Returns
true if DSSS is supported, false otherwise

Definition at line 1060 of file wifi-mac.cc.

References ns3::WifiMac::LinkEntity::dsssSupported, and GetLink().

Referenced by ns3::ApWifiMac::GetDsssParameterSet(), ns3::ApWifiMac::Receive(), ns3::ApWifiMac::SendOneBeacon(), and ns3::ApWifiMac::SendProbeResp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetEhtCapabilities()

◆ GetEhtConfiguration()

Ptr< EhtConfiguration > ns3::WifiMac::GetEhtConfiguration ( ) const
Returns
pointer to EhtConfiguration if it exists

Definition at line 1481 of file wifi-mac.cc.

References GetDevice(), and ns3::WifiNetDevice::GetEhtConfiguration().

Referenced by GetEhtSupported(), ns3::ApWifiMac::GetMultiLinkElement(), ns3::ApWifiMac::ReceiveEmlNotification(), and ns3::EmlsrManager::SetWifiMac().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetEhtSupported() [1/2]

◆ GetEhtSupported() [2/2]

bool ns3::WifiMac::GetEhtSupported ( const Mac48Address address) const
Parameters
addressthe (link or MLD) address of a remote station
Returns
true if the remote station with the given address supports EHT

Definition at line 1551 of file wifi-mac.cc.

References m_links.

◆ GetErpSupported()

bool ns3::WifiMac::GetErpSupported ( uint8_t  linkId) const

Return whether the device supports ERP on the given link.

Parameters
linkIdthe ID of the given link
Returns
true if ERP is supported, false otherwise

Definition at line 1036 of file wifi-mac.cc.

References ns3::WifiMac::LinkEntity::erpSupported, and GetLink().

Referenced by ns3::StaWifiMac::GetCapabilities(), ns3::ApWifiMac::GetErpInformation(), ns3::ApWifiMac::ReceiveAssocRequest(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::StaWifiMac::UpdateApInfo(), ns3::ApWifiMac::UpdateShortPreambleEnabled(), and ns3::ApWifiMac::UpdateShortSlotTimeEnabled().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetExtendedCapabilities()

ExtendedCapabilities ns3::WifiMac::GetExtendedCapabilities ( ) const

Return the extended capabilities of the device.

Returns
the extended capabilities that we support

Definition at line 1644 of file wifi-mac.cc.

References GetHtSupported(), GetVhtSupported(), NS_LOG_FUNCTION, ns3::ExtendedCapabilities::SetHtSupported(), ns3::ExtendedCapabilities::SetVhtSupported(), and ns3::SINGLE_LINK_OP_ID.

Referenced by ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFrameExchangeManager()

Ptr< FrameExchangeManager > ns3::WifiMac::GetFrameExchangeManager ( uint8_t  linkId = SINGLE_LINK_OP_ID) const

Get the Frame Exchange Manager associated with the given link.

Parameters
linkIdthe ID of the given link
Returns
the Frame Exchange Manager

Definition at line 864 of file wifi-mac.cc.

References ns3::WifiMac::LinkEntity::feManager, and GetLink().

Referenced by MultiLinkOperationsTestBase::CheckAddresses(), MultiLinkSetupTest::CheckAssocResponse(), MultiLinkSetupTest::CheckBeacon(), MultiLinkSetupTest::CheckMlSetup(), MultiLinkSetupTest::CheckProbeResponse(), ns3::ApWifiMac::DoGetLocalAddress(), ns3::StaWifiMac::DoGetLocalAddress(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), EmlsrDlTxopTest::DoSetup(), MultiLinkTxTest::DoSetup(), MultiLinkMuTxTest::DoSetup(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), ns3::WifiDefaultAckManager::GetAckInfoIfBarBaSequence(), ns3::WifiNetDevice::GetAddress(), ns3::EmlsrManager::GetEhtFem(), ns3::MultiUserScheduler::GetHeFem(), ns3::ApWifiMac::GetMultiLinkElement(), ns3::QosTxop::GetNextMpdu(), ns3::WifiDefaultProtectionManager::GetPsduProtection(), ns3::RrMultiUserScheduler::GetTxVectorForUlMu(), Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::SendAssocResp(), ns3::StaWifiMac::SendProbeRequest(), ns3::MpduAggregator::SetLinkId(), ns3::MsduAggregator::SetLinkId(), ns3::StaWifiMac::SetPowerSaveMode(), ns3::MpduAggregator::SetWifiMac(), ns3::MsduAggregator::SetWifiMac(), ns3::MultiUserScheduler::SetWifiMac(), MultiLinkTxTest::Transmit(), ns3::WifiDefaultProtectionManager::TryAddMpduToMuPpdu(), ns3::WifiDefaultAckManager::TryUlMuTransmission(), ns3::WifiDefaultProtectionManager::TryUlMuTransmission(), ns3::ApWifiMac::TxFailed(), and ns3::ApWifiMac::TxOk().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHeCapabilities()

◆ GetHeConfiguration()

◆ GetHeSupported() [1/2]

◆ GetHeSupported() [2/2]

bool ns3::WifiMac::GetHeSupported ( const Mac48Address address) const
Parameters
addressthe (link or MLD) address of a remote station
Returns
true if the remote station with the given address supports HE

Definition at line 1538 of file wifi-mac.cc.

References m_links.

◆ GetHtCapabilities()

◆ GetHtConfiguration()

Ptr< HtConfiguration > ns3::WifiMac::GetHtConfiguration ( ) const
Returns
pointer to HtConfiguration if it exists

Definition at line 1463 of file wifi-mac.cc.

References GetDevice(), and ns3::WifiNetDevice::GetHtConfiguration().

Referenced by GetHeCapabilities(), GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), GetHtSupported(), and GetVhtCapabilities().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHtSupported() [1/2]

◆ GetHtSupported() [2/2]

bool ns3::WifiMac::GetHtSupported ( const Mac48Address address) const
Parameters
addressthe (link or MLD) address of a remote station
Returns
true if the remote station with the given address supports HT

Definition at line 1512 of file wifi-mac.cc.

References m_links.

◆ GetLink()

WifiMac::LinkEntity & ns3::WifiMac::GetLink ( uint8_t  linkId) const
protected

◆ GetLinkIdByAddress()

std::optional< uint8_t > ns3::WifiMac::GetLinkIdByAddress ( const Mac48Address address) const
virtual

Get the ID of the link having the given MAC address, if any.

Parameters
addressthe given MAC address
Returns
the ID of the link having the given MAC address, if any

Definition at line 936 of file wifi-mac.cc.

References m_links.

Referenced by MultiLinkSetupTest::CheckAssocResponse(), MultiLinkTxTest::CheckBlockAck(), MultiLinkMuTxTest::CheckBlockAck(), MultiLinkTxTest::Transmit(), ns3::ApWifiMac::TxFailed(), ns3::ApWifiMac::TxOk(), and ns3::StaWifiMac::TxOk().

+ Here is the caller graph for this function:

◆ GetLocalAddress()

Mac48Address ns3::WifiMac::GetLocalAddress ( const Mac48Address remoteAddr) const

Get the local MAC address used to communicate with a remote STA.

Specifically:

  • If the given remote address is the address of a STA affiliated with a remote MLD and operating on a setup link, the address of the local STA operating on such a link is returned.
  • If the given remote address is the MLD address of a remote MLD (with which some link has been setup), the MLD address of this device is returned.
  • If this is a single link device, the unique MAC address of this device is returned.
  • Otherwise, return the MAC address of the affiliated STA (which must exists) that can be used to communicate with the remote device.
Parameters
remoteAddrthe MAC address of the remote device
Returns
the local MAC address used to communicate with the remote device

Definition at line 1371 of file wifi-mac.cc.

References DoGetLocalAddress(), GetNLinks(), m_address, and m_links.

Referenced by ns3::QosTxop::QosTxop(), and ns3::QosTxop::PrepareBlockAckRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMacQueueScheduler()

Ptr< WifiMacQueueScheduler > ns3::WifiMac::GetMacQueueScheduler ( ) const

Get the wifi MAC queue scheduler.

Returns
the wifi MAC queue scheduler

Definition at line 574 of file wifi-mac.cc.

References m_scheduler.

Referenced by ns3::QosTxop::QosTxop(), EmlsrDlTxopTest::CheckBlockAck(), EmlsrDlTxopTest::CheckInitialControlFrame(), EmlsrDlTxopTest::CheckPmModeAfterAssociation(), EmlsrDlTxopTest::CheckQosFrames(), ns3::QosTxop::PeekNextMpdu(), and ns3::Txop::Queue().

+ Here is the caller graph for this function:

◆ GetMaxAmpduSize()

uint32_t ns3::WifiMac::GetMaxAmpduSize ( AcIndex  ac) const

Return the maximum A-MPDU size of the given Access Category.

Parameters
acAccess Category index
Returns
the maximum A-MPDU size

Definition at line 1942 of file wifi-mac.cc.

References ns3::AC_BE, ns3::AC_BK, ns3::AC_VI, ns3::AC_VO, m_beMaxAmpduSize, m_bkMaxAmpduSize, m_viMaxAmpduSize, m_voMaxAmpduSize, and NS_ABORT_MSG.

Referenced by ns3::MpduAggregator::GetMaxAmpduSize().

+ Here is the caller graph for this function:

◆ GetMaxAmsduSize()

uint16_t ns3::WifiMac::GetMaxAmsduSize ( AcIndex  ac) const

Return the maximum A-MSDU size of the given Access Category.

Parameters
acAccess Category index
Returns
the maximum A-MSDU size

Definition at line 1967 of file wifi-mac.cc.

References ns3::AC_BE, ns3::AC_BK, ns3::AC_VI, ns3::AC_VO, m_beMaxAmsduSize, m_bkMaxAmsduSize, m_viMaxAmsduSize, m_voMaxAmsduSize, and NS_ABORT_MSG.

Referenced by ns3::MsduAggregator::GetMaxAmsduSize().

+ Here is the caller graph for this function:

◆ GetMldAddress()

std::optional< Mac48Address > ns3::WifiMac::GetMldAddress ( const Mac48Address remoteAddr) const
Parameters
remoteAddrthe (MLD or link) address of a remote device
Returns
the MLD address of the remote device having the given (MLD or link) address, if the remote device is an MLD.

Definition at line 1358 of file wifi-mac.cc.

References m_links.

Referenced by ns3::StaWifiMac::Enqueue(), GetBaAgreementEstablishedAsOriginator(), GetBaAgreementEstablishedAsRecipient(), ns3::HtFrameExchangeManager::GetBar(), ns3::ApWifiMac::GetMultiLinkElement(), ns3::QosTxop::PrepareBlockAckRequest(), ns3::StaWifiMac::ReceiveAssocResp(), ns3::HtFrameExchangeManager::ReceiveMpdu(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), and MultiLinkMuTxTest::Transmit().

+ Here is the caller graph for this function:

◆ GetNLinks()

uint8_t ns3::WifiMac::GetNLinks ( ) const

Get the number of links (can be greater than 1 for 11be devices only).

Returns
the number of links used by this MAC

Definition at line 930 of file wifi-mac.cc.

References m_links.

Referenced by ns3::MultiUserScheduler::AccessReqTimeout(), ns3::WifiAssocManager::CanSetupMultiLink(), MultiLinkOperationsTestBase::CheckAddresses(), MultiLinkSetupTest::CheckAssocRequest(), MultiLinkSetupTest::CheckAssocResponse(), MultiLinkSetupTest::CheckBeacon(), EmlsrDlTxopTest::CheckBlockAck(), EmlsrDlTxopTest::CheckInitialControlFrame(), MultiLinkSetupTest::CheckMlSetup(), EmlsrDlTxopTest::CheckPmModeAfterAssociation(), MultiLinkSetupTest::CheckProbeResponse(), EmlsrDlTxopTest::CheckQosFrames(), ns3::ApWifiMac::ConfigureStandard(), ns3::EhtFrameExchangeManager::CreateAliasIfNeeded(), ns3::StaWifiMac::Disassociated(), ns3::ApWifiMac::DoInitialize(), EmlsrOperationsTestBase::DoSetup(), EmlNotificationExchangeTest::DoSetup(), EmlsrDlTxopTest::DoSetup(), MultiLinkTxTest::DoSetup(), MultiLinkMuTxTest::DoSetup(), ns3::WifiDefaultAssocManager::DoStartScanning(), ns3::EhtFrameExchangeManager::EmlsrSwitchToListening(), ns3::WifiDefaultAssocManager::EndScanning(), ns3::ApWifiMac::ForwardDown(), ns3::WifiNetDevice::GetAddress(), GetLocalAddress(), ns3::StaWifiMac::GetMultiLinkElement(), ns3::ApWifiMac::GetMultiLinkElement(), ns3::ApWifiMac::GetReducedNeighborReport(), ns3::StaWifiMac::GetSetupLinkIds(), ns3::ApWifiMac::IsAssociated(), ns3::ApWifiMac::ParseReportedStaInfo(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::ReceiveAssocResp(), ns3::StaWifiMac::ScanningTimeout(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::ApWifiMac::SetBeaconGeneration(), ns3::StaWifiMac::SetPmModeAfterAssociation(), ns3::Txop::SetWifiMac(), ns3::MultiUserScheduler::SetWifiMac(), ns3::EmlsrManager::SetWifiMac(), ns3::StaWifiMac::StartScanning(), EmlsrDlTxopTest::StartTraffic(), ns3::ApWifiMac::TxFailed(), and ns3::ApWifiMac::TxOk().

+ Here is the caller graph for this function:

◆ GetQosSupported()

◆ GetQosTxop() [1/2]

Ptr< QosTxop > ns3::WifiMac::GetQosTxop ( AcIndex  ac) const

Accessor for a specified EDCA object.

Parameters
acthe Access Category
Returns
a smart pointer to a QosTxop

Definition at line 497 of file wifi-mac.cc.

References m_edca.

Referenced by ns3::MultiUserScheduler::AccessReqTimeout(), OfdmaAckSequenceTest::DoRun(), EmlsrDlTxopTest::DoSetup(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::HtFrameExchangeManager::FinalizeMacHeader(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::ForwardDown(), ns3::QosFrameExchangeManager::ForwardMpduDown(), ns3::WifiDefaultAckManager::GetAckInfoIfAggregatedMuBar(), ns3::WifiDefaultAckManager::GetAckInfoIfBarBaSequence(), ns3::WifiDefaultAckManager::GetAckInfoIfTfMuBar(), GetBaAgreementEstablishedAsOriginator(), GetBaAgreementEstablishedAsRecipient(), ns3::HtFrameExchangeManager::GetBaManager(), ns3::HtFrameExchangeManager::GetBar(), GetBEQueue(), GetBKQueue(), ns3::ApWifiMac::GetEdcaParameterSet(), ns3::WifiDefaultAckManager::GetMaxDistFromStartingSeq(), ns3::MpduAggregator::GetNextAmpdu(), GetQosTxop(), GetTxopQueue(), GetVIQueue(), GetVOQueue(), ns3::WifiDefaultAckManager::IsResponseNeeded(), ns3::HtFrameExchangeManager::MissedBlockAck(), ns3::HtFrameExchangeManager::NeedSetupBlockAck(), ns3::HtFrameExchangeManager::NotifyPacketDiscarded(), ns3::HtFrameExchangeManager::NotifyReceivedNormalAck(), ns3::HtFrameExchangeManager::NotifyTxToEdca(), Receive(), ns3::HtFrameExchangeManager::RetransmitMpduAfterMissedAck(), TestMultiUserScheduler::SelectTxFormat(), ns3::HtFrameExchangeManager::SendAddBaRequest(), ns3::HtFrameExchangeManager::SendAddBaResponse(), ns3::HtFrameExchangeManager::SendDataFrame(), ns3::HtFrameExchangeManager::SendDelbaFrame(), ns3::MeshWifiInterfaceMac::SendManagementFrame(), ns3::HtFrameExchangeManager::SendPsdu(), ns3::HeFrameExchangeManager::SendPsduMap(), ns3::StaWifiMac::SetEdcaParameters(), ns3::StaWifiMac::SetMuEdcaParameters(), ns3::StaWifiMac::SetPowerSaveMode(), OfdmaAckSequenceTest::Transmit(), ns3::RrMultiUserScheduler::TrySendingDlMuPpdu(), and UnblockUnicastTxOnLinks().

+ Here is the caller graph for this function:

◆ GetQosTxop() [2/2]

Ptr< QosTxop > ns3::WifiMac::GetQosTxop ( uint8_t  tid) const

Accessor for a specified EDCA object.

Parameters
tidthe Traffic ID
Returns
a smart pointer to a QosTxop

Definition at line 513 of file wifi-mac.cc.

References GetQosTxop(), and ns3::QosUtilsMapTidToAc().

+ Here is the call graph for this function:

◆ GetShortSlotTimeSupported()

bool ns3::WifiMac::GetShortSlotTimeSupported ( ) const
protected
Returns
whether the device supports short slot time capability.

Definition at line 1080 of file wifi-mac.cc.

References m_shortSlotTimeSupported.

Referenced by ns3::StaWifiMac::GetCapabilities(), GetTypeId(), and ns3::ApWifiMac::UpdateShortSlotTimeEnabled().

+ Here is the caller graph for this function:

◆ GetSsid()

Ssid ns3::WifiMac::GetSsid ( ) const

◆ GetTxop()

Ptr< Txop > ns3::WifiMac::GetTxop ( ) const

Accessor for the Txop object.

Returns
a smart pointer to Txop

Definition at line 491 of file wifi-mac.cc.

References m_txop.

Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), GetTypeId(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().

+ Here is the caller graph for this function:

◆ GetTxopQueue()

Ptr< WifiMacQueue > ns3::WifiMac::GetTxopQueue ( AcIndex  ac) const
virtual

Get the wifi MAC queue of the (Qos)Txop associated with the given AC, if such (Qos)Txop is installed, or a null pointer, otherwise.

Parameters
acthe given Access Category
Returns
the wifi MAC queue of the (Qos)Txop associated with the given AC, if such (Qos)Txop is installed, or a null pointer, otherwise

Reimplemented in ns3::ApWifiMac.

Definition at line 543 of file wifi-mac.cc.

References ns3::AC_BE_NQOS, GetQosTxop(), and m_txop.

Referenced by MultiLinkTxTest::CheckBlockAck(), ns3::FrameExchangeManager::DequeueMpdu(), ns3::WifiDefaultAckManager::ExistInflightOnSameLink(), ns3::HtFrameExchangeManager::GetBar(), ns3::FrameExchangeManager::GetFirstFragmentIfNeeded(), ns3::MsduAggregator::GetNextAmsdu(), ns3::ApWifiMac::GetTxopQueue(), ns3::FrameExchangeManager::NormalAckTimeout(), and ns3::StaWifiMac::TxOk().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTypeId()

◆ GetTypeOfStation()

◆ GetVhtCapabilities()

◆ GetVhtConfiguration()

Ptr< VhtConfiguration > ns3::WifiMac::GetVhtConfiguration ( ) const
Returns
pointer to VhtConfiguration if it exists

Definition at line 1469 of file wifi-mac.cc.

References GetDevice(), and ns3::WifiNetDevice::GetVhtConfiguration().

Referenced by GetVhtCapabilities(), and GetVhtSupported().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetVhtSupported() [1/2]

bool ns3::WifiMac::GetVhtSupported ( const Mac48Address address) const
Parameters
addressthe (link or MLD) address of a remote station
Returns
true if the remote station with the given address supports VHT

Definition at line 1525 of file wifi-mac.cc.

References m_links.

◆ GetVhtSupported() [2/2]

bool ns3::WifiMac::GetVhtSupported ( uint8_t  linkId) const

Return whether the device supports VHT on the given link.

Parameters
linkIdthe ID of the given link.
Returns
true if VHT is supported, false otherwise

Definition at line 1493 of file wifi-mac.cc.

References GetDevice(), GetVhtConfiguration(), GetWifiPhy(), and ns3::WIFI_PHY_BAND_2_4GHZ.

Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), GetExtendedCapabilities(), GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperation(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::ReceiveAssocRequest(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), and ns3::StaWifiMac::UpdateApInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetVIQueue()

Ptr< QosTxop > ns3::WifiMac::GetVIQueue ( ) const
protected

Accessor for the AC_VI channel access function.

Returns
a smart pointer to QosTxop

Definition at line 525 of file wifi-mac.cc.

References ns3::AC_VI, GetQosTxop(), and m_qosSupported.

Referenced by TwoLevelAggregationTest::DoRun(), GetTypeId(), SetViBlockAckInactivityTimeout(), and SetViBlockAckThreshold().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetVOQueue()

Ptr< QosTxop > ns3::WifiMac::GetVOQueue ( ) const
protected

Accessor for the AC_VO channel access function.

Returns
a smart pointer to QosTxop

Definition at line 519 of file wifi-mac.cc.

References ns3::AC_VO, GetQosTxop(), and m_qosSupported.

Referenced by GetTypeId(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), SetVoBlockAckInactivityTimeout(), and SetVoBlockAckThreshold().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWifiPhy()

Ptr< WifiPhy > ns3::WifiMac::GetWifiPhy ( uint8_t  linkId = SINGLE_LINK_OP_ID) const
Parameters
linkIdthe index (starting at 0) of the PHY object to retrieve
Returns
the physical layer attached to this MAC

Definition at line 978 of file wifi-mac.cc.

References GetLink(), NS_LOG_FUNCTION, and ns3::WifiMac::LinkEntity::phy.

Referenced by ns3::WifiProtectionManager::AddUserInfoToMuRts(), EmlsrDlTxopTest::CheckBlockAck(), EmlsrDlTxopTest::CheckEmlNotificationFrame(), EmlsrDlTxopTest::CheckInitialControlFrame(), MultiLinkSetupTest::CheckMlSetup(), EmlsrDlTxopTest::CheckQosFrames(), ns3::MeshWifiInterfaceMac::CheckSupportedRates(), ns3::StaWifiMac::CheckSupportedRates(), TestMultiUserScheduler::ComputeWifiTxVector(), OfdmaAckSequenceTest::DoRun(), EmlNotificationExchangeTest::DoSetup(), EmlsrDlTxopTest::DoSetup(), MultiLinkTxTest::DoSetup(), MultiLinkMuTxTest::DoSetup(), ns3::WifiDefaultAssocManager::EndScanning(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::StaWifiMac::GetCapabilities(), ns3::StaWifiMac::GetCurrentChannel(), ns3::ApWifiMac::GetDsssParameterSet(), ns3::ApWifiMac::GetEhtOperation(), ns3::MeshWifiInterfaceMac::GetFrequencyChannel(), ns3::ApWifiMac::GetHeOperation(), GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::MsduAggregator::GetMaxAmsduSize(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperation(), GetVhtSupported(), ns3::StaWifiMac::MissedBeacons(), ns3::MeshWifiInterfaceMac::Receive(), ns3::ApWifiMac::ReceiveAssocRequest(), TestMultiUserScheduler::SelectTxFormat(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::StartScanning(), ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel(), EmlsrOperationsTestBase::Transmit(), MultiLinkMuTxTest::Transmit(), ns3::RrMultiUserScheduler::TrySendingBasicTf(), ns3::RrMultiUserScheduler::TrySendingBsrpTf(), ns3::StaWifiMac::UpdateApInfo(), and ns3::ApWifiMac::UpdateShortPreambleEnabled().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWifiRemoteStationManager()

Ptr< WifiRemoteStationManager > ns3::WifiMac::GetWifiRemoteStationManager ( uint8_t  linkId = 0) const
Parameters
linkIdthe ID (starting at 0) of the link of the RemoteStationManager object to retrieve
Returns
the remote station manager operating on the given link

Definition at line 910 of file wifi-mac.cc.

References GetLink(), and ns3::WifiMac::LinkEntity::stationManager.

Referenced by EmlsrDlTxopTest::CheckBlockAck(), EmlsrDlTxopTest::CheckInitialControlFrame(), MultiLinkSetupTest::CheckMlSetup(), EmlsrDlTxopTest::CheckPmModeAfterAssociation(), ns3::MeshWifiInterfaceMac::CheckSupportedRates(), ns3::StaWifiMac::Disassociated(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), ns3::EhtFrameExchangeManager::EmlsrSwitchToListening(), ns3::WifiDefaultAssocManager::EndScanning(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::ForwardDown(), ns3::ApWifiMac::GetAssociationId(), ns3::ApWifiMac::GetAssocResp(), ns3::ApWifiMac::GetEhtOperation(), ns3::ApWifiMac::GetHeOperation(), ns3::ApWifiMac::GetHtOperation(), ns3::ApWifiMac::GetLinkIdStaAddrMap(), ns3::MpduAggregator::GetMaxAmpduSize(), ns3::MsduAggregator::GetMaxAmsduSize(), ns3::ApWifiMac::GetMultiLinkElement(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetUseNonErpProtection(), ns3::ApWifiMac::GetVhtOperation(), ns3::FrameExchangeManager::GetWifiRemoteStationManager(), ns3::WifiAckManager::GetWifiRemoteStationManager(), ns3::WifiProtectionManager::GetWifiRemoteStationManager(), ns3::MultiUserScheduler::GetWifiRemoteStationManager(), ns3::ApWifiMac::IsAssociated(), ns3::WifiDefaultAssocManager::NotifyChannelSwitched(), ns3::ApWifiMac::ParseReportedStaInfo(), ns3::ApWifiMac::ProcessPowerManagementFlag(), ns3::MeshWifiInterfaceMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::ApWifiMac::ReceiveAssocRequest(), ns3::StaWifiMac::ReceiveAssocResp(), ns3::ApWifiMac::ReceiveEmlNotification(), ns3::StaWifiMac::ScanningTimeout(), TestMultiUserScheduler::SelectTxFormat(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::ApWifiMac::SetAid(), ns3::ApWifiMac::StaSwitchingToActiveModeOrDeassociated(), ns3::ApWifiMac::StaSwitchingToPsMode(), ns3::RrMultiUserScheduler::TrySendingBasicTf(), ns3::RrMultiUserScheduler::TrySendingBsrpTf(), ns3::ApWifiMac::TxFailed(), ns3::ApWifiMac::TxOk(), ns3::StaWifiMac::UpdateApInfo(), ns3::ApWifiMac::UpdateShortPreambleEnabled(), and ns3::ApWifiMac::UpdateShortSlotTimeEnabled().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasFramesToTransmit()

bool ns3::WifiMac::HasFramesToTransmit ( uint8_t  linkId)
virtual

Check if the MAC has frames to transmit over the given link.

Parameters
linkIdthe ID of the given link.
Returns
whether the MAC has frames to transmit.

Definition at line 550 of file wifi-mac.cc.

References ns3::Txop::HasFramesToTransmit(), m_edca, and m_txop.

Referenced by ns3::StaWifiMac::SetPowerSaveMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NotifyChannelSwitching()

void ns3::WifiMac::NotifyChannelSwitching ( uint8_t  linkId)
virtual

Notify that channel on the given link has been switched.

Parameters
linkIdthe ID of the given link

Reimplemented in ns3::StaWifiMac.

Definition at line 580 of file wifi-mac.cc.

References ConfigurePhyDependentParameters(), GetLink(), NS_LOG_FUNCTION, ns3::WifiRemoteStationManager::SetupPhy(), and ns3::WifiMac::LinkEntity::stationManager.

Referenced by ns3::StaWifiMac::NotifyChannelSwitching(), and ns3::FrameExchangeManager::NotifySwitchingStartNow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NotifyPromiscRx()

void ns3::WifiMac::NotifyPromiscRx ( Ptr< const Packet packet)
Parameters
packetthe packet we received promiscuously

Public method used to fire a MacPromiscRx trace. Implemented for encapsulation purposes.

Definition at line 613 of file wifi-mac.cc.

References m_macPromiscRxTrace.

Referenced by ns3::WifiNetDevice::ForwardUp().

+ Here is the caller graph for this function:

◆ NotifyRx()

void ns3::WifiMac::NotifyRx ( Ptr< const Packet packet)
Parameters
packetthe packet we received

Public method used to fire a MacRx trace. Implemented for encapsulation purposes.

Definition at line 607 of file wifi-mac.cc.

References m_macRxTrace.

Referenced by ns3::WifiNetDevice::ForwardUp().

+ Here is the caller graph for this function:

◆ NotifyRxDrop()

void ns3::WifiMac::NotifyRxDrop ( Ptr< const Packet packet)
Parameters
packetthe packet we received but is not destined for us

Public method used to fire a MacRxDrop trace. Implemented for encapsulation purposes.

Definition at line 619 of file wifi-mac.cc.

References m_macRxDropTrace.

Referenced by ns3::ApWifiMac::Receive(), and ns3::StaWifiMac::Receive().

+ Here is the caller graph for this function:

◆ NotifyTx()

void ns3::WifiMac::NotifyTx ( Ptr< const Packet packet)
Parameters
packetthe packet being enqueued

Public method used to fire a MacTx trace. Implemented for encapsulation purposes. Note this trace indicates that the packet was accepted by the device only. The packet may be dropped later (e.g. if the queue is full).

Definition at line 595 of file wifi-mac.cc.

References m_macTxTrace.

Referenced by ns3::WifiNetDevice::Send(), and ns3::WifiNetDevice::SendFrom().

+ Here is the caller graph for this function:

◆ NotifyTxDrop()

void ns3::WifiMac::NotifyTxDrop ( Ptr< const Packet packet)
Parameters
packetthe packet being dropped

Public method used to fire a MacTxDrop trace. This trace indicates that the packet was dropped before it was queued for transmission (e.g. when a STA is not associated with an AP).

Definition at line 601 of file wifi-mac.cc.

References m_macTxDropTrace.

Referenced by ns3::StaWifiMac::Enqueue(), and ns3::ApWifiMac::Enqueue().

+ Here is the caller graph for this function:

◆ operator=()

WifiMac & ns3::WifiMac::operator= ( const WifiMac )
delete

◆ Receive()

void ns3::WifiMac::Receive ( Ptr< const WifiMpdu mpdu,
uint8_t  linkId 
)
protectedvirtual

This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received on the given link.

The implementation is intended to capture logic that is going to be common to all (or most) derived classes. Specifically, handling of Block Ack management frames is dealt with here.

This method will need, however, to be overridden by derived classes so that they can perform their data handling before invoking the base version.

The given link may be undefined in some cases (e.g., in case of QoS Data frames received in the context of a Block Ack agreement – because the BlockAckManager does not have to record the link each buffered MPDU has been received on); in such a cases, the value of linkId should be WIFI_LINKID_UNDEFINED.

Parameters
mpduthe MPDU that has been received.
linkIdthe ID of the given link

Reimplemented in ns3::MeshWifiInterfaceMac, ns3::AdhocWifiMac, ns3::ApWifiMac, and ns3::StaWifiMac.

Definition at line 1223 of file wifi-mac.cc.

References ns3::WifiActionHeader::BLOCK_ACK, ns3::WifiActionHeader::BLOCK_ACK_ADDBA_REQUEST, ns3::WifiActionHeader::BLOCK_ACK_ADDBA_RESPONSE, ns3::WifiActionHeader::BLOCK_ACK_DELBA, ns3::WifiActionHeader::ActionValue::blockAck, ns3::Mac48Address::ConvertFrom(), ns3::WifiActionHeader::GetAction(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetAddr2(), GetAddress(), ns3::QosTxop::GetBaManager(), ns3::WifiActionHeader::GetCategory(), GetDevice(), GetFrameExchangeManager(), GetLink(), GetQosSupported(), GetQosTxop(), ns3::MgtAddBaResponseHeader::GetTid(), ns3::MgtDelBaHeader::GetTid(), ns3::WifiMacHeader::GetType(), ns3::QosTxop::GotAddBaResponse(), ns3::QosTxop::GotDelBaFrame(), ns3::WifiMacHeader::HasData(), ns3::WifiMacHeader::IsAction(), ns3::MgtDelBaHeader::IsByOriginator(), ns3::WifiMacHeader::IsData(), ns3::WifiMacHeader::IsMgt(), ns3::MakeCallback(), NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, and ns3::HtFrameExchangeManager::SendDelbaFrame().

Referenced by WifiMac(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), and ns3::StaWifiMac::Receive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResetWifiPhys()

void ns3::WifiMac::ResetWifiPhys ( )

Remove currently attached WifiPhy objects from this MAC.

Definition at line 985 of file wifi-mac.cc.

References m_links, and NS_LOG_FUNCTION.

Referenced by SetWifiPhys().

+ Here is the caller graph for this function:

◆ SetAddress()

void ns3::WifiMac::SetAddress ( Mac48Address  address)
virtual
Parameters
addressthe current address of this MAC layer.

Definition at line 443 of file wifi-mac.cc.

References m_address, and NS_LOG_FUNCTION.

Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), and ns3::WifiNetDevice::SetAddress().

+ Here is the caller graph for this function:

◆ SetBeBlockAckInactivityTimeout()

void ns3::WifiMac::SetBeBlockAckInactivityTimeout ( uint16_t  timeout)
private

Set BE block ack inactivity timeout.

Parameters
timeoutthe BE block ack inactivity timeout.

Definition at line 1624 of file wifi-mac.cc.

References GetBEQueue(), m_qosSupported, NS_LOG_FUNCTION, ns3::QosTxop::SetBlockAckInactivityTimeout(), and timeout.

Referenced by GetTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBeBlockAckThreshold()

void ns3::WifiMac::SetBeBlockAckThreshold ( uint8_t  threshold)
private

Set the block ack threshold for AC_BE.

Parameters
thresholdthe block ack threshold for AC_BE.

Definition at line 1584 of file wifi-mac.cc.

References GetBEQueue(), m_qosSupported, NS_LOG_FUNCTION, and ns3::QosTxop::SetBlockAckThreshold().

Referenced by GetTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBkBlockAckInactivityTimeout()

void ns3::WifiMac::SetBkBlockAckInactivityTimeout ( uint16_t  timeout)
private

Set BK block ack inactivity timeout.

Parameters
timeoutthe BK block ack inactivity timeout.

Definition at line 1634 of file wifi-mac.cc.

References GetBKQueue(), m_qosSupported, NS_LOG_FUNCTION, ns3::QosTxop::SetBlockAckInactivityTimeout(), and timeout.

Referenced by GetTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBkBlockAckThreshold()

void ns3::WifiMac::SetBkBlockAckThreshold ( uint8_t  threshold)
private

Set the block ack threshold for AC_BK.

Parameters
thresholdthe block ack threshold for AC_BK.

Definition at line 1594 of file wifi-mac.cc.

References GetBKQueue(), m_qosSupported, NS_LOG_FUNCTION, and ns3::QosTxop::SetBlockAckThreshold().

Referenced by GetTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBssid()

void ns3::WifiMac::SetBssid ( Mac48Address  bssid,
uint8_t  linkId 
)
Parameters
bssidthe BSSID of the network that the given link belongs to.
linkIdthe ID of the given link

Definition at line 469 of file wifi-mac.cc.

References ns3::WifiMac::LinkEntity::feManager, GetLink(), and NS_LOG_FUNCTION.

Referenced by ns3::StaWifiMac::ReceiveAssocResp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetCtsToSelfSupported()

void ns3::WifiMac::SetCtsToSelfSupported ( bool  enable)

Enable or disable CTS-to-self feature.

Parameters
enabletrue if CTS-to-self is to be supported, false otherwise

Definition at line 1066 of file wifi-mac.cc.

References m_ctsToSelfSupported, and NS_LOG_FUNCTION.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ SetDevice()

void ns3::WifiMac::SetDevice ( const Ptr< WifiNetDevice device)

Sets the device this PHY is associated with.

Parameters
devicethe device this PHY is associated with

Definition at line 431 of file wifi-mac.cc.

References m_device.

Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), DcfImmediateAccessBroadcastTestCase::DoRun(), and HeAggregationTest::DoRunSubTest().

+ Here is the caller graph for this function:

◆ SetDsssSupported()

void ns3::WifiMac::SetDsssSupported ( bool  enable,
uint8_t  linkId 
)
private

Enable or disable DSSS support for the given link.

Parameters
enablewhether DSSS is supported
linkIdthe ID of the given link

Definition at line 1053 of file wifi-mac.cc.

References ns3::WifiMac::LinkEntity::dsssSupported, GetLink(), and NS_LOG_FUNCTION.

Referenced by ConfigurePhyDependentParameters(), and SetErpSupported().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetErpSupported()

void ns3::WifiMac::SetErpSupported ( bool  enable,
uint8_t  linkId 
)
private

Enable or disable ERP support for the given link.

Parameters
enablewhether ERP is supported
linkIdthe ID of the given link

Definition at line 1042 of file wifi-mac.cc.

References ns3::WifiMac::LinkEntity::erpSupported, GetLink(), NS_LOG_FUNCTION, and SetDsssSupported().

Referenced by ConfigurePhyDependentParameters().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetForwardUpCallback()

void ns3::WifiMac::SetForwardUpCallback ( ForwardUpCallback  upCallback)
Parameters
upCallbackthe callback to invoke when a packet must be forwarded up the stack.

Definition at line 1092 of file wifi-mac.cc.

References m_forwardUp, and NS_LOG_FUNCTION.

Referenced by ns3::WifiNetDevice::CompleteConfig().

+ Here is the caller graph for this function: