base class for all MAC-level wifi objects. More...
#include "regular-wifi-mac.h"
Public Member Functions | |
RegularWifiMac () | |
virtual | ~RegularWifiMac () |
void | ConfigureStandard (WifiStandard standard) override |
void | Enqueue (Ptr< Packet > packet, Mac48Address to) override=0 |
void | Enqueue (Ptr< Packet > packet, Mac48Address to, Mac48Address from) override |
Mac48Address | GetAddress (void) const override |
Mac48Address | GetBssid (void) const override |
ExtendedCapabilities | GetExtendedCapabilities (void) const |
Return the extended capabilities of the device. More... | |
Ptr< FrameExchangeManager > | GetFrameExchangeManager (void) const |
Get the Frame Exchange Manager. More... | |
HeCapabilities | GetHeCapabilities (void) const |
Return the HE capabilities of the device. More... | |
HtCapabilities | GetHtCapabilities (void) const |
Return the HT capabilities of the device. 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... | |
bool | GetShortSlotTimeSupported (void) const override |
Ssid | GetSsid (void) const override |
Ptr< Txop > | GetTxop (void) const |
Accessor for the DCF object. More... | |
TypeOfStation | GetTypeOfStation (void) const override |
Return the type of station. More... | |
VhtCapabilities | GetVhtCapabilities (void) const |
Return the VHT capabilities of the device. More... | |
Ptr< WifiPhy > | GetWifiPhy (void) const override |
Ptr< WifiRemoteStationManager > | GetWifiRemoteStationManager (void) const override |
void | ResetWifiPhy (void) override |
Remove currently attached WifiPhy device from this MAC. More... | |
void | SetAddress (Mac48Address address) override |
void | SetBssid (Mac48Address bssid) |
void | SetCtsToSelfSupported (bool enable) |
Enable or disable CTS-to-self feature. More... | |
void | SetForwardUpCallback (ForwardUpCallback upCallback) override |
void | SetLinkDownCallback (Callback< void > linkDown) override |
void | SetLinkUpCallback (Callback< void > linkUp) override |
void | SetPromisc (void) override |
Sets the interface in promiscuous mode. More... | |
void | SetShortSlotTimeSupported (bool enable) override |
Enable or disable short slot time feature. More... | |
void | SetSsid (Ssid ssid) override |
void | SetWifiPhy (const Ptr< WifiPhy > phy) override |
void | SetWifiRemoteStationManager (const Ptr< WifiRemoteStationManager > stationManager) override |
bool | SupportsSendFrom (void) const override |
![]() | |
Ptr< NetDevice > | GetDevice (void) const |
Return the device this PHY is associated with. More... | |
Ptr< HeConfiguration > | GetHeConfiguration (void) const |
Ptr< HtConfiguration > | GetHtConfiguration (void) const |
Ptr< VhtConfiguration > | GetVhtConfiguration (void) const |
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) |
void | SetDevice (const Ptr< NetDevice > device) |
Sets the device this PHY is associated with. More... | |
![]() | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose (void) |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator (void) const |
Get an iterator to the Objects aggregated to this one. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this 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... | |
template<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated Object. More... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized (void) const |
Check if the object has been initialized. More... | |
![]() | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) 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 erros. 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 (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Protected Types | |
typedef std::map< AcIndex, Ptr< QosTxop > > | EdcaQueues |
This type defines a mapping between an Access Category index, and a pointer to the corresponding channel access function. More... | |
Protected Member Functions | |
void | ConfigureContentionWindow (uint32_t cwMin, uint32_t cwMax) |
virtual void | DeaggregateAmsduAndForward (Ptr< WifiMacQueueItem > mpdu) |
This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack. 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 (void) const |
Accessor for the AC_BE channel access function. More... | |
Ptr< QosTxop > | GetBKQueue (void) const |
Accessor for the AC_BK channel access function. More... | |
bool | GetDsssSupported () const |
Return whether the device supports DSSS. More... | |
bool | GetErpSupported () const |
Return whether the device supports ERP. More... | |
bool | GetHeSupported () const |
Return whether the device supports HE. More... | |
bool | GetHtSupported () const |
Return whether the device supports HT. More... | |
bool | GetQosSupported () const |
Return whether the device supports QoS. More... | |
bool | GetVhtSupported () const |
Return whether the device supports VHT. More... | |
Ptr< QosTxop > | GetVIQueue (void) const |
Accessor for the AC_VI channel access function. More... | |
Ptr< QosTxop > | GetVOQueue (void) const |
Accessor for the AC_VO channel access function. More... | |
virtual void | Receive (Ptr< WifiMacQueueItem > mpdu) |
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received. More... | |
void | SetDsssSupported (bool enable) |
Enable or disable DSSS support for the device. More... | |
void | SetErpSupported (bool enable) |
Enable or disable ERP support for the device. More... | |
virtual void | SetQosSupported (bool enable) |
Enable or disable QoS support for the device. More... | |
void | SetTypeOfStation (TypeOfStation type) override |
This method is invoked by a subclass to specify what type of station it is implementing. More... | |
void | SetupFrameExchangeManager (void) |
Create a Frame Exchange Manager depending on the supported version of the standard. More... | |
![]() | |
void | ConfigureDcf (Ptr< Txop > dcf, uint32_t cwmin, uint32_t cwmax, bool isDsss, AcIndex ac) |
![]() | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | NotifyNewAggregate (void) |
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 (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Protected Attributes | |
Ptr< ChannelAccessManager > | m_channelAccessManager |
channel access manager More... | |
EdcaQueues | m_edca |
This is a map from Access Category index to the corresponding channel access function. More... | |
Ptr< FrameExchangeManager > | m_feManager |
Frame Exchange Manager. More... | |
ForwardUpCallback | m_forwardUp |
Callback to forward packet up the stack. More... | |
Callback< void > | m_linkDown |
Callback when a link is down. More... | |
Callback< void > | m_linkUp |
Callback when a link is up. More... | |
Ptr< WifiPhy > | m_phy |
Wifi PHY. More... | |
Ptr< MacRxMiddle > | m_rxMiddle |
RX middle (defragmentation etc.) More... | |
Ssid | m_ssid |
Service Set ID (SSID) More... | |
Ptr< WifiRemoteStationManager > | m_stationManager |
Remote station manager (rate control, RTS/CTS/fragmentation thresholds etc.) More... | |
Ptr< MacTxMiddle > | m_txMiddle |
TX middle (aggregation etc.) More... | |
Ptr< Txop > | m_txop |
This holds a pointer to the TXOP instance for this WifiMac - used for transmission of frames to non-QoS peers. More... | |
Private Types | |
typedef void(* | DroppedMpduCallback) (WifiMacDropReason reason, Ptr< const WifiMacQueueItem > mpdu) |
TracedCallback signature for MPDU drop events. More... | |
typedef TracedCallback< WifiMacDropReason, Ptr< const WifiMacQueueItem > > | DroppedMpduTracedCallback |
TracedCallback for MPDU drop events typedef. More... | |
typedef void(* | MpduResponseTimeoutCallback) (uint8_t reason, Ptr< const WifiMacQueueItem > mpdu, const WifiTxVector &txVector) |
TracedCallback signature for MPDU response timeout events. More... | |
typedef TracedCallback< uint8_t, Ptr< const WifiMacQueueItem >, const WifiTxVector & > | MpduResponseTimeoutTracedCallback |
TracedCallback for MPDU response timeout events typedef. More... | |
typedef TracedCallback< Ptr< const WifiMacQueueItem > > | 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 | |
RegularWifiMac (const RegularWifiMac &) | |
type conversion operator More... | |
RegularWifiMac & | operator= (const RegularWifiMac &mac) |
assignment operator 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 | SetupEdcaQueue (AcIndex ac) |
This method is a private utility invoked to configure the channel access function for the specified Access Category. 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... | |
Mac48Address | m_bssid |
the BSSID More... | |
bool | m_ctsToSelfSupported |
flag indicating whether CTS-To-Self is supported More... | |
DroppedMpduTracedCallback | m_droppedMpduCallback |
This trace indicates that an MPDU was dropped for the given reason. More... | |
bool | m_dsssSupported |
This Boolean is set true iff this WifiMac is to model 802.11b. More... | |
bool | m_erpSupported |
This Boolean is set true iff this WifiMac is to model 802.11g. 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... | |
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 | |
![]() | |
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... | |
![]() | |
static TypeId | GetObjectIid (void) |
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 and all the high-level MAC functionality (association/disassociation state machines).
ns3::RegularWifiMac is accessible through the following paths with Config::Set and Config::Connect:
Size of this type is 584 bytes (on a 64-bit architecture).
Definition at line 50 of file regular-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 439 of file regular-wifi-mac.h.
|
private |
TracedCallback for MPDU drop events typedef.
Definition at line 442 of file regular-wifi-mac.h.
|
protected |
This type defines a mapping between an Access Category index, and a pointer to the corresponding channel access function.
Definition at line 177 of file regular-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 456 of file regular-wifi-mac.h.
|
private |
TracedCallback for MPDU response timeout events typedef.
Definition at line 460 of file regular-wifi-mac.h.
|
private |
TracedCallback for acked/nacked MPDUs typedef.
Definition at line 428 of file regular-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 495 of file regular-wifi-mac.h.
|
private |
TracedCallback for PSDU map response timeout events typedef.
Definition at line 500 of file regular-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 475 of file regular-wifi-mac.h.
|
private |
TracedCallback for PSDU response timeout events typedef.
Definition at line 479 of file regular-wifi-mac.h.
ns3::RegularWifiMac::RegularWifiMac | ( | ) |
Definition at line 47 of file regular-wifi-mac.cc.
References ns3::AC_BE, ns3::AC_BK, ns3::AC_VI, ns3::AC_VO, m_channelAccessManager, m_droppedMpduCallback, m_rxMiddle, m_txMiddle, m_txop, ns3::MakeCallback(), NS_LOG_FUNCTION, Receive(), ns3::Txop::SetChannelAccessManager(), ns3::Txop::SetDroppedMpduCallback(), ns3::Txop::SetTxMiddle(), and SetupEdcaQueue().
|
virtual |
Definition at line 75 of file regular-wifi-mac.cc.
References NS_LOG_FUNCTION.
|
private |
type conversion operator
|
protected |
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.
Definition at line 1141 of file regular-wifi-mac.cc.
References ns3::AC_BE_NQOS, ns3::WifiMac::ConfigureDcf(), m_dsssSupported, m_edca, m_erpSupported, and m_txop.
Referenced by ConfigureStandard(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
|
overridevirtual |
standard | the wifi standard to be configured |
This method completes the configuration process for a requested PHY standard. Subclasses should implement this method to configure their DCF queues according to the requested standard.
Implements ns3::WifiMac.
Definition at line 1098 of file regular-wifi-mac.cc.
References ConfigureContentionWindow(), NS_FATAL_ERROR, NS_LOG_FUNCTION, SetDsssSupported(), SetErpSupported(), SetQosSupported(), SetupFrameExchangeManager(), ns3::WIFI_STANDARD_80211a, ns3::WIFI_STANDARD_80211ac, ns3::WIFI_STANDARD_80211ax_2_4GHZ, ns3::WIFI_STANDARD_80211ax_5GHZ, ns3::WIFI_STANDARD_80211ax_6GHZ, ns3::WIFI_STANDARD_80211b, ns3::WIFI_STANDARD_80211g, ns3::WIFI_STANDARD_80211n_2_4GHZ, ns3::WIFI_STANDARD_80211n_5GHZ, and ns3::WIFI_STANDARD_80211p.
Referenced by ns3::MeshWifiInterfaceMac::ConfigureStandard(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), and HeAggregationTest::DoRunSubTest().
|
protectedvirtual |
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 866 of file regular-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::WifiMac.
Definition at line 93 of file regular-wifi-mac.cc.
References ns3::Object::Dispose(), ns3::WifiMac::DoDispose(), m_channelAccessManager, m_edca, m_feManager, m_phy, m_rxMiddle, m_stationManager, m_txMiddle, m_txop, and NS_LOG_FUNCTION.
Referenced by ns3::MeshWifiInterfaceMac::DoDispose(), ns3::OcbWifiMac::DoDispose(), and ns3::ApWifiMac::DoDispose().
|
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.
Reimplemented in ns3::StaWifiMac.
Definition at line 81 of file regular-wifi-mac.cc.
References ns3::Object::Initialize(), m_edca, m_txop, and NS_LOG_FUNCTION.
Referenced by ns3::ApWifiMac::DoInitialize().
|
overridepure 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.
Implements ns3::WifiMac.
Implemented in ns3::StaWifiMac, ns3::ApWifiMac, ns3::AdhocWifiMac, ns3::OcbWifiMac, and ns3::MeshWifiInterfaceMac.
|
overridevirtual |
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.
Implements ns3::WifiMac.
Definition at line 731 of file regular-wifi-mac.cc.
References GetAddress(), and NS_FATAL_ERROR.
|
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 749 of file regular-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().
|
overridevirtual |
Implements ns3::WifiMac.
Definition at line 675 of file regular-wifi-mac.cc.
References m_address.
Referenced by ns3::OcbWifiMac::ConfigureStandard(), ns3::ApWifiMac::DeaggregateAmsduAndForward(), 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::MeshWifiInterfaceMac::Receive(), ns3::OcbWifiMac::Receive(), Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Report(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), ns3::OcbWifiMac::SendVsc(), and SetupFrameExchangeManager().
Accessor for the AC_BE channel access function.
Definition at line 528 of file regular-wifi-mac.cc.
References ns3::AC_BE, and m_edca.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), GetTypeId(), SetBeBlockAckInactivityTimeout(), and SetBeBlockAckThreshold().
Accessor for the AC_BK channel access function.
Definition at line 534 of file regular-wifi-mac.cc.
References ns3::AC_BK, and m_edca.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), SetBkBlockAckInactivityTimeout(), and SetBkBlockAckThreshold().
|
overridevirtual |
Implements ns3::WifiMac.
Definition at line 705 of file regular-wifi-mac.cc.
References m_bssid.
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::StaWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::StaWifiMac::SetState(), and SetupFrameExchangeManager().
|
protected |
Return whether the device supports DSSS.
Definition at line 655 of file regular-wifi-mac.cc.
References m_dsssSupported.
Referenced by ns3::ApWifiMac::GetDsssParameterSet(), ns3::ApWifiMac::SendOneBeacon(), and ns3::ApWifiMac::SendProbeResp().
|
protected |
Return whether the device supports ERP.
Definition at line 631 of file regular-wifi-mac.cc.
References m_erpSupported.
Referenced by ns3::StaWifiMac::GetCapabilities(), ns3::ApWifiMac::GetErpInformation(), ns3::ApWifiMac::Receive(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), ns3::StaWifiMac::UpdateApInfoFromProbeResp(), ns3::ApWifiMac::UpdateShortPreambleEnabled(), and ns3::ApWifiMac::UpdateShortSlotTimeEnabled().
ExtendedCapabilities ns3::RegularWifiMac::GetExtendedCapabilities | ( | void | ) | const |
Return the extended capabilities of the device.
Definition at line 199 of file regular-wifi-mac.cc.
References GetHtSupported(), GetVhtSupported(), NS_LOG_FUNCTION, ns3::ExtendedCapabilities::SetHtSupported(), and ns3::ExtendedCapabilities::SetVhtSupported().
Referenced by ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
Ptr< FrameExchangeManager > ns3::RegularWifiMac::GetFrameExchangeManager | ( | void | ) | const |
Get the Frame Exchange Manager.
Definition at line 175 of file regular-wifi-mac.cc.
References m_feManager.
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), and HeAggregationTest::DoRunSubTest().
HeCapabilities ns3::RegularWifiMac::GetHeCapabilities | ( | void | ) | const |
Return the HE capabilities of the device.
Definition at line 349 of file regular-wifi-mac.cc.
References ns3::WifiPhy::GetChannelWidth(), ns3::WifiMac::GetHeConfiguration(), GetHeSupported(), ns3::WifiMac::GetHtConfiguration(), ns3::WifiPhy::GetMaxSupportedTxSpatialStreams(), ns3::WifiPhy::GetMcsList(), ns3::WifiPhy::GetPhyBand(), m_beMaxAmpduSize, m_bkMaxAmpduSize, m_phy, m_viMaxAmpduSize, m_voMaxAmpduSize, max, min, ns3::NanoSeconds(), NS_LOG_FUNCTION, ns3::HeCapabilities::SetChannelWidthSet(), ns3::HeCapabilities::SetHeLtfAndGiForHePpdus(), ns3::HeCapabilities::SetHeSupported(), 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::AdhocWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
|
protected |
Return whether the device supports HE.
Definition at line 621 of file regular-wifi-mac.cc.
References ns3::WifiMac::GetHeConfiguration().
Referenced by ns3::AdhocWifiMac::Enqueue(), GetHeCapabilities(), ns3::ApWifiMac::GetHeOperation(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), SetupFrameExchangeManager(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
HtCapabilities ns3::RegularWifiMac::GetHtCapabilities | ( | void | ) | const |
Return the HT capabilities of the device.
Definition at line 210 of file regular-wifi-mac.cc.
References ns3::WifiPhy::GetChannelWidth(), ns3::WifiMac::GetHtConfiguration(), GetHtSupported(), ns3::WifiPhy::GetMaxSupportedTxSpatialStreams(), ns3::WifiPhy::GetMcsList(), ns3::WifiPhy::GetNMcs(), m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, m_phy, m_viMaxAmpduSize, m_viMaxAmsduSize, m_voMaxAmpduSize, m_voMaxAmsduSize, max, min, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::HtCapabilities::SetHtSupported(), 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::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
|
protected |
Return whether the device supports HT.
Definition at line 601 of file regular-wifi-mac.cc.
References ns3::WifiMac::GetHtConfiguration().
Referenced by ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), GetExtendedCapabilities(), GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), SetupFrameExchangeManager(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
|
protected |
Return whether the device supports QoS.
Definition at line 595 of file regular-wifi-mac.cc.
References m_qosSupported.
Referenced by ns3::OcbWifiMac::ConfigureStandard(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), ns3::ApWifiMac::GetEdcaParameterSet(), GetTypeId(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::OcbWifiMac::SendVsc(), SetupFrameExchangeManager(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
Accessor for a specified EDCA object.
ac | the Access Category |
Definition at line 504 of file regular-wifi-mac.cc.
References m_edca.
Referenced by GetQosTxop().
Accessor for a specified EDCA object.
tid | the Traffic ID |
Definition at line 510 of file regular-wifi-mac.cc.
References GetQosTxop(), and ns3::QosUtilsMapTidToAc().
|
overridevirtual |
Implements ns3::WifiMac.
Definition at line 725 of file regular-wifi-mac.cc.
References m_shortSlotTimeSupported.
Referenced by ns3::StaWifiMac::GetCapabilities(), GetTypeId(), and ns3::ApWifiMac::UpdateShortSlotTimeEnabled().
|
overridevirtual |
Implements ns3::WifiMac.
Definition at line 688 of file regular-wifi-mac.cc.
References m_ssid.
Referenced by ns3::OcbWifiMac::GetSsid(), ns3::MeshWifiInterfaceMac::Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
Accessor for the DCF object.
Definition at line 498 of file regular-wifi-mac.cc.
References m_txop.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), and GetTypeId().
|
static |
Get the type ID.
Definition at line 877 of file regular-wifi-mac.cc.
References GetBEQueue(), GetBKQueue(), GetQosSupported(), GetShortSlotTimeSupported(), GetTxop(), GetVIQueue(), GetVOQueue(), m_ackedMpduCallback, m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, m_droppedMpduCallback, 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(), SetViBlockAckInactivityTimeout(), SetViBlockAckThreshold(), SetVoBlockAckInactivityTimeout(), and SetVoBlockAckThreshold().
|
overridevirtual |
Return the type of station.
Implements ns3::WifiMac.
Definition at line 492 of file regular-wifi-mac.cc.
References m_typeOfStation.
VhtCapabilities ns3::RegularWifiMac::GetVhtCapabilities | ( | void | ) | const |
Return the VHT capabilities of the device.
Definition at line 266 of file regular-wifi-mac.cc.
References ns3::WifiPhy::GetChannelWidth(), ns3::WifiMac::GetHtConfiguration(), ns3::WifiPhy::GetMaxSupportedRxSpatialStreams(), ns3::WifiPhy::GetMaxSupportedTxSpatialStreams(), ns3::WifiPhy::GetMcsList(), ns3::WifiMac::GetVhtConfiguration(), GetVhtSupported(), m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, m_phy, m_viMaxAmpduSize, m_viMaxAmsduSize, m_voMaxAmpduSize, m_voMaxAmsduSize, max, min, NS_LOG_DEBUG, NS_LOG_FUNCTION, 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(), ns3::VhtCapabilities::SetVhtSupported(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
|
protected |
Return whether the device supports VHT.
Definition at line 611 of file regular-wifi-mac.cc.
References ns3::WifiMac::GetVhtConfiguration().
Referenced by ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), GetExtendedCapabilities(), GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperation(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), SetupFrameExchangeManager(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
Accessor for the AC_VI channel access function.
Definition at line 522 of file regular-wifi-mac.cc.
References ns3::AC_VI, and m_edca.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), TwoLevelAggregationTest::DoRun(), GetTypeId(), SetViBlockAckInactivityTimeout(), and SetViBlockAckThreshold().
Accessor for the AC_VO channel access function.
Definition at line 516 of file regular-wifi-mac.cc.
References ns3::AC_VO, and m_edca.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), SetVoBlockAckInactivityTimeout(), and SetVoBlockAckThreshold().
Implements ns3::WifiMac.
Definition at line 550 of file regular-wifi-mac.cc.
References m_phy, and NS_LOG_FUNCTION.
|
overridevirtual |
Implements ns3::WifiMac.
Definition at line 193 of file regular-wifi-mac.cc.
References m_stationManager.
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), and HeAggregationTest::DoRunSubTest().
|
private |
|
protectedvirtual |
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received.
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.
mpdu | the MPDU that has been received. |
Reimplemented in ns3::StaWifiMac, ns3::ApWifiMac, ns3::AdhocWifiMac, ns3::OcbWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 756 of file regular-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::Packet::Copy(), ns3::WifiActionHeader::GetAction(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetAddr2(), GetAddress(), ns3::WifiActionHeader::GetCategory(), ns3::WifiMacQueueItem::GetHeader(), ns3::WifiMacQueueItem::GetPacket(), ns3::MgtAddBaResponseHeader::GetTid(), ns3::MgtDelBaHeader::GetTid(), ns3::WifiMacHeader::GetType(), ns3::WifiMacHeader::IsAction(), ns3::MgtDelBaHeader::IsByOriginator(), ns3::WifiMacHeader::IsMgt(), m_edca, m_feManager, m_qosSupported, NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::QosUtilsMapTidToAc(), and ns3::Packet::RemoveHeader().
Referenced by RegularWifiMac(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), and ns3::StaWifiMac::Receive().
|
overridevirtual |
Remove currently attached WifiPhy device from this MAC.
Implements ns3::WifiMac.
Definition at line 557 of file regular-wifi-mac.cc.
References m_channelAccessManager, m_feManager, m_phy, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
overridevirtual |
address | the current address of this MAC layer. |
Implements ns3::WifiMac.
Definition at line 668 of file regular-wifi-mac.cc.
References first::address, m_address, and NS_LOG_FUNCTION.
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), ns3::AdhocWifiMac::SetAddress(), and ns3::ApWifiMac::SetAddress().
|
private |
Set BE block ack inactivity timeout.
timeout | the BE block ack inactivity timeout. |
Definition at line 448 of file regular-wifi-mac.cc.
References GetBEQueue(), 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 420 of file regular-wifi-mac.cc.
References GetBEQueue(), 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 455 of file regular-wifi-mac.cc.
References GetBKQueue(), 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 427 of file regular-wifi-mac.cc.
References GetBKQueue(), NS_LOG_FUNCTION, and ns3::QosTxop::SetBlockAckThreshold().
Referenced by GetTypeId().
void ns3::RegularWifiMac::SetBssid | ( | Mac48Address | bssid | ) |
bssid | the BSSID of the network that this device belongs to. |
Definition at line 694 of file regular-wifi-mac.cc.
References m_bssid, m_feManager, and NS_LOG_FUNCTION.
Referenced by ns3::OcbWifiMac::OcbWifiMac(), ns3::AdhocWifiMac::SetAddress(), ns3::ApWifiMac::SetAddress(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
void ns3::RegularWifiMac::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 661 of file regular-wifi-mac.cc.
References m_ctsToSelfSupported, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
protected |
Enable or disable DSSS support for the device.
enable | whether DSSS is supported |
Definition at line 648 of file regular-wifi-mac.cc.
References m_dsssSupported, and NS_LOG_FUNCTION.
Referenced by ConfigureStandard(), and SetErpSupported().
|
protected |
Enable or disable ERP support for the device.
enable | whether ERP is supported |
Definition at line 637 of file regular-wifi-mac.cc.
References m_erpSupported, NS_LOG_FUNCTION, and SetDsssSupported().
Referenced by ConfigureStandard().
|
overridevirtual |
upCallback | the callback to invoke when a packet must be forwarded up the stack. |
Implements ns3::WifiMac.
Definition at line 567 of file regular-wifi-mac.cc.
References m_forwardUp, and NS_LOG_FUNCTION.
|
overridevirtual |
linkDown | the callback to invoke when the link becomes down. |
Implements ns3::WifiMac.
Definition at line 581 of file regular-wifi-mac.cc.
References m_linkDown, and NS_LOG_FUNCTION.
Referenced by ns3::OcbWifiMac::SetLinkDownCallback().
|
overridevirtual |
linkUp | the callback to invoke when the link becomes up. |
Implements ns3::WifiMac.
Definition at line 574 of file regular-wifi-mac.cc.
References m_linkUp, and NS_LOG_FUNCTION.
Referenced by ns3::MeshWifiInterfaceMac::SetLinkUpCallback(), ns3::OcbWifiMac::SetLinkUpCallback(), ns3::AdhocWifiMac::SetLinkUpCallback(), and ns3::ApWifiMac::SetLinkUpCallback().
|
overridevirtual |
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.
Implements ns3::WifiMac.
Definition at line 711 of file regular-wifi-mac.cc.
References m_feManager, and NS_ASSERT.
|
protectedvirtual |
Enable or disable QoS support for the device.
enable | whether QoS is supported |
Definition at line 588 of file regular-wifi-mac.cc.
References m_qosSupported, and NS_LOG_FUNCTION.
Referenced by ConfigureStandard(), and GetTypeId().
|
overridevirtual |
Enable or disable short slot time feature.
enable | true if short slot time is to be supported, false otherwise |
Implements ns3::WifiMac.
Definition at line 718 of file regular-wifi-mac.cc.
References m_shortSlotTimeSupported, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
overridevirtual |
ssid | the current SSID of this MAC layer. |
Implements ns3::WifiMac.
Definition at line 681 of file regular-wifi-mac.cc.
References m_ssid, NS_LOG_FUNCTION, and third::ssid.
|
overrideprotectedvirtual |
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. |
Implements ns3::WifiMac.
Definition at line 485 of file regular-wifi-mac.cc.
References m_typeOfStation, and NS_LOG_FUNCTION.
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 462 of file regular-wifi-mac.cc.
References ns3::QosTxop::GetBaManager(), m_ackedMpduCallback, m_channelAccessManager, m_droppedMpduCallback, m_edca, m_nackedMpduCallback, m_txMiddle, ns3::MakeCallback(), NS_ASSERT, NS_LOG_FUNCTION, ns3::QosTxop::SetAccessCategory(), ns3::Txop::SetChannelAccessManager(), ns3::QosTxop::SetDroppedMpduCallback(), and ns3::Txop::SetTxMiddle().
Referenced by RegularWifiMac().
|
protected |
Create a Frame Exchange Manager depending on the supported version of the standard.
Definition at line 124 of file regular-wifi-mac.cc.
References GetAddress(), GetBssid(), GetHeSupported(), GetHtSupported(), GetQosSupported(), GetVhtSupported(), m_ackedMpduCallback, m_channelAccessManager, m_droppedMpduCallback, m_edca, m_feManager, m_mpduResponseTimeoutCallback, m_psduMapResponseTimeoutCallback, m_psduResponseTimeoutCallback, m_rxMiddle, m_txMiddle, ns3::MakeCallback(), and NS_LOG_FUNCTION.
Referenced by ConfigureStandard().
|
private |
Set VI block ack inactivity timeout.
timeout | the VI block ack inactivity timeout. |
Definition at line 441 of file regular-wifi-mac.cc.
References GetVIQueue(), 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 413 of file regular-wifi-mac.cc.
References GetVIQueue(), 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 434 of file regular-wifi-mac.cc.
References GetVOQueue(), 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 406 of file regular-wifi-mac.cc.
References GetVOQueue(), NS_LOG_FUNCTION, and ns3::QosTxop::SetBlockAckThreshold().
Referenced by GetTypeId().
phy | the physical layer attached to this MAC. |
Implements ns3::WifiMac.
Reimplemented in ns3::StaWifiMac.
Definition at line 540 of file regular-wifi-mac.cc.
References m_channelAccessManager, m_feManager, m_phy, NS_ASSERT, NS_LOG_FUNCTION, and third::phy.
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), ns3::StaWifiMac::SetWifiPhy(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
overridevirtual |
stationManager | the station manager attached to this MAC. |
Implements ns3::WifiMac.
Definition at line 181 of file regular-wifi-mac.cc.
References m_edca, m_stationManager, m_txop, NS_LOG_FUNCTION, and ns3::Txop::SetWifiRemoteStationManager().
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), ns3::WaveHelper::Install(), and ns3::ApWifiMac::SetWifiRemoteStationManager().
|
overridevirtual |
The interface may or may not support sending from arbitrary address. This function returns true if sending from arbitrary address is supported, false otherwise.
Implements ns3::WifiMac.
Definition at line 743 of file regular-wifi-mac.cc.
|
private |
ack'ed MPDU callback
Definition at line 430 of file regular-wifi-mac.h.
Referenced by GetTypeId(), SetupEdcaQueue(), and SetupFrameExchangeManager().
|
private |
MAC address of this station.
Definition at line 411 of file regular-wifi-mac.h.
Referenced by GetAddress(), and SetAddress().
|
private |
maximum A-MPDU size for AC_BE (in bytes)
Definition at line 421 of file regular-wifi-mac.h.
Referenced by GetHeCapabilities(), GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MSDU size for AC_BE (in bytes)
Definition at line 416 of file regular-wifi-mac.h.
Referenced by GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MPDU size for AC_BK (in bytes)
Definition at line 422 of file regular-wifi-mac.h.
Referenced by GetHeCapabilities(), GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MSDU size for AC_BK (in bytes)
Definition at line 417 of file regular-wifi-mac.h.
Referenced by GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().
|
private |
the BSSID
Definition at line 412 of file regular-wifi-mac.h.
Referenced by GetBssid(), and SetBssid().
|
protected |
channel access manager
Definition at line 159 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), RegularWifiMac(), ns3::OcbWifiMac::ConfigureStandard(), DoDispose(), ns3::OcbWifiMac::MakeVirtualBusy(), ns3::OcbWifiMac::Reset(), ResetWifiPhy(), ns3::OcbWifiMac::Resume(), SetupEdcaQueue(), SetupFrameExchangeManager(), SetWifiPhy(), ns3::OcbWifiMac::Suspend(), and ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel().
|
private |
flag indicating whether CTS-To-Self is supported
Definition at line 509 of file regular-wifi-mac.h.
Referenced by SetCtsToSelfSupported().
|
private |
This trace indicates that an MPDU was dropped for the given reason.
Definition at line 447 of file regular-wifi-mac.h.
Referenced by RegularWifiMac(), GetTypeId(), SetupEdcaQueue(), and SetupFrameExchangeManager().
|
private |
This Boolean is set true
iff this WifiMac is to model 802.11b.
It is exposed through the attribute system.
Definition at line 409 of file regular-wifi-mac.h.
Referenced by ConfigureContentionWindow(), GetDsssSupported(), and SetDsssSupported().
|
protected |
This is a map from Access Category index to the corresponding channel access function.
Definition at line 181 of file regular-wifi-mac.h.
Referenced by ns3::OcbWifiMac::CancleTx(), ConfigureContentionWindow(), ns3::OcbWifiMac::ConfigureStandard(), DoDispose(), DoInitialize(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::ForwardDown(), GetBEQueue(), GetBKQueue(), ns3::ApWifiMac::GetEdcaParameterSet(), GetQosTxop(), GetVIQueue(), GetVOQueue(), Receive(), ns3::MeshWifiInterfaceMac::SendManagementFrame(), ns3::OcbWifiMac::SendVsc(), ns3::StaWifiMac::SetEdcaParameters(), SetupEdcaQueue(), SetupFrameExchangeManager(), and SetWifiRemoteStationManager().
|
private |
This Boolean is set true
iff this WifiMac is to model 802.11g.
It is exposed through the attribute system.
Definition at line 404 of file regular-wifi-mac.h.
Referenced by ConfigureContentionWindow(), GetErpSupported(), and SetErpSupported().
|
protected |
Frame Exchange Manager.
Definition at line 161 of file regular-wifi-mac.h.
Referenced by ns3::OcbWifiMac::ConfigureStandard(), DoDispose(), ns3::OcbWifiMac::EnableForWave(), GetFrameExchangeManager(), Receive(), ns3::OcbWifiMac::Reset(), ResetWifiPhy(), SetBssid(), SetPromisc(), SetupFrameExchangeManager(), SetWifiPhy(), and ns3::OcbWifiMac::Suspend().
|
protected |
Callback to forward packet up the stack.
Definition at line 165 of file regular-wifi-mac.h.
Referenced by ForwardUp(), and SetForwardUpCallback().
|
protected |
Callback when a link is down.
Definition at line 167 of file regular-wifi-mac.h.
Referenced by SetLinkDownCallback(), and ns3::StaWifiMac::TryToEnsureAssociated().
|
protected |
Callback when a link is up.
Definition at line 166 of file regular-wifi-mac.h.
Referenced by ns3::StaWifiMac::Receive(), and SetLinkUpCallback().
|
private |
MPDU response timeout traced callback.
This trace source is fed by a WifiTxTimer object.
Definition at line 466 of file regular-wifi-mac.h.
Referenced by GetTypeId(), and SetupFrameExchangeManager().
|
private |
nack'ed MPDU callback
Definition at line 431 of file regular-wifi-mac.h.
Referenced by GetTypeId(), and SetupEdcaQueue().
Wifi PHY.
Definition at line 160 of file regular-wifi-mac.h.
Referenced by ns3::MeshWifiInterfaceMac::CheckSupportedRates(), DoDispose(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::StaWifiMac::GetCapabilities(), ns3::ApWifiMac::GetDsssParameterSet(), ns3::MeshWifiInterfaceMac::GetFrequencyChannel(), GetHeCapabilities(), ns3::ApWifiMac::GetHeOperation(), GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperation(), ns3::ApWifiMac::GetVhtOperationalChannelWidth(), GetWifiPhy(), ns3::StaWifiMac::MissedBeacons(), ns3::MeshWifiInterfaceMac::Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::Receive(), ResetWifiPhy(), ns3::ApWifiMac::SendOneBeacon(), SetWifiPhy(), ns3::StaWifiMac::SetWifiPhy(), ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), ns3::StaWifiMac::UpdateApInfoFromProbeResp(), and ns3::ApWifiMac::UpdateShortPreambleEnabled().
|
private |
PSDU map response timeout traced callback.
This trace source is fed by a WifiTxTimer object.
Definition at line 506 of file regular-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 485 of file regular-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 399 of file regular-wifi-mac.h.
Referenced by GetQosSupported(), Receive(), and SetQosSupported().
|
protected |
RX middle (defragmentation etc.)
Definition at line 157 of file regular-wifi-mac.h.
Referenced by RegularWifiMac(), ns3::OcbWifiMac::ConfigureStandard(), DoDispose(), and SetupFrameExchangeManager().
|
private |
flag whether short slot time is supported
Definition at line 508 of file regular-wifi-mac.h.
Referenced by GetShortSlotTimeSupported(), and SetShortSlotTimeSupported().
|
protected |
Service Set ID (SSID)
Definition at line 169 of file regular-wifi-mac.h.
|
protected |
Remote station manager (rate control, RTS/CTS/fragmentation thresholds etc.)
Definition at line 163 of file regular-wifi-mac.h.
Referenced by ns3::MeshWifiInterfaceMac::CheckSupportedRates(), DoDispose(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::ApWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::GetHeOperation(), ns3::ApWifiMac::GetHtOperation(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetUseNonErpProtection(), ns3::ApWifiMac::GetVhtOperation(), ns3::ApWifiMac::GetVhtOperationalChannelWidth(), GetWifiRemoteStationManager(), ns3::MeshWifiInterfaceMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), SetWifiRemoteStationManager(), ns3::ApWifiMac::TxFailed(), ns3::ApWifiMac::TxOk(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), ns3::StaWifiMac::UpdateApInfoFromProbeResp(), ns3::ApWifiMac::UpdateShortPreambleEnabled(), and ns3::ApWifiMac::UpdateShortSlotTimeEnabled().
|
private |
transmit error callback
Definition at line 425 of file regular-wifi-mac.h.
Referenced by GetTypeId().
|
protected |
TX middle (aggregation etc.)
Definition at line 158 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), RegularWifiMac(), ns3::OcbWifiMac::ConfigureStandard(), DoDispose(), AmpduAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), SetupEdcaQueue(), and SetupFrameExchangeManager().
|
private |
This holds a pointer to the TXOP instance for this WifiMac - used for transmission of frames to non-QoS peers.
Definition at line 173 of file regular-wifi-mac.h.
Referenced by RegularWifiMac(), ConfigureContentionWindow(), ns3::MeshWifiInterfaceMac::ConfigureStandard(), DoDispose(), DoInitialize(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), GetTxop(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), ns3::OcbWifiMac::SendVsc(), and SetWifiRemoteStationManager().
|
private |
the type of station
Definition at line 384 of file regular-wifi-mac.h.
Referenced by GetTypeOfStation(), and SetTypeOfStation().
|
private |
maximum A-MPDU size for AC_VI (in bytes)
Definition at line 420 of file regular-wifi-mac.h.
Referenced by GetHeCapabilities(), GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MSDU size for AC_VI (in bytes)
Definition at line 415 of file regular-wifi-mac.h.
Referenced by GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MPDU size for AC_VO (in bytes)
Definition at line 419 of file regular-wifi-mac.h.
Referenced by GetHeCapabilities(), GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().
|
private |
maximum A-MSDU size for AC_VO (in bytes)
Definition at line 414 of file regular-wifi-mac.h.
Referenced by GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().