base class for all MAC-level wifi objects. More...
#include "wifi-mac.h"
Classes | |
struct | LinkEntity |
Structure holding information specific to a single link. More... | |
Public Types | |
typedef Callback< void, Ptr< const Packet >, Mac48Address, Mac48Address > | ForwardUpCallback |
This type defines the callback of a higher layer that a WifiMac(-derived) object invokes to pass a packet up the stack. More... | |
using | OriginatorAgreementOptConstRef = std::optional< std::reference_wrapper< const OriginatorBlockAckAgreement > > |
optional const reference to OriginatorBlockAckAgreement More... | |
using | RecipientAgreementOptConstRef = std::optional< std::reference_wrapper< const RecipientBlockAckAgreement > > |
optional const reference to RecipientBlockAckAgreement More... | |
Public Member Functions | |
WifiMac () | |
WifiMac (const WifiMac &)=delete | |
~WifiMac () override | |
virtual bool | CanForwardPacketsTo (Mac48Address to) const =0 |
Return true if packets can be forwarded to the given destination, false otherwise. More... | |
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< ChannelAccessManager > | GetChannelAccessManager (uint8_t linkId=SINGLE_LINK_OP_ID) const |
Get the Channel Access Manager associated with the given link. More... | |
Ptr< WifiNetDevice > | GetDevice () const |
Return the device this PHY is associated with. More... | |
bool | GetDsssSupported (uint8_t linkId) const |
Return whether the device supports DSSS on the given link. More... | |
EhtCapabilities | GetEhtCapabilities (uint8_t linkId) const |
Return the EHT capabilities of the device for the given link. More... | |
Ptr< EhtConfiguration > | GetEhtConfiguration () const |
bool | GetEhtSupported () const |
Return whether the device supports EHT. More... | |
bool | GetEhtSupported (const Mac48Address &address) const |
bool | GetErpSupported (uint8_t linkId) const |
Return whether the device supports ERP on the given link. More... | |
ExtendedCapabilities | GetExtendedCapabilities () const |
Return the extended capabilities of the device. More... | |
Ptr< FrameExchangeManager > | GetFrameExchangeManager (uint8_t linkId=SINGLE_LINK_OP_ID) const |
Get the Frame Exchange Manager associated with the given link. More... | |
HeCapabilities | GetHeCapabilities (uint8_t linkId) const |
Return the HE capabilities of the device for the given link. More... | |
Ptr< HeConfiguration > | GetHeConfiguration () const |
bool | GetHeSupported () const |
Return whether the device supports HE. More... | |
bool | GetHeSupported (const Mac48Address &address) const |
HtCapabilities | GetHtCapabilities (uint8_t linkId) const |
Return the HT capabilities of the device for the given link. More... | |
Ptr< HtConfiguration > | GetHtConfiguration () const |
bool | GetHtSupported () const |
Return whether the device supports HT. More... | |
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. More... | |
Mac48Address | GetLocalAddress (const Mac48Address &remoteAddr) const |
Get the local MAC address used to communicate with a remote STA. More... | |
Ptr< WifiMacQueueScheduler > | GetMacQueueScheduler () const |
Get the wifi MAC queue scheduler. More... | |
uint32_t | GetMaxAmpduSize (AcIndex ac) const |
Return the maximum A-MPDU size of the given Access Category. More... | |
uint16_t | GetMaxAmsduSize (AcIndex ac) const |
Return the maximum A-MSDU size of the given Access Category. More... | |
std::optional< Mac48Address > | GetMldAddress (const Mac48Address &remoteAddr) const |
uint8_t | GetNLinks () const |
Get the number of links (can be greater than 1 for 11be devices only). More... | |
bool | GetQosSupported () const |
Return whether the device supports QoS. More... | |
Ptr< QosTxop > | GetQosTxop (AcIndex ac) const |
Accessor for a specified EDCA object. More... | |
Ptr< QosTxop > | GetQosTxop (uint8_t tid) const |
Accessor for a specified EDCA object. More... | |
Ssid | GetSsid () const |
Ptr< Txop > | GetTxop () const |
Accessor for the Txop object. More... | |
virtual Ptr< WifiMacQueue > | GetTxopQueue (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. More... | |
TypeOfStation | GetTypeOfStation () const |
Return the type of station. More... | |
VhtCapabilities | GetVhtCapabilities (uint8_t linkId) const |
Return the VHT capabilities of the device for the given link. More... | |
Ptr< VhtConfiguration > | GetVhtConfiguration () const |
bool | GetVhtSupported (const Mac48Address &address) const |
bool | GetVhtSupported (uint8_t linkId) const |
Return whether the device supports VHT on the given link. More... | |
Ptr< WifiPhy > | GetWifiPhy (uint8_t linkId=SINGLE_LINK_OP_ID) const |
Ptr< WifiRemoteStationManager > | GetWifiRemoteStationManager (uint8_t linkId=0) const |
virtual void | NotifyChannelSwitching (uint8_t linkId) |
Notify that channel on the given link has been switched. More... | |
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) |
WifiMac & | operator= (const WifiMac &)=delete |
void | ResetWifiPhys () |
Remove currently attached WifiPhy objects from this MAC. More... | |
virtual void | SetAddress (Mac48Address address) |
void | SetBssid (Mac48Address bssid, uint8_t linkId) |
void | SetCtsToSelfSupported (bool enable) |
Enable or disable CTS-to-self feature. More... | |
void | SetDevice (const Ptr< WifiNetDevice > device) |
Sets the device this PHY is associated with. More... | |
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. More... | |
void | SetPromisc () |
Sets the interface in promiscuous mode. More... | |
void | SetSsid (Ssid ssid) |
void | SetTypeOfStation (TypeOfStation type) |
This method is invoked by a subclass to specify what type of station it is implementing. More... | |
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 |
![]() | |
Object () | |
Constructor. More... | |
~Object () override | |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose () |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. More... | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. More... | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. More... | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized () const |
Check if the object has been initialized. More... | |
![]() | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId () |
Register this type. More... | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
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. More... | |
void | DoDispose () override |
Destructor implementation. More... | |
void | DoInitialize () override |
Initialize() implementation. More... | |
void | ForwardUp (Ptr< const Packet > packet, Mac48Address from, Mac48Address to) |
Forward the packet up to the device. More... | |
Ptr< QosTxop > | GetBEQueue () const |
Accessor for the AC_BE channel access function. More... | |
Ptr< QosTxop > | GetBKQueue () const |
Accessor for the AC_BK channel access function. More... | |
LinkEntity & | GetLink (uint8_t linkId) const |
Get a reference to the link associated with the given ID. More... | |
bool | GetShortSlotTimeSupported () const |
Ptr< QosTxop > | GetVIQueue () const |
Accessor for the AC_VI channel access function. More... | |
Ptr< QosTxop > | GetVOQueue () const |
Accessor for the AC_VO channel access function. More... | |
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. More... | |
void | SetQosSupported (bool enable) |
Enable or disable QoS support for the device. More... | |
void | SetShortSlotTimeSupported (bool enable) |
Enable or disable short slot time feature. More... | |
![]() | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. More... | |
Protected Attributes | |
Callback< void > | m_linkDown |
Callback when a link is down. More... | |
Callback< void > | m_linkUp |
Callback when a link is up. More... | |
Ptr< MacRxMiddle > | m_rxMiddle |
RX middle (defragmentation etc.) More... | |
Ptr< WifiMacQueueScheduler > | m_scheduler |
wifi MAC queue scheduler More... | |
Ptr< MacTxMiddle > | m_txMiddle |
TX middle (aggregation etc.) More... | |
Ptr< Txop > | m_txop |
TXOP used for transmission of frames to non-QoS peers. More... | |
Private Types | |
typedef void(* | DroppedMpduCallback) (WifiMacDropReason reason, Ptr< const WifiMpdu > mpdu) |
TracedCallback signature for MPDU drop events. More... | |
typedef TracedCallback< WifiMacDropReason, Ptr< const WifiMpdu > > | DroppedMpduTracedCallback |
TracedCallback for MPDU drop events typedef. More... | |
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. More... | |
typedef void(* | MpduResponseTimeoutCallback) (uint8_t reason, Ptr< const WifiMpdu > mpdu, const WifiTxVector &txVector) |
TracedCallback signature for MPDU response timeout events. More... | |
typedef TracedCallback< uint8_t, Ptr< const WifiMpdu >, const WifiTxVector & > | MpduResponseTimeoutTracedCallback |
TracedCallback for MPDU response timeout events typedef. More... | |
typedef TracedCallback< Ptr< const WifiMpdu > > | MpduTracedCallback |
TracedCallback for acked/nacked MPDUs typedef. More... | |
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. More... | |
typedef TracedCallback< uint8_t, WifiPsduMap *, const std::set< Mac48Address > *, std::size_t > | PsduMapResponseTimeoutTracedCallback |
TracedCallback for PSDU map response timeout events typedef. More... | |
typedef void(* | PsduResponseTimeoutCallback) (uint8_t reason, Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) |
TracedCallback signature for PSDU response timeout events. More... | |
typedef TracedCallback< uint8_t, Ptr< const WifiPsdu >, const WifiTxVector & > | PsduResponseTimeoutTracedCallback |
TracedCallback for PSDU response timeout events typedef. More... | |
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. More... | |
virtual std::unique_ptr< LinkEntity > | CreateLinkEntity () const |
Create a LinkEntity object. More... | |
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. More... | |
void | SetBeBlockAckInactivityTimeout (uint16_t timeout) |
Set BE block ack inactivity timeout. More... | |
void | SetBeBlockAckThreshold (uint8_t threshold) |
Set the block ack threshold for AC_BE. More... | |
void | SetBkBlockAckInactivityTimeout (uint16_t timeout) |
Set BK block ack inactivity timeout. More... | |
void | SetBkBlockAckThreshold (uint8_t threshold) |
Set the block ack threshold for AC_BK. More... | |
void | SetDsssSupported (bool enable, uint8_t linkId) |
Enable or disable DSSS support for the given link. More... | |
void | SetErpSupported (bool enable, uint8_t linkId) |
Enable or disable ERP support for the given link. More... | |
void | SetupEdcaQueue (AcIndex ac) |
This method is a private utility invoked to configure the channel access function for the specified Access Category. More... | |
Ptr< FrameExchangeManager > | SetupFrameExchangeManager (WifiStandard standard) |
Create a Frame Exchange Manager depending on the supported version of the standard. More... | |
void | SetViBlockAckInactivityTimeout (uint16_t timeout) |
Set VI block ack inactivity timeout. More... | |
void | SetViBlockAckThreshold (uint8_t threshold) |
Set the block ack threshold for AC_VI. More... | |
void | SetVoBlockAckInactivityTimeout (uint16_t timeout) |
Set VO block ack inactivity timeout. More... | |
void | SetVoBlockAckThreshold (uint8_t threshold) |
Set the block ack threshold for AC_VO. More... | |
Private Attributes | |
MpduTracedCallback | m_ackedMpduCallback |
ack'ed MPDU callback More... | |
Mac48Address | m_address |
MAC address of this station. More... | |
uint32_t | m_beMaxAmpduSize |
maximum A-MPDU size for AC_BE (in bytes) More... | |
uint16_t | m_beMaxAmsduSize |
maximum A-MSDU size for AC_BE (in bytes) More... | |
uint32_t | m_bkMaxAmpduSize |
maximum A-MPDU size for AC_BK (in bytes) More... | |
uint16_t | m_bkMaxAmsduSize |
maximum A-MSDU size for AC_BK (in bytes) More... | |
bool | m_ctsToSelfSupported |
flag indicating whether CTS-To-Self is supported More... | |
Ptr< WifiNetDevice > | m_device |
Pointer to the device. More... | |
DroppedMpduTracedCallback | m_droppedMpduCallback |
This trace indicates that an MPDU was dropped for the given reason. More... | |
EdcaQueues | m_edca |
This is a map from Access Category index to the corresponding channel access function. More... | |
ForwardUpCallback | m_forwardUp |
Callback to forward packet up the stack. More... | |
std::vector< std::unique_ptr< LinkEntity > > | m_links |
vector of Link objects More... | |
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). More... | |
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. More... | |
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). More... | |
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. More... | |
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. More... | |
MpduResponseTimeoutTracedCallback | m_mpduResponseTimeoutCallback |
MPDU response timeout traced callback. More... | |
MpduTracedCallback | m_nackedMpduCallback |
nack'ed MPDU callback More... | |
PsduMapResponseTimeoutTracedCallback | m_psduMapResponseTimeoutCallback |
PSDU map response timeout traced callback. More... | |
PsduResponseTimeoutTracedCallback | m_psduResponseTimeoutCallback |
PSDU response timeout traced callback. More... | |
bool | m_qosSupported |
This Boolean is set true iff this WifiMac is to model 802.11e/WMM style Quality of Service. More... | |
bool | m_shortSlotTimeSupported |
flag whether short slot time is supported More... | |
Ssid | m_ssid |
Service Set ID (SSID) More... | |
TracedCallback< const WifiMacHeader & > | m_txErrCallback |
transmit error callback More... | |
TracedCallback< const WifiMacHeader & > | m_txOkCallback |
transmit OK callback More... | |
TypeOfStation | m_typeOfStation |
the type of station More... | |
uint32_t | m_viMaxAmpduSize |
maximum A-MPDU size for AC_VI (in bytes) More... | |
uint16_t | m_viMaxAmsduSize |
maximum A-MSDU size for AC_VI (in bytes) More... | |
uint32_t | m_voMaxAmpduSize |
maximum A-MPDU size for AC_VO (in bytes) More... | |
uint16_t | m_voMaxAmsduSize |
maximum A-MSDU size for AC_VO (in bytes) More... | |
Additional Inherited Members | |
![]() | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
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).
ns3::WifiMac is accessible through the following paths with Config::Set and Config::Connect:
Ssid
Size of this type is 568 bytes (on a 64-bit architecture).
Definition at line 93 of file wifi-mac.h.
|
private |
TracedCallback signature for MPDU drop events.
reason | the reason why the MPDU was dropped ( |
mpdu | the dropped MPDU |
Definition at line 976 of file wifi-mac.h.
|
private |
TracedCallback for MPDU drop events typedef.
Definition at line 979 of file wifi-mac.h.
|
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 911 of file wifi-mac.h.
typedef Callback<void, Ptr<const Packet>, Mac48Address, Mac48Address> ns3::WifiMac::ForwardUpCallback |
This type defines the callback of a higher layer that a WifiMac(-derived) object invokes to pass a packet up the stack.
packet | the packet that has been received. |
from | the MAC address of the device that sent the packet. |
to | the MAC address of the device that the packet is destined for. |
Definition at line 352 of file wifi-mac.h.
|
private |
TracedCallback signature for MPDU response timeout events.
reason | the reason why the timer was started |
mpdu | the MPDU whose response was not received before the timeout |
txVector | the TXVECTOR used to transmit the MPDU |
Definition at line 999 of file wifi-mac.h.
|
private |
TracedCallback for MPDU response timeout events typedef.
Definition at line 1005 of file wifi-mac.h.
|
private |
TracedCallback for acked/nacked MPDUs typedef.
Definition at line 987 of file wifi-mac.h.
using ns3::WifiMac::OriginatorAgreementOptConstRef = std::optional<std::reference_wrapper<const OriginatorBlockAckAgreement> > |
optional const reference to OriginatorBlockAckAgreement
Definition at line 558 of file wifi-mac.h.
|
private |
TracedCallback signature for PSDU map response timeout events.
reason | the reason why the timer was started |
psduMap | the PSDU map for which not all responses were received before the timeout |
missingStations | the MAC addresses of the stations that did not respond |
nTotalStations | the total number of stations that had to respond |
Definition at line 1042 of file wifi-mac.h.
|
private |
TracedCallback for PSDU map response timeout events typedef.
Definition at line 1049 of file wifi-mac.h.
|
private |
TracedCallback signature for PSDU response timeout events.
reason | the reason why the timer was started |
psdu | the PSDU whose response was not received before the timeout |
txVector | the TXVECTOR used to transmit the PSDU |
Definition at line 1020 of file wifi-mac.h.
|
private |
TracedCallback for PSDU response timeout events typedef.
Definition at line 1026 of file wifi-mac.h.
using ns3::WifiMac::RecipientAgreementOptConstRef = std::optional<std::reference_wrapper<const RecipientBlockAckAgreement> > |
optional const reference to RecipientBlockAckAgreement
Definition at line 561 of file wifi-mac.h.
ns3::WifiMac::WifiMac | ( | ) |
Definition at line 49 of file wifi-mac.cc.
References m_rxMiddle, m_txMiddle, ns3::MakeCallback(), NS_LOG_FUNCTION, and Receive().
|
override |
Definition at line 60 of file wifi-mac.cc.
References NS_LOG_FUNCTION.
|
delete |
|
pure virtual |
Return true if packets can be forwarded to the given destination, false otherwise.
to | the address to which the packet should be sent |
Implemented in ns3::StaWifiMac, ns3::ApWifiMac, ns3::AdhocWifiMac, ns3::OcbWifiMac, and ns3::MeshWifiInterfaceMac.
Referenced by ns3::QosTxop::PeekNextMpdu().
|
protectedvirtual |
cwMin | the minimum contention window size |
cwMax | the 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 622 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().
|
private |
dcf | the DCF to be configured |
cwmin | the minimum contention window for the DCF |
cwmax | the maximum contention window for the DCF |
isDsss | vector of flags to indicate whether PHY is DSSS or HR/DSSS for every link |
ac | the access category for the DCF |
Configure the DCF with appropriate values depending on the given access category.
Definition at line 645 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, NS_LOG_FUNCTION, ns3::Txop::SetAifsns(), ns3::Txop::SetMaxCws(), ns3::Txop::SetMinCws(), and ns3::Txop::SetTxopLimits().
Referenced by ConfigureContentionWindow().
|
private |
Configure PHY dependent parameters such as CWmin and CWmax on the given link.
linkId | the ID of the given link |
Definition at line 771 of file wifi-mac.cc.
References ConfigureContentionWindow(), GetLink(), ns3::WifiPhy::GetStandard(), m_links, NS_LOG_FUNCTION, third::phy, 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().
|
virtual |
standard | the 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::ApWifiMac, ns3::OcbWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 724 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(), Bug2831TestCase::DoRun(), and HeAggregationTest::DoRunSubTest().
|
privatevirtual |
Create a LinkEntity object.
Reimplemented in ns3::StaWifiMac, and ns3::ApWifiMac.
Definition at line 892 of file wifi-mac.cc.
Referenced by SetWifiPhys(), and SetWifiRemoteStationManagers().
This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack.
mpdu | the MPDU containing the A-MSDU. |
Reimplemented in ns3::ApWifiMac.
Definition at line 1224 of file wifi-mac.cc.
References ForwardUp(), NS_LOG_FUNCTION, and ns3::PeekPointer().
Referenced by ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), and ns3::StaWifiMac::Receive().
|
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 369 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::OcbWifiMac::DoDispose(), ns3::ApWifiMac::DoDispose(), and ns3::StaWifiMac::DoDispose().
|
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.
remoteAddr | the MAC address of the remote single link device |
Reimplemented in ns3::StaWifiMac, and ns3::ApWifiMac.
Definition at line 1277 of file wifi-mac.cc.
References m_address.
Referenced by GetLocalAddress().
|
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 353 of file wifi-mac.cc.
References ns3::Object::Initialize(), m_edca, m_txop, and NS_LOG_FUNCTION.
Referenced by ns3::ApWifiMac::DoInitialize().
|
pure virtual |
packet | the packet to send. |
to | the 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::StaWifiMac, ns3::ApWifiMac, ns3::AdhocWifiMac, ns3::OcbWifiMac, and ns3::MeshWifiInterfaceMac.
|
virtual |
packet | the packet to send. |
to | the address to which the packet should be sent. |
from | the 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::ApWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 1089 of file wifi-mac.cc.
References GetAddress(), and NS_FATAL_ERROR.
Referenced by ns3::WifiNetDevice::Send(), and ns3::WifiNetDevice::SendFrom().
|
protected |
Forward the packet up to the device.
packet | the packet that we are forwarding up to the device |
from | the address of the source |
to | the address of the destination |
Definition at line 1100 of file wifi-mac.cc.
References m_forwardUp, and NS_LOG_FUNCTION.
Referenced by DeaggregateAmsduAndForward(), ns3::ApWifiMac::DeaggregateAmsduAndForward(), ns3::MeshWifiInterfaceMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), and ns3::StaWifiMac::Receive().
Mac48Address ns3::WifiMac::GetAddress | ( | ) | const |
Definition at line 443 of file wifi-mac.cc.
References m_address.
Referenced by NodeStatistics::NodeStatistics(), MultiLinkSetupTest::CheckAssocResponse(), MultiLinkSetupTest::CheckBeacon(), MultiLinkMuTxTest::CheckBlockAck(), MultiLinkSetupTest::CheckMlSetup(), ns3::OcbWifiMac::ConfigureStandard(), ns3::ApWifiMac::DoInitialize(), ns3::MeshWifiInterfaceMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::ApWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), Enqueue(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::ForwardDown(), ns3::AnimationInterface::GenericWirelessTxTrace(), ns3::WifiNetDevice::GetAddress(), ns3::HtFrameExchangeManager::GetBar(), ns3::StaWifiMac::GetMultiLinkElement(), ns3::ApWifiMac::GetMultiLinkElement(), Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Report(), TestMultiUserScheduler::SelectTxFormat(), ns3::ApWifiMac::SendAssocResp(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::OcbWifiMac::SendVsc(), SetupFrameExchangeManager(), ns3::ApWifiMac::TxFailed(), ns3::ApWifiMac::TxOk(), and ns3::AnimationInterface::WifiPhyTxBeginTrace().
WifiMac::OriginatorAgreementOptConstRef ns3::WifiMac::GetBaAgreementEstablishedAsOriginator | ( | Mac48Address | recipient, |
uint8_t | tid | ||
) | const |
recipient | (link or device) MAC address of the recipient |
tid | traffic ID. |
Checks if an originator block ack agreement is established with station addressed by recipient for TID tid.
Definition at line 1283 of file wifi-mac.cc.
References ns3::QosTxop::GetBaManager(), GetMldAddress(), and GetQosTxop().
Referenced by ns3::QosTxop::CompleteMpduTx(), ns3::WifiDefaultAckManager::ExistInflightOnSameLink(), ns3::HtFrameExchangeManager::GetBar(), GetBarTypeAsOriginator(), GetBaTypeAsOriginator(), ns3::WifiDefaultAckManager::GetMaxDistFromStartingSeq(), ns3::MpduAggregator::GetNextAmpdu(), ns3::QosTxop::GetNextMpdu(), ns3::QosTxop::IsQosOldPacket(), ns3::HtFrameExchangeManager::MissedBlockAck(), ns3::HtFrameExchangeManager::NotifyReceivedNormalAck(), ns3::QosTxop::PeekNextMpdu(), ns3::HtFrameExchangeManager::ReleaseSequenceNumbers(), ns3::HtFrameExchangeManager::RetransmitMpduAfterMissedAck(), ns3::HeFrameExchangeManager::StartFrameExchange(), ns3::WifiDefaultAckManager::TryAddMpdu(), and ns3::RrMultiUserScheduler::TrySendingDlMuPpdu().
WifiMac::RecipientAgreementOptConstRef ns3::WifiMac::GetBaAgreementEstablishedAsRecipient | ( | Mac48Address | originator, |
uint8_t | tid | ||
) | const |
originator | (link or device) MAC address of the originator |
tid | traffic ID. |
Checks if a recipient block ack agreement is established with station addressed by originator for TID tid.
Definition at line 1297 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().
BlockAckReqType ns3::WifiMac::GetBarTypeAsOriginator | ( | const Mac48Address & | recipient, |
uint8_t | tid | ||
) | const |
recipient | MAC address of recipient |
tid | traffic ID |
This function returns the type of Block Ack Requests sent to the recipient.
Definition at line 1314 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().
BlockAckReqType ns3::WifiMac::GetBarTypeAsRecipient | ( | Mac48Address | originator, |
uint8_t | tid | ||
) | const |
originator | MAC address of originator |
tid | traffic ID |
This function returns the type of Block Ack Requests sent by the originator.
Definition at line 1332 of file wifi-mac.cc.
References GetBaAgreementEstablishedAsRecipient(), and NS_ABORT_MSG_IF.
BlockAckType ns3::WifiMac::GetBaTypeAsOriginator | ( | const Mac48Address & | recipient, |
uint8_t | tid | ||
) | const |
recipient | MAC address |
tid | traffic ID |
This function returns the type of Block Acks sent by the recipient.
Definition at line 1305 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().
BlockAckType ns3::WifiMac::GetBaTypeAsRecipient | ( | Mac48Address | originator, |
uint8_t | tid | ||
) | const |
originator | MAC address of originator |
tid | traffic ID |
This function returns the type of Block Acks sent to the originator.
Definition at line 1323 of file wifi-mac.cc.
References GetBaAgreementEstablishedAsRecipient(), and NS_ABORT_MSG_IF.
Referenced by ns3::WifiDefaultAckManager::TryUlMuTransmission().
Accessor for the AC_BE channel access function.
Definition at line 524 of file wifi-mac.cc.
References ns3::AC_BE, GetQosTxop(), and m_qosSupported.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), GetTypeId(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendProbeResp(), SetBeBlockAckInactivityTimeout(), and SetBeBlockAckThreshold().
Accessor for the AC_BK channel access function.
Definition at line 530 of file wifi-mac.cc.
References ns3::AC_BK, GetQosTxop(), and m_qosSupported.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), SetBkBlockAckInactivityTimeout(), and SetBkBlockAckThreshold().
Mac48Address ns3::WifiMac::GetBssid | ( | uint8_t | linkId | ) | const |
linkId | the ID of the given link |
Definition at line 469 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(), and ns3::StaWifiMac::Receive().
Ptr< ChannelAccessManager > ns3::WifiMac::GetChannelAccessManager | ( | uint8_t | linkId = SINGLE_LINK_OP_ID | ) | const |
Get the Channel Access Manager associated with the given link.
linkId | the ID of the given link |
Definition at line 846 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().
Ptr< WifiNetDevice > ns3::WifiMac::GetDevice | ( | ) | const |
Return the device this PHY is associated with.
Definition at line 430 of file wifi-mac.cc.
References m_device.
Referenced by ns3::MeshWifiInterfaceMac::CheckSupportedRates(), GetEhtConfiguration(), GetEhtSupported(), GetHeConfiguration(), GetHeSupported(), GetHtConfiguration(), GetHtSupported(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), GetVhtConfiguration(), GetVhtSupported(), Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::StaWifiMac::Receive(), MultiLinkTxTest::StartTraffic(), MultiLinkMuTxTest::StartTraffic(), ReleaseSeqNoAfterCtsTimeoutTest::StartTraffic(), and ReleaseSeqNoAfterCtsTimeoutTest::Transmit().
bool ns3::WifiMac::GetDsssSupported | ( | uint8_t | linkId | ) | const |
Return whether the device supports DSSS on the given link.
linkId | the ID of the given link |
Definition at line 1036 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().
EhtCapabilities ns3::WifiMac::GetEhtCapabilities | ( | uint8_t | linkId | ) | const |
Return the EHT capabilities of the device for the given link.
linkId | the ID of the given link |
Definition at line 1727 of file wifi-mac.cc.
References ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_160_MHZ, ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_20_MHZ_ONLY, ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_NOT_LARGER_THAN_80_MHZ, GetEhtSupported(), GetLink(), m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, ns3::EhtCapabilities::m_phyCapabilities, m_viMaxAmpduSize, m_viMaxAmsduSize, m_voMaxAmpduSize, m_voMaxAmsduSize, max, min, NS_ASSERT, NS_LOG_FUNCTION, third::phy, ns3::WifiMac::LinkEntity::phy, ns3::EhtCapabilities::SetMaxAmpduLength(), ns3::EhtCapabilities::SetMaxMpduLength(), ns3::EhtCapabilities::SetSupportedRxEhtMcsAndNss(), ns3::EhtCapabilities::SetSupportedTxEhtMcsAndNss(), ns3::EhtPhyCapabilities::supportRx1024And4096QamForRuSmallerThan242Tones, ns3::EhtPhyCapabilities::supportTx1024And4096QamForRuSmallerThan242Tones, ns3::WIFI_MOD_CLASS_EHT, and ns3::WIFI_PHY_BAND_2_4GHZ.
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
Ptr< EhtConfiguration > ns3::WifiMac::GetEhtConfiguration | ( | ) | const |
Definition at line 1359 of file wifi-mac.cc.
References GetDevice(), and ns3::WifiNetDevice::GetEhtConfiguration().
Referenced by GetEhtSupported().
bool ns3::WifiMac::GetEhtSupported | ( | ) | const |
Return whether the device supports EHT.
Definition at line 1384 of file wifi-mac.cc.
References GetDevice(), and GetEhtConfiguration().
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), GetEhtCapabilities(), ns3::ApWifiMac::GetEhtOperation(), GetHeCapabilities(), ns3::ApWifiMac::GetReducedNeighborReport(), ns3::RrMultiUserScheduler::GetTxVectorForUlMu(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::ReceiveAssocRequest(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), ns3::RrMultiUserScheduler::TrySendingDlMuPpdu(), and ns3::StaWifiMac::UpdateApInfo().
bool ns3::WifiMac::GetEhtSupported | ( | const Mac48Address & | address | ) | const |
address | the (link or MLD) address of a remote station |
Definition at line 1429 of file wifi-mac.cc.
References first::address, and m_links.
bool ns3::WifiMac::GetErpSupported | ( | uint8_t | linkId | ) | const |
Return whether the device supports ERP on the given link.
linkId | the ID of the given link |
Definition at line 1012 of file wifi-mac.cc.
References ns3::WifiMac::LinkEntity::erpSupported, and GetLink().
Referenced by ns3::ApWifiMac::GetAssocResp(), 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().
ExtendedCapabilities ns3::WifiMac::GetExtendedCapabilities | ( | ) | const |
Return the extended capabilities of the device.
Definition at line 1522 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().
Ptr< FrameExchangeManager > ns3::WifiMac::GetFrameExchangeManager | ( | uint8_t | linkId = SINGLE_LINK_OP_ID | ) | const |
Get the Frame Exchange Manager associated with the given link.
linkId | the ID of the given link |
Definition at line 840 of file wifi-mac.cc.
References ns3::WifiMac::LinkEntity::feManager, and GetLink().
Referenced by MultiLinkOperationsTestBase::CheckAddresses(), MultiLinkSetupTest::CheckAssocResponse(), MultiLinkSetupTest::CheckBeacon(), MultiLinkSetupTest::CheckMlSetup(), ns3::ApWifiMac::DoGetLocalAddress(), ns3::StaWifiMac::DoGetLocalAddress(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), Bug2831TestCase::DoRun(), HeAggregationTest::DoRunSubTest(), MultiLinkTxTest::DoSetup(), MultiLinkMuTxTest::DoSetup(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), ns3::WifiDefaultAckManager::GetAckInfoIfBarBaSequence(), ns3::WifiNetDevice::GetAddress(), ns3::MultiUserScheduler::GetHeFem(), ns3::ApWifiMac::GetMultiLinkElement(), ns3::QosTxop::GetNextMpdu(), ns3::RrMultiUserScheduler::GetTxVectorForUlMu(), Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::SendAssocResp(), ns3::MpduAggregator::SetLinkId(), ns3::MsduAggregator::SetLinkId(), ns3::MpduAggregator::SetWifiMac(), ns3::MsduAggregator::SetWifiMac(), ns3::MultiUserScheduler::SetWifiMac(), MultiLinkTxTest::Transmit(), ns3::WifiDefaultAckManager::TryUlMuTransmission(), ns3::ApWifiMac::TxFailed(), and ns3::ApWifiMac::TxOk().
HeCapabilities ns3::WifiMac::GetHeCapabilities | ( | uint8_t | linkId | ) | const |
Return the HE capabilities of the device for the given link.
linkId | the ID of the given link |
Definition at line 1671 of file wifi-mac.cc.
References GetEhtSupported(), GetHeConfiguration(), GetHeSupported(), GetHtConfiguration(), GetLink(), m_beMaxAmpduSize, m_bkMaxAmpduSize, m_viMaxAmpduSize, m_voMaxAmpduSize, max, min, ns3::NanoSeconds(), NS_ASSERT, NS_LOG_FUNCTION, third::phy, ns3::WifiMac::LinkEntity::phy, ns3::HeCapabilities::SetChannelWidthSet(), ns3::HeCapabilities::SetHePpdu4xHeLtf800nsGi(), ns3::HeCapabilities::SetHeSuPpdu1xHeLtf800nsGi(), ns3::HeCapabilities::SetHighestMcsSupported(), ns3::HeCapabilities::SetHighestNssSupported(), ns3::HeCapabilities::SetLdpcCodingInPayload(), ns3::HeCapabilities::SetMaxAmpduLength(), ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_PHY_BAND_2_4GHZ, ns3::WIFI_PHY_BAND_5GHZ, and ns3::WIFI_PHY_BAND_6GHZ.
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
Ptr< HeConfiguration > ns3::WifiMac::GetHeConfiguration | ( | ) | const |
Definition at line 1353 of file wifi-mac.cc.
References GetDevice(), and ns3::WifiNetDevice::GetHeConfiguration().
Referenced by TestMultiUserScheduler::ComputeWifiTxVector(), GetHeCapabilities(), ns3::ApWifiMac::GetHeOperation(), GetHeSupported(), ns3::ApWifiMac::GetMuEdcaParameterSet(), ns3::HeFrameExchangeManager::GetSupportedBaBufferSize(), ns3::RrMultiUserScheduler::GetTxVectorForUlMu(), ns3::HeFrameExchangeManager::SetMultiUserScheduler(), ns3::MultiUserScheduler::SetWifiMac(), ns3::RrMultiUserScheduler::TrySendingDlMuPpdu(), and ns3::StaWifiMac::UpdateApInfo().
bool ns3::WifiMac::GetHeSupported | ( | ) | const |
Return whether the device supports HE.
Definition at line 1378 of file wifi-mac.cc.
References GetDevice(), and GetHeConfiguration().
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), GetHeCapabilities(), ns3::ApWifiMac::GetHeOperation(), ns3::ApWifiMac::GetMuEdcaParameterSet(), ns3::RrMultiUserScheduler::NotifyStationAssociated(), ns3::RrMultiUserScheduler::NotifyStationDeassociated(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::ReceiveAssocRequest(), ns3::RrMultiUserScheduler::SelectTxFormat(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), and ns3::StaWifiMac::UpdateApInfo().
bool ns3::WifiMac::GetHeSupported | ( | const Mac48Address & | address | ) | const |
address | the (link or MLD) address of a remote station |
Definition at line 1416 of file wifi-mac.cc.
References first::address, and m_links.
HtCapabilities ns3::WifiMac::GetHtCapabilities | ( | uint8_t | linkId | ) | const |
Return the HT capabilities of the device for the given link.
linkId | the ID of the given link |
Definition at line 1533 of file wifi-mac.cc.
References GetHtConfiguration(), GetHtSupported(), GetWifiPhy(), m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, m_viMaxAmpduSize, m_viMaxAmsduSize, m_voMaxAmpduSize, m_voMaxAmsduSize, max, min, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, third::phy, ns3::HtCapabilities::SetLdpc(), ns3::HtCapabilities::SetLSigProtectionSupport(), ns3::HtCapabilities::SetMaxAmpduLength(), ns3::HtCapabilities::SetMaxAmsduLength(), ns3::HtCapabilities::SetRxHighestSupportedDataRate(), ns3::HtCapabilities::SetRxMcsBitmask(), ns3::HtCapabilities::SetShortGuardInterval20(), ns3::HtCapabilities::SetShortGuardInterval40(), ns3::HtCapabilities::SetSupportedChannelWidth(), ns3::HtCapabilities::SetTxMaxNSpatialStreams(), ns3::HtCapabilities::SetTxMcsSetDefined(), ns3::HtCapabilities::SetTxRxMcsSetUnequal(), ns3::HtCapabilities::SetTxUnequalModulation(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
Ptr< HtConfiguration > ns3::WifiMac::GetHtConfiguration | ( | ) | const |
Definition at line 1341 of file wifi-mac.cc.
References GetDevice(), and ns3::WifiNetDevice::GetHtConfiguration().
Referenced by GetHeCapabilities(), GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), GetHtSupported(), and GetVhtCapabilities().
bool ns3::WifiMac::GetHtSupported | ( | ) | const |
Return whether the device supports HT.
Definition at line 1365 of file wifi-mac.cc.
References GetDevice(), and GetHtConfiguration().
Referenced by ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), GetExtendedCapabilities(), GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::QosTxop::GetNextMpdu(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::ApWifiMac::ReceiveAssocRequest(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), and ns3::StaWifiMac::UpdateApInfo().
bool ns3::WifiMac::GetHtSupported | ( | const Mac48Address & | address | ) | const |
address | the (link or MLD) address of a remote station |
Definition at line 1390 of file wifi-mac.cc.
References first::address, and m_links.
|
protected |
Get a reference to the link associated with the given ID.
linkId | the given link ID |
Definition at line 898 of file wifi-mac.cc.
References m_links, and NS_ASSERT.
Referenced by ns3::MeshWifiInterfaceMac::ConfigureContentionWindow(), ns3::OcbWifiMac::ConfigureEdca(), ConfigurePhyDependentParameters(), ns3::OcbWifiMac::ConfigureStandard(), ns3::OcbWifiMac::EnableForWave(), GetBssid(), GetChannelAccessManager(), GetDsssSupported(), GetEhtCapabilities(), GetErpSupported(), GetFrameExchangeManager(), GetHeCapabilities(), ns3::ApWifiMac::GetLink(), ns3::StaWifiMac::GetLink(), GetWifiPhy(), GetWifiRemoteStationManager(), ns3::OcbWifiMac::MakeVirtualBusy(), NotifyChannelSwitching(), Receive(), ns3::OcbWifiMac::Reset(), ns3::OcbWifiMac::Resume(), SetBssid(), SetDsssSupported(), SetErpSupported(), ns3::OcbWifiMac::SetWifiPhy(), ns3::OcbWifiMac::Suspend(), and ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel().
|
virtual |
Get the ID of the link having the given MAC address, if any.
address | the given MAC address |
Reimplemented in ns3::OcbWifiMac.
Definition at line 912 of file wifi-mac.cc.
References first::address, and m_links.
Referenced by MultiLinkSetupTest::CheckAssocResponse(), MultiLinkTxTest::CheckBlockAck(), MultiLinkMuTxTest::CheckBlockAck(), MultiLinkTxTest::Transmit(), ns3::ApWifiMac::TxFailed(), and ns3::ApWifiMac::TxOk().
Mac48Address ns3::WifiMac::GetLocalAddress | ( | const Mac48Address & | remoteAddr | ) | const |
Get the local MAC address used to communicate with a remote STA.
Specifically:
remoteAddr | the MAC address of the remote device |
Definition at line 1249 of file wifi-mac.cc.
References DoGetLocalAddress(), GetNLinks(), m_address, and m_links.
Referenced by ns3::QosTxop::PrepareBlockAckRequest().
Ptr< WifiMacQueueScheduler > ns3::WifiMac::GetMacQueueScheduler | ( | ) | const |
Get the wifi MAC queue scheduler.
Definition at line 550 of file wifi-mac.cc.
References m_scheduler.
Referenced by ns3::Txop::Queue().
uint32_t ns3::WifiMac::GetMaxAmpduSize | ( | AcIndex | ac | ) | const |
Return the maximum A-MPDU size of the given Access Category.
ac | Access Category index |
Definition at line 1820 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().
uint16_t ns3::WifiMac::GetMaxAmsduSize | ( | AcIndex | ac | ) | const |
Return the maximum A-MSDU size of the given Access Category.
ac | Access Category index |
Definition at line 1845 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().
std::optional< Mac48Address > ns3::WifiMac::GetMldAddress | ( | const Mac48Address & | remoteAddr | ) | const |
remoteAddr | the (MLD or link) address of a remote device |
Definition at line 1236 of file wifi-mac.cc.
References m_links.
Referenced by ns3::ApWifiMac::ConfigQueueScheduler(), 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().
uint8_t ns3::WifiMac::GetNLinks | ( | ) | const |
Get the number of links (can be greater than 1 for 11be devices only).
Definition at line 906 of file wifi-mac.cc.
References m_links.
Referenced by ns3::MultiUserScheduler::AccessReqTimeout(), ns3::WifiAssocManager::CanSetupMultiLink(), MultiLinkOperationsTestBase::CheckAddresses(), MultiLinkSetupTest::CheckAssocRequest(), MultiLinkSetupTest::CheckAssocResponse(), MultiLinkSetupTest::CheckBeacon(), MultiLinkSetupTest::CheckMlSetup(), ns3::OcbWifiMac::ConfigureStandard(), ns3::ApWifiMac::ConfigureStandard(), ns3::EhtFrameExchangeManager::CreateAliasIfNeeded(), ns3::StaWifiMac::Disassociated(), ns3::ApWifiMac::DoInitialize(), MultiLinkTxTest::DoSetup(), MultiLinkMuTxTest::DoSetup(), ns3::WifiDefaultAssocManager::EndScanning(), ns3::ApWifiMac::ForwardDown(), ns3::WifiNetDevice::GetAddress(), GetLocalAddress(), ns3::EhtFrameExchangeManager::GetMostRecentRssi(), 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::Txop::SetWifiMac(), ns3::MultiUserScheduler::SetWifiMac(), ns3::StaWifiMac::StartScanning(), ns3::ApWifiMac::TxFailed(), and ns3::ApWifiMac::TxOk().
bool ns3::WifiMac::GetQosSupported | ( | ) | const |
Return whether the device supports QoS.
Definition at line 1006 of file wifi-mac.cc.
References m_qosSupported.
Referenced by ns3::MeshWifiInterfaceMac::ConfigureStandard(), ns3::OcbWifiMac::ConfigureStandard(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), ns3::ApWifiMac::GetAssocResp(), ns3::ApWifiMac::GetEdcaParameterSet(), GetTypeId(), Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), ns3::OcbWifiMac::SendVsc(), and ns3::StaWifiMac::UpdateApInfo().
Accessor for a specified EDCA object.
ac | the Access Category |
Definition at line 490 of file wifi-mac.cc.
References m_edca.
Referenced by ns3::MultiUserScheduler::AccessReqTimeout(), ns3::OcbWifiMac::CancleTx(), OfdmaAckSequenceTest::DoRun(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), 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::OcbWifiMac::SendVsc(), ns3::StaWifiMac::SetEdcaParameters(), ns3::StaWifiMac::SetMuEdcaParameters(), OfdmaAckSequenceTest::Transmit(), and ns3::RrMultiUserScheduler::TrySendingDlMuPpdu().
Accessor for a specified EDCA object.
tid | the Traffic ID |
Definition at line 506 of file wifi-mac.cc.
References GetQosTxop(), and ns3::QosUtilsMapTidToAc().
|
protected |
Definition at line 1056 of file wifi-mac.cc.
References m_shortSlotTimeSupported.
Referenced by ns3::StaWifiMac::GetCapabilities(), GetTypeId(), and ns3::ApWifiMac::UpdateShortSlotTimeEnabled().
Ssid ns3::WifiMac::GetSsid | ( | ) | const |
Definition at line 456 of file wifi-mac.cc.
References m_ssid.
Referenced by ns3::StaWifiMac::GetAssociationRequest(), ns3::OcbWifiMac::GetSsid(), GetTypeId(), ns3::MeshWifiInterfaceMac::Receive(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), and ns3::StaWifiMac::StartScanning().
Accessor for the Txop object.
Definition at line 484 of file wifi-mac.cc.
References m_txop.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), GetTypeId(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), and ns3::OcbWifiMac::SendVsc().
|
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.
ac | the given Access Category |
Reimplemented in ns3::ApWifiMac.
Definition at line 536 of file wifi-mac.cc.
References ns3::AC_BE_NQOS, GetQosTxop(), ns3::Txop::GetWifiMacQueue(), 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(), and ns3::FrameExchangeManager::NormalAckTimeout().
|
static |
Get the type ID.
Definition at line 66 of file wifi-mac.cc.
References ns3::TypeId::ATTR_CONSTRUCT, ns3::TypeId::ATTR_GET, GetBEQueue(), GetBKQueue(), GetQosSupported(), GetShortSlotTimeSupported(), GetSsid(), GetTxop(), GetVIQueue(), GetVOQueue(), m_ackedMpduCallback, m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, m_droppedMpduCallback, m_macPromiscRxTrace, m_macRxDropTrace, m_macRxTrace, m_macTxDropTrace, m_macTxTrace, m_mpduResponseTimeoutCallback, m_nackedMpduCallback, m_psduMapResponseTimeoutCallback, m_psduResponseTimeoutCallback, m_txErrCallback, m_txOkCallback, m_viMaxAmpduSize, m_viMaxAmsduSize, m_voMaxAmpduSize, m_voMaxAmsduSize, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakePointerAccessor(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), ns3::TypeId::OBSOLETE, SetBeBlockAckInactivityTimeout(), SetBeBlockAckThreshold(), SetBkBlockAckInactivityTimeout(), SetBkBlockAckThreshold(), SetCtsToSelfSupported(), ns3::TypeId::SetParent(), SetQosSupported(), SetShortSlotTimeSupported(), SetSsid(), SetViBlockAckInactivityTimeout(), SetViBlockAckThreshold(), SetVoBlockAckInactivityTimeout(), and SetVoBlockAckThreshold().
TypeOfStation ns3::WifiMac::GetTypeOfStation | ( | ) | const |
Return the type of station.
Definition at line 418 of file wifi-mac.cc.
References m_typeOfStation.
Referenced by ns3::WifiProtectionManager::AddUserInfoToMuRts(), ns3::HePhy::DoStartReceivePayload(), ns3::QosFrameExchangeManager::ForwardMpduDown(), ns3::WifiNetDevice::GetAddress(), ns3::WifiRemoteStationManager::GetStaId(), ns3::HtFrameExchangeManager::NotifyTxToEdca(), ns3::QosFrameExchangeManager::PreProcessFrame(), ns3::WifiDefaultProtectionManager::TryAddMpduToMuPpdu(), and ns3::WifiDefaultProtectionManager::TryUlMuTransmission().
VhtCapabilities ns3::WifiMac::GetVhtCapabilities | ( | uint8_t | linkId | ) | const |
Return the VHT capabilities of the device for the given link.
linkId | the ID of the given link |
Definition at line 1590 of file wifi-mac.cc.
References ns3::VhtConfiguration::Get160MHzOperationSupported(), GetHtConfiguration(), GetVhtConfiguration(), GetVhtSupported(), GetWifiPhy(), m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, m_viMaxAmpduSize, m_viMaxAmsduSize, m_voMaxAmpduSize, m_voMaxAmsduSize, max, min, NS_ABORT_MSG_IF, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, third::phy, ns3::VhtCapabilities::SetMaxAmpduLength(), ns3::VhtCapabilities::SetMaxMpduLength(), ns3::VhtCapabilities::SetRxHighestSupportedLgiDataRate(), ns3::VhtCapabilities::SetRxLdpc(), ns3::VhtCapabilities::SetRxMcsMap(), ns3::VhtCapabilities::SetRxStbc(), ns3::VhtCapabilities::SetShortGuardIntervalFor160Mhz(), ns3::VhtCapabilities::SetShortGuardIntervalFor80Mhz(), ns3::VhtCapabilities::SetSupportedChannelWidthSet(), ns3::VhtCapabilities::SetTxHighestSupportedLgiDataRate(), ns3::VhtCapabilities::SetTxMcsMap(), ns3::VhtCapabilities::SetTxStbc(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
Ptr< VhtConfiguration > ns3::WifiMac::GetVhtConfiguration | ( | ) | const |
Definition at line 1347 of file wifi-mac.cc.
References GetDevice(), and ns3::WifiNetDevice::GetVhtConfiguration().
Referenced by GetVhtCapabilities(), and GetVhtSupported().
bool ns3::WifiMac::GetVhtSupported | ( | const Mac48Address & | address | ) | const |
address | the (link or MLD) address of a remote station |
Definition at line 1403 of file wifi-mac.cc.
References first::address, and m_links.
bool ns3::WifiMac::GetVhtSupported | ( | uint8_t | linkId | ) | const |
Return whether the device supports VHT on the given link.
linkId | the ID of the given link. |
Definition at line 1371 of file wifi-mac.cc.
References GetDevice(), GetVhtConfiguration(), GetWifiPhy(), and ns3::WIFI_PHY_BAND_2_4GHZ.
Referenced by ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::GetAssociationRequest(), ns3::ApWifiMac::GetAssocResp(), GetExtendedCapabilities(), GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperation(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::ReceiveAssocRequest(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), and ns3::StaWifiMac::UpdateApInfo().
Accessor for the AC_VI channel access function.
Definition at line 518 of file wifi-mac.cc.
References ns3::AC_VI, GetQosTxop(), and m_qosSupported.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), TwoLevelAggregationTest::DoRun(), GetTypeId(), SetViBlockAckInactivityTimeout(), and SetViBlockAckThreshold().
Accessor for the AC_VO channel access function.
Definition at line 512 of file wifi-mac.cc.
References ns3::AC_VO, GetQosTxop(), and m_qosSupported.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), SetVoBlockAckInactivityTimeout(), and SetVoBlockAckThreshold().
Ptr< WifiPhy > ns3::WifiMac::GetWifiPhy | ( | uint8_t | linkId = SINGLE_LINK_OP_ID | ) | const |
linkId | the index (starting at 0) of the PHY object to retrieve |
Definition at line 954 of file wifi-mac.cc.
References GetLink(), NS_LOG_FUNCTION, and ns3::WifiMac::LinkEntity::phy.
Referenced by ns3::WifiProtectionManager::AddUserInfoToMuRts(), MultiLinkMuTxTest::CheckBlockAck(), MultiLinkSetupTest::CheckMlSetup(), ns3::StaWifiMac::CheckSupportedRates(), ns3::MeshWifiInterfaceMac::CheckSupportedRates(), TestMultiUserScheduler::ComputeWifiTxVector(), ns3::OcbWifiMac::ConfigureStandard(), OfdmaAckSequenceTest::DoRun(), WifiTxopTest::DoRun(), 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(), Bug2470TestCase::RunSubtest(), TestMultiUserScheduler::SelectTxFormat(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::StartScanning(), ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel(), MultiLinkMuTxTest::Transmit(), ns3::RrMultiUserScheduler::TrySendingBasicTf(), ns3::RrMultiUserScheduler::TrySendingBsrpTf(), ns3::StaWifiMac::UpdateApInfo(), and ns3::ApWifiMac::UpdateShortPreambleEnabled().
Ptr< WifiRemoteStationManager > ns3::WifiMac::GetWifiRemoteStationManager | ( | uint8_t | linkId = 0 | ) | const |
linkId | the ID (starting at 0) of the link of the RemoteStationManager object to retrieve |
Definition at line 886 of file wifi-mac.cc.
References GetLink(), and ns3::WifiMac::LinkEntity::stationManager.
Referenced by MultiLinkSetupTest::CheckMlSetup(), ns3::MeshWifiInterfaceMac::CheckSupportedRates(), ns3::ApWifiMac::ConfigQueueScheduler(), ns3::StaWifiMac::Disassociated(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), ns3::WifiDefaultAssocManager::EndScanning(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::ForwardDown(), ns3::ApWifiMac::GetAssociationId(), ns3::ApWifiMac::GetAssocResp(), ns3::WaveFrameExchangeManager::GetDataTxVector(), ns3::ApWifiMac::GetEhtOperation(), ns3::ApWifiMac::GetHeOperation(), ns3::ApWifiMac::GetHtOperation(), ns3::ApWifiMac::GetLinkIdStaAddrMap(), ns3::MpduAggregator::GetMaxAmpduSize(), ns3::MsduAggregator::GetMaxAmsduSize(), ns3::EhtFrameExchangeManager::GetMostRecentRssi(), 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::MeshWifiInterfaceMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::ApWifiMac::ReceiveAssocRequest(), ns3::StaWifiMac::ReceiveAssocResp(), ns3::StaWifiMac::ScanningTimeout(), TestMultiUserScheduler::SelectTxFormat(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::ApWifiMac::SetAid(), ns3::RrMultiUserScheduler::TrySendingBasicTf(), ns3::RrMultiUserScheduler::TrySendingBsrpTf(), ns3::ApWifiMac::TxFailed(), ns3::ApWifiMac::TxOk(), ns3::StaWifiMac::UpdateApInfo(), ns3::ApWifiMac::UpdateShortPreambleEnabled(), and ns3::ApWifiMac::UpdateShortSlotTimeEnabled().
|
virtual |
Notify that channel on the given link has been switched.
linkId | the ID of the given link |
Reimplemented in ns3::StaWifiMac.
Definition at line 556 of file wifi-mac.cc.
References ConfigurePhyDependentParameters(), GetLink(), NS_LOG_FUNCTION, third::phy, ns3::WifiRemoteStationManager::SetupPhy(), and ns3::WifiMac::LinkEntity::stationManager.
Referenced by ns3::StaWifiMac::NotifyChannelSwitching(), and ns3::FrameExchangeManager::NotifySwitchingStartNow().
packet | the packet we received promiscuously |
Public method used to fire a MacPromiscRx trace. Implemented for encapsulation purposes.
Definition at line 589 of file wifi-mac.cc.
References m_macPromiscRxTrace.
Referenced by ns3::WifiNetDevice::ForwardUp().
packet | the packet we received |
Public method used to fire a MacRx trace. Implemented for encapsulation purposes.
Definition at line 583 of file wifi-mac.cc.
References m_macRxTrace.
Referenced by ns3::WifiNetDevice::ForwardUp().
packet | the packet we received but is not destined for us |
Public method used to fire a MacRxDrop trace. Implemented for encapsulation purposes.
Definition at line 595 of file wifi-mac.cc.
References m_macRxDropTrace.
Referenced by ns3::OcbWifiMac::Receive(), ns3::ApWifiMac::Receive(), and ns3::StaWifiMac::Receive().
packet | the 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 571 of file wifi-mac.cc.
References m_macTxTrace.
Referenced by ns3::WifiNetDevice::Send(), and ns3::WifiNetDevice::SendFrom().
packet | the 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 577 of file wifi-mac.cc.
References m_macTxDropTrace.
Referenced by ns3::StaWifiMac::Enqueue(), and ns3::ApWifiMac::Enqueue().
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.
mpdu | the MPDU that has been received. |
linkId | the ID of the given link |
Reimplemented in ns3::StaWifiMac, ns3::ApWifiMac, ns3::AdhocWifiMac, ns3::OcbWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 1107 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::IsAction(), ns3::MgtDelBaHeader::IsByOriginator(), ns3::WifiMacHeader::IsData(), ns3::WifiMacHeader::IsMgt(), ns3::MakeCallback(), NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::Packet::RemoveHeader(), and ns3::HtFrameExchangeManager::SendDelbaFrame().
Referenced by WifiMac(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), and ns3::StaWifiMac::Receive().
void ns3::WifiMac::ResetWifiPhys | ( | ) |
Remove currently attached WifiPhy objects from this MAC.
Definition at line 961 of file wifi-mac.cc.
References m_links, and NS_LOG_FUNCTION.
Referenced by SetWifiPhys(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
virtual |
address | the current address of this MAC layer. |
Definition at line 436 of file wifi-mac.cc.
References first::address, m_address, and NS_LOG_FUNCTION.
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), Bug2831TestCase::DoRun(), HeAggregationTest::DoRunSubTest(), and ns3::WifiNetDevice::SetAddress().
|
private |
Set BE block ack inactivity timeout.
timeout | the BE block ack inactivity timeout. |
Definition at line 1502 of file wifi-mac.cc.
References GetBEQueue(), m_qosSupported, NS_LOG_FUNCTION, ns3::QosTxop::SetBlockAckInactivityTimeout(), and timeout.
Referenced by GetTypeId().
|
private |
Set the block ack threshold for AC_BE.
threshold | the block ack threshold for AC_BE. |
Definition at line 1462 of file wifi-mac.cc.
References GetBEQueue(), m_qosSupported, NS_LOG_FUNCTION, and ns3::QosTxop::SetBlockAckThreshold().
Referenced by GetTypeId().
|
private |
Set BK block ack inactivity timeout.
timeout | the BK block ack inactivity timeout. |
Definition at line 1512 of file wifi-mac.cc.
References GetBKQueue(), m_qosSupported, NS_LOG_FUNCTION, ns3::QosTxop::SetBlockAckInactivityTimeout(), and timeout.
Referenced by GetTypeId().
|
private |
Set the block ack threshold for AC_BK.
threshold | the block ack threshold for AC_BK. |
Definition at line 1472 of file wifi-mac.cc.
References GetBKQueue(), m_qosSupported, NS_LOG_FUNCTION, and ns3::QosTxop::SetBlockAckThreshold().
Referenced by GetTypeId().
void ns3::WifiMac::SetBssid | ( | Mac48Address | bssid, |
uint8_t | linkId | ||
) |
bssid | the BSSID of the network that the given link belongs to. |
linkId | the ID of the given link |
Definition at line 462 of file wifi-mac.cc.
References ns3::WifiMac::LinkEntity::feManager, GetLink(), and NS_LOG_FUNCTION.
Referenced by ns3::StaWifiMac::ReceiveAssocResp().
void ns3::WifiMac::SetCtsToSelfSupported | ( | bool | enable | ) |
Enable or disable CTS-to-self feature.
enable | true if CTS-to-self is to be supported, false otherwise |
Definition at line 1042 of file wifi-mac.cc.
References m_ctsToSelfSupported, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiMac::SetDevice | ( | const Ptr< WifiNetDevice > | device | ) |
Sets the device this PHY is associated with.
device | the device this PHY is associated with |
Definition at line 424 of file wifi-mac.cc.
References m_device.
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), DcfImmediateAccessBroadcastTestCase::DoRun(), Bug2831TestCase::DoRun(), and HeAggregationTest::DoRunSubTest().
|
private |
Enable or disable DSSS support for the given link.
enable | whether DSSS is supported |
linkId | the ID of the given link |
Definition at line 1029 of file wifi-mac.cc.
References ns3::WifiMac::LinkEntity::dsssSupported, GetLink(), and NS_LOG_FUNCTION.
Referenced by ConfigurePhyDependentParameters(), and SetErpSupported().
|
private |
Enable or disable ERP support for the given link.
enable | whether ERP is supported |
linkId | the ID of the given link |
Definition at line 1018 of file wifi-mac.cc.
References ns3::WifiMac::LinkEntity::erpSupported, GetLink(), NS_LOG_FUNCTION, and SetDsssSupported().
Referenced by ConfigurePhyDependentParameters().
void ns3::WifiMac::SetForwardUpCallback | ( | ForwardUpCallback | upCallback | ) |
upCallback | the callback to invoke when a packet must be forwarded up the stack. |
Definition at line 1068 of file wifi-mac.cc.
References m_forwardUp, and NS_LOG_FUNCTION.
Referenced by ns3::WifiNetDevice::CompleteConfig().
void ns3::WifiMac::SetLinkDownCallback | ( | Callback< void > | linkDown | ) |
linkDown | the callback to invoke when the link becomes down. |
Definition at line 1082 of file wifi-mac.cc.
References m_linkDown, and NS_LOG_FUNCTION.
Referenced by ns3::WifiNetDevice::CompleteConfig(), and ns3::OcbWifiMac::SetLinkDownCallback().
|
virtual |
linkUp | the callback to invoke when the link becomes up. |
Reimplemented in ns3::ApWifiMac, ns3::AdhocWifiMac, ns3::OcbWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 1075 of file wifi-mac.cc.
References m_linkUp, and NS_LOG_FUNCTION.
Referenced by ns3::WifiNetDevice::CompleteConfig(), ns3::MeshWifiInterfaceMac::SetLinkUpCallback(), ns3::OcbWifiMac::SetLinkUpCallback(), ns3::AdhocWifiMac::SetLinkUpCallback(), and ns3::ApWifiMac::SetLinkUpCallback().
|
virtual |
Set the wifi MAC queue scheduler.
scheduler | the wifi MAC queue scheduler |
Definition at line 543 of file wifi-mac.cc.
References m_scheduler.
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), Bug2831TestCase::DoRun(), and HeAggregationTest::DoRunSubTest().
void ns3::WifiMac::SetPromisc | ( | ) |
Sets the interface in promiscuous mode.
Enables promiscuous mode on the interface. Note that any further filtering on the incoming frame path may affect the overall behavior.
Definition at line 475 of file wifi-mac.cc.
References m_links.
Referenced by ns3::WifiNetDevice::SetPromiscReceiveCallback().
|
protected |
Enable or disable QoS support for the device.
Construct a Txop object or QosTxop objects accordingly. This method can only be called before initialization.
enable | whether QoS is supported |
Definition at line 979 of file wifi-mac.cc.
References ns3::AC_BE, ns3::AC_BK, ns3::AC_VI, ns3::AC_VO, ns3::Object::IsInitialized(), m_droppedMpduCallback, m_qosSupported, m_txMiddle, m_txop, ns3::MakeCallback(), NS_ABORT_IF, NS_LOG_FUNCTION, ns3::Txop::SetDroppedMpduCallback(), ns3::Txop::SetTxMiddle(), and SetupEdcaQueue().
Referenced by GetTypeId().
|
protected |
Enable or disable short slot time feature.
enable | true if short slot time is to be supported, false otherwise |
Definition at line 1049 of file wifi-mac.cc.
References m_shortSlotTimeSupported, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiMac::SetSsid | ( | Ssid | ssid | ) |
ssid | the current SSID of this MAC layer. |
Definition at line 449 of file wifi-mac.cc.
References m_ssid, NS_LOG_FUNCTION, and third::ssid.
Referenced by WifiPrimaryChannelsTest::DoRun(), WifiTxopTest::DoRun(), and GetTypeId().
void ns3::WifiMac::SetTypeOfStation | ( | TypeOfStation | type | ) |
This method is invoked by a subclass to specify what type of station it is implementing.
This is something that the channel access functions need to know.
type | the type of station. |
Definition at line 411 of file wifi-mac.cc.
References m_typeOfStation, NS_LOG_FUNCTION, and check-style-clang-format::type.
Referenced by ns3::AdhocWifiMac::AdhocWifiMac(), ns3::ApWifiMac::ApWifiMac(), ns3::MeshWifiInterfaceMac::MeshWifiInterfaceMac(), ns3::OcbWifiMac::OcbWifiMac(), and ns3::StaWifiMac::StaWifiMac().
|
private |
This method is a private utility invoked to configure the channel access function for the specified Access Category.
ac | the Access Category of the queue to initialise. |
Definition at line 601 of file wifi-mac.cc.
References ns3::QosTxop::GetBaManager(), m_ackedMpduCallback, m_droppedMpduCallback, m_edca, m_nackedMpduCallback, m_txMiddle, ns3::MakeCallback(), NS_ASSERT, NS_LOG_FUNCTION, ns3::QosTxop::SetDroppedMpduCallback(), and ns3::Txop::SetTxMiddle().
Referenced by SetQosSupported().
|
private |
Create a Frame Exchange Manager depending on the supported version of the standard.
standard | the supported version of the standard |
Definition at line 789 of file wifi-mac.cc.
References GetAddress(), m_ackedMpduCallback, m_droppedMpduCallback, m_mpduResponseTimeoutCallback, m_psduMapResponseTimeoutCallback, m_psduResponseTimeoutCallback, m_qosSupported, m_rxMiddle, m_txMiddle, ns3::MakeCallback(), NS_ABORT_MSG_IF, NS_LOG_FUNCTION, ns3::WIFI_STANDARD_80211ac, ns3::WIFI_STANDARD_80211ax, ns3::WIFI_STANDARD_80211be, ns3::WIFI_STANDARD_80211n, and ns3::WIFI_STANDARD_UNSPECIFIED.
Referenced by ConfigureStandard().
|
private |
Set VI block ack inactivity timeout.
timeout | the VI block ack inactivity timeout. |
Definition at line 1492 of file wifi-mac.cc.
References GetVIQueue(), m_qosSupported, NS_LOG_FUNCTION, ns3::QosTxop::SetBlockAckInactivityTimeout(), and timeout.
Referenced by GetTypeId().
|
private |
Set the block ack threshold for AC_VI.
threshold | the block ack threshold for AC_VI. |
Definition at line 1452 of file wifi-mac.cc.
References GetVIQueue(), m_qosSupported, NS_LOG_FUNCTION, and ns3::QosTxop::SetBlockAckThreshold().
Referenced by GetTypeId().
|
private |
Set VO block ack inactivity timeout.
timeout | the VO block ack inactivity timeout. |
Definition at line 1482 of file wifi-mac.cc.
References GetVOQueue(), m_qosSupported, NS_LOG_FUNCTION, ns3::QosTxop::SetBlockAckInactivityTimeout(), and timeout.
Referenced by GetTypeId().
|
private |
Set the block ack threshold for AC_VO.
threshold | the block ack threshold for AC_VO. |
Definition at line 1442 of file wifi-mac.cc.
References GetVOQueue(), m_qosSupported, NS_LOG_FUNCTION, and ns3::QosTxop::SetBlockAckThreshold().
Referenced by GetTypeId().
phys | the physical layers attached to this MAC. |
Reimplemented in ns3::StaWifiMac.
Definition at line 925 of file wifi-mac.cc.
References CreateLinkEntity(), m_links, NS_ABORT_IF, NS_ABORT_MSG_UNLESS, NS_LOG_FUNCTION, and ResetWifiPhys().
Referenced by ns3::WifiNetDevice::CompleteConfig(), ns3::OcbWifiMac::ConfigureStandard(), TestUlOfdmaPhyTransmission::DoSetup(), TestPhyPaddingExclusion::DoSetup(), ns3::OcbWifiMac::SetWifiPhy(), and ns3::StaWifiMac::SetWifiPhys().
void ns3::WifiMac::SetWifiRemoteStationManager | ( | Ptr< WifiRemoteStationManager > | stationManager | ) |
stationManager | the station manager attached to this MAC. |
Definition at line 852 of file wifi-mac.cc.
References NS_LOG_FUNCTION, and SetWifiRemoteStationManagers().
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), and ns3::WaveHelper::Install().
void ns3::WifiMac::SetWifiRemoteStationManagers | ( | const std::vector< Ptr< WifiRemoteStationManager >> & | stationManagers | ) |
stationManagers | the station managers attached to this MAC. |
Definition at line 859 of file wifi-mac.cc.
References CreateLinkEntity(), m_links, NS_ABORT_IF, NS_ABORT_MSG_UNLESS, and NS_LOG_FUNCTION.
Referenced by ns3::WifiNetDevice::CompleteConfig(), and SetWifiRemoteStationManager().
|
virtual |
The interface may or may not support sending from arbitrary address. This function returns true if sending from arbitrary address is supported, false otherwise.
Reimplemented in ns3::ApWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 1062 of file wifi-mac.cc.
Referenced by ns3::WifiNetDevice::SupportsSendFrom().
|
private |
ack'ed MPDU callback
Definition at line 989 of file wifi-mac.h.
Referenced by GetTypeId(), SetupEdcaQueue(), and SetupFrameExchangeManager().
|
private |
MAC address of this station.
Definition at line 905 of file wifi-mac.h.
Referenced by DoGetLocalAddress(), GetAddress(), GetLocalAddress(), and SetAddress().
|
private |
maximum A-MPDU size for AC_BE (in bytes)
Definition at line 924 of file wifi-mac.h.
Referenced by GetEhtCapabilities(), GetHeCapabilities(), GetHtCapabilities(), GetMaxAmpduSize(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MSDU size for AC_BE (in bytes)
Definition at line 919 of file wifi-mac.h.
Referenced by GetEhtCapabilities(), GetHtCapabilities(), GetMaxAmsduSize(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MPDU size for AC_BK (in bytes)
Definition at line 925 of file wifi-mac.h.
Referenced by GetEhtCapabilities(), GetHeCapabilities(), GetHtCapabilities(), GetMaxAmpduSize(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MSDU size for AC_BK (in bytes)
Definition at line 920 of file wifi-mac.h.
Referenced by GetEhtCapabilities(), GetHtCapabilities(), GetMaxAmsduSize(), GetTypeId(), and GetVhtCapabilities().
|
private |
flag indicating whether CTS-To-Self is supported
Definition at line 898 of file wifi-mac.h.
Referenced by SetCtsToSelfSupported().
|
private |
Pointer to the device.
Definition at line 902 of file wifi-mac.h.
Referenced by DoDispose(), GetDevice(), and SetDevice().
|
private |
This trace indicates that an MPDU was dropped for the given reason.
Definition at line 984 of file wifi-mac.h.
Referenced by GetTypeId(), SetQosSupported(), SetupEdcaQueue(), and SetupFrameExchangeManager().
|
private |
This is a map from Access Category index to the corresponding channel access function.
Definition at line 915 of file wifi-mac.h.
Referenced by ConfigureContentionWindow(), ConfigureStandard(), DoDispose(), DoInitialize(), GetQosTxop(), and SetupEdcaQueue().
|
private |
Callback to forward packet up the stack.
Definition at line 927 of file wifi-mac.h.
Referenced by ForwardUp(), and SetForwardUpCallback().
|
protected |
Callback when a link is down.
Definition at line 757 of file wifi-mac.h.
Referenced by SetLinkDownCallback(), and ns3::StaWifiMac::TryToEnsureAssociated().
|
private |
vector of Link objects
Definition at line 903 of file wifi-mac.h.
Referenced by ConfigureContentionWindow(), ConfigureDcf(), ConfigurePhyDependentParameters(), ConfigureStandard(), DoDispose(), GetEhtSupported(), GetHeSupported(), GetHtSupported(), GetLink(), GetLinkIdByAddress(), GetLocalAddress(), GetMldAddress(), GetNLinks(), GetVhtSupported(), ResetWifiPhys(), SetPromisc(), SetWifiPhys(), and SetWifiRemoteStationManagers().
|
protected |
Callback when a link is up.
Definition at line 756 of file wifi-mac.h.
Referenced by ns3::StaWifiMac::ReceiveAssocResp(), and SetLinkUpCallback().
|
private |
The trace source fired for packets successfully received by the device immediately before being forwarded up to higher layers (at the L2/L3 transition).
This is a promiscuous trace.
Definition at line 950 of file wifi-mac.h.
Referenced by GetTypeId(), and NotifyPromiscRx().
|
private |
The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer during reception.
Definition at line 965 of file wifi-mac.h.
Referenced by GetTypeId(), and NotifyRxDrop().
|
private |
The trace source fired for packets successfully received by the device immediately before being forwarded up to higher layers (at the L2/L3 transition).
This is a non- promiscuous trace.
Definition at line 958 of file wifi-mac.h.
Referenced by GetTypeId(), and NotifyRx().
|
private |
The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer before being queued for transmission.
Definition at line 942 of file wifi-mac.h.
Referenced by GetTypeId(), and NotifyTxDrop().
|
private |
The trace source fired when packets come into the "top" of the device at the L3/L2 transition, before being queued for transmission.
Definition at line 935 of file wifi-mac.h.
Referenced by GetTypeId(), and NotifyTx().
|
private |
MPDU response timeout traced callback.
This trace source is fed by a WifiTxTimer object.
Definition at line 1011 of file wifi-mac.h.
Referenced by GetTypeId(), and SetupFrameExchangeManager().
|
private |
nack'ed MPDU callback
Definition at line 990 of file wifi-mac.h.
Referenced by GetTypeId(), and SetupEdcaQueue().
|
private |
PSDU map response timeout traced callback.
This trace source is fed by a WifiTxTimer object.
Definition at line 1055 of file wifi-mac.h.
Referenced by GetTypeId(), and SetupFrameExchangeManager().
|
private |
PSDU response timeout traced callback.
This trace source is fed by a WifiTxTimer object.
Definition at line 1032 of file wifi-mac.h.
Referenced by GetTypeId(), and SetupFrameExchangeManager().
|
private |
This Boolean is set true
iff this WifiMac is to model 802.11e/WMM style Quality of Service.
It is exposed through the attribute system.
At the moment, this flag is the sole selection between QoS and non-QoS operation for the STA (whether IBSS, AP, or non-AP). Ultimately, we will want a QoS-enabled STA to be able to fall back to non-QoS operation with a non-QoS peer. This'll require further intelligence - i.e., per-association QoS state. Having a big switch seems like a good intermediate stage, however.
Definition at line 895 of file wifi-mac.h.
Referenced by ConfigureStandard(), GetBEQueue(), GetBKQueue(), GetQosSupported(), GetVIQueue(), GetVOQueue(), SetBeBlockAckInactivityTimeout(), SetBeBlockAckThreshold(), SetBkBlockAckInactivityTimeout(), SetBkBlockAckThreshold(), SetQosSupported(), SetupFrameExchangeManager(), SetViBlockAckInactivityTimeout(), SetViBlockAckThreshold(), SetVoBlockAckInactivityTimeout(), and SetVoBlockAckThreshold().
|
protected |
RX middle (defragmentation etc.)
Definition at line 751 of file wifi-mac.h.
Referenced by WifiMac(), ns3::OcbWifiMac::ConfigureStandard(), DoDispose(), and SetupFrameExchangeManager().
|
protected |
wifi MAC queue scheduler
Definition at line 754 of file wifi-mac.h.
Referenced by ns3::ApWifiMac::ConfigQueueScheduler(), ns3::MeshWifiInterfaceMac::ConfigureContentionWindow(), DoDispose(), GetMacQueueScheduler(), and SetMacQueueScheduler().
|
private |
flag whether short slot time is supported
Definition at line 897 of file wifi-mac.h.
Referenced by GetShortSlotTimeSupported(), and SetShortSlotTimeSupported().
|
private |
Service Set ID (SSID)
Definition at line 906 of file wifi-mac.h.
|
private |
|
protected |
TX middle (aggregation etc.)
Definition at line 752 of file wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), WifiMac(), ns3::MeshWifiInterfaceMac::ConfigureContentionWindow(), ns3::OcbWifiMac::ConfigureStandard(), DoDispose(), AmpduAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), SetQosSupported(), SetupEdcaQueue(), and SetupFrameExchangeManager().
|
private |
TXOP used for transmission of frames to non-QoS peers.
Definition at line 753 of file wifi-mac.h.
Referenced by ConfigureContentionWindow(), ns3::MeshWifiInterfaceMac::ConfigureContentionWindow(), ConfigureStandard(), DoDispose(), DoInitialize(), GetTxop(), GetTxopQueue(), ns3::MeshWifiInterfaceMac::SendBeacon(), and SetQosSupported().
|
private |
the type of station
Definition at line 900 of file wifi-mac.h.
Referenced by GetTypeOfStation(), and SetTypeOfStation().
|
private |
maximum A-MPDU size for AC_VI (in bytes)
Definition at line 923 of file wifi-mac.h.
Referenced by GetEhtCapabilities(), GetHeCapabilities(), GetHtCapabilities(), GetMaxAmpduSize(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MSDU size for AC_VI (in bytes)
Definition at line 918 of file wifi-mac.h.
Referenced by GetEhtCapabilities(), GetHtCapabilities(), GetMaxAmsduSize(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MPDU size for AC_VO (in bytes)
Definition at line 922 of file wifi-mac.h.
Referenced by GetEhtCapabilities(), GetHeCapabilities(), GetHtCapabilities(), GetMaxAmpduSize(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MSDU size for AC_VO (in bytes)
Definition at line 917 of file wifi-mac.h.
Referenced by GetEhtCapabilities(), GetHtCapabilities(), GetMaxAmsduSize(), GetTypeId(), and GetVhtCapabilities().