base class for all MAC-level wifi objects. More...
#include "regular-wifi-mac.h"
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... | |
Public Member Functions | |
RegularWifiMac () | |
virtual | ~RegularWifiMac () |
void | ConfigureStandard (WifiStandard standard) |
virtual void | Enqueue (Ptr< Packet > packet, Mac48Address to, Mac48Address from) |
virtual void | Enqueue (Ptr< Packet > packet, Mac48Address to)=0 |
Mac48Address | GetAddress (void) const |
Mac48Address | GetBssid (void) const |
ExtendedCapabilities | GetExtendedCapabilities (void) const |
Return the extended capabilities of the device. 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... | |
bool | GetShortSlotTimeSupported (void) const |
Ssid | GetSsid (void) const |
VhtCapabilities | GetVhtCapabilities (void) const |
Return the VHT capabilities of the device. More... | |
Ptr< WifiPhy > | GetWifiPhy (void) const |
Ptr< WifiRemoteStationManager > | GetWifiRemoteStationManager (void) const |
void | ResetWifiPhy (void) |
Remove currently attached WifiPhy device from this MAC. More... | |
void | SetAddress (Mac48Address address) |
void | SetBssid (Mac48Address bssid) |
void | SetCtsToSelfSupported (bool enable) |
Enable or disable CTS-to-self feature. More... | |
void | SetForwardUpCallback (ForwardUpCallback upCallback) |
void | SetLinkDownCallback (Callback< void > linkDown) |
void | SetLinkUpCallback (Callback< void > linkUp) |
void | SetPromisc (void) |
Sets the interface in promiscuous mode. More... | |
void | SetShortSlotTimeSupported (bool enable) |
Enable or disable short slot time feature. More... | |
void | SetSsid (Ssid ssid) |
virtual void | SetWifiPhy (const Ptr< WifiPhy > phy) |
virtual void | SetWifiRemoteStationManager (const Ptr< WifiRemoteStationManager > stationManager) |
virtual bool | SupportsSendFrom (void) const |
![]() | |
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... | |
virtual void | SetForwardUpCallback (Callback< void, Ptr< const Packet >, Mac48Address, Mac48Address > upCallback)=0 |
![]() | |
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<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated 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 () const |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
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... | |
virtual void | DoDispose () |
Destructor implementation. More... | |
virtual void | DoInitialize () |
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... | |
Ptr< Txop > | GetTxop (void) const |
Accessor for the DCF object. 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 | SendAddBaResponse (const MgtAddBaRequestHeader *reqHdr, Mac48Address originator) |
This method can be called to accept a received ADDBA Request. 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) |
This method is invoked by a subclass to specify what type of station it is implementing. More... | |
virtual void | TxFailed (const WifiMacHeader &hdr) |
The packet we sent was successfully received by the receiver (i.e. More... | |
virtual void | TxOk (const WifiMacHeader &hdr) |
The packet we sent was successfully received by the receiver (i.e. 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... | |
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< MacLow > | m_low |
MacLow (RTS, CTS, Data, Ack etc.) 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 Member Functions | |
RegularWifiMac (const RegularWifiMac &) | |
type conversion operator More... | |
void | DisableAggregation (void) |
Disable aggregation function. More... | |
void | EnableAggregation (void) |
Enable aggregation function. 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 | |
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_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... | |
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... | |
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 (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 368 bytes (on a 64-bit architecture).
Definition at line 44 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 155 of file regular-wifi-mac.h.
typedef Callback<void, Ptr<const Packet>, Mac48Address, Mac48Address> ns3::RegularWifiMac::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 81 of file regular-wifi-mac.h.
ns3::RegularWifiMac::RegularWifiMac | ( | ) |
Definition at line 46 of file regular-wifi-mac.cc.
References ns3::AC_BE, ns3::AC_BK, ns3::AC_VI, ns3::AC_VO, m_channelAccessManager, m_low, m_rxMiddle, m_txMiddle, m_txop, ns3::MakeCallback(), ns3::WifiMac::NotifyTxDrop(), NS_LOG_FUNCTION, ns3::MacRxMiddle::Receive(), Receive(), ns3::Txop::SetChannelAccessManager(), ns3::Txop::SetMacLow(), ns3::Txop::SetTxDroppedCallback(), ns3::Txop::SetTxFailedCallback(), ns3::Txop::SetTxMiddle(), ns3::Txop::SetTxOkCallback(), SetupEdcaQueue(), ns3::ChannelAccessManager::SetupLow(), TxFailed(), and TxOk().
|
virtual |
Definition at line 81 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 1084 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().
|
virtual |
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 1039 of file regular-wifi-mac.cc.
References ConfigureContentionWindow(), EnableAggregation(), NS_FATAL_ERROR, NS_LOG_FUNCTION, SetDsssSupported(), SetErpSupported(), SetQosSupported(), 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, ns3::WIFI_STANDARD_80211p, and ns3::WIFI_STANDARD_holland.
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 791 of file regular-wifi-mac.cc.
References ForwardUp(), NS_LOG_FUNCTION, and ns3::PeekPointer().
Referenced by ns3::AdhocWifiMac::Receive(), ns3::OcbWifiMac::Receive(), and ns3::StaWifiMac::Receive().
|
private |
Disable aggregation function.
Definition at line 1131 of file regular-wifi-mac.cc.
References m_low, and NS_LOG_FUNCTION.
|
protectedvirtual |
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.
Reimplemented in ns3::ApWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 99 of file regular-wifi-mac.cc.
References ns3::Object::Dispose(), ns3::WifiMac::DoDispose(), m_channelAccessManager, m_edca, m_low, m_phy, m_rxMiddle, m_stationManager, m_txMiddle, m_txop, and NS_LOG_FUNCTION.
Referenced by ns3::MeshWifiInterfaceMac::DoDispose(), and ns3::ApWifiMac::DoDispose().
|
protectedvirtual |
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, ns3::ApWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 87 of file regular-wifi-mac.cc.
References ns3::Object::Initialize(), m_edca, m_txop, and NS_LOG_FUNCTION.
Referenced by ns3::ApWifiMac::DoInitialize().
|
private |
Enable aggregation function.
Definition at line 1113 of file regular-wifi-mac.cc.
References m_edca, m_low, and NS_LOG_FUNCTION.
Referenced by ConfigureStandard().
|
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.
Implements ns3::WifiMac.
Reimplemented in ns3::MeshWifiInterfaceMac, and ns3::ApWifiMac.
Definition at line 666 of file regular-wifi-mac.cc.
References GetAddress(), and NS_FATAL_ERROR.
|
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.
Implements ns3::WifiMac.
Implemented in ns3::StaWifiMac, ns3::OcbWifiMac, ns3::MeshWifiInterfaceMac, ns3::ApWifiMac, ns3::InfrastructureWifiMac, and ns3::AdhocWifiMac.
|
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 684 of file regular-wifi-mac.cc.
References m_forwardUp, and NS_LOG_FUNCTION.
Referenced by ns3::ApWifiMac::DeaggregateAmsduAndForward(), DeaggregateAmsduAndForward(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), and ns3::StaWifiMac::Receive().
|
virtual |
Implements ns3::WifiMac.
Definition at line 615 of file regular-wifi-mac.cc.
References m_low.
Referenced by ns3::ApWifiMac::DeaggregateAmsduAndForward(), ns3::ApWifiMac::DoInitialize(), Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::StaWifiMac::Receive(), Receive(), ns3::MeshWifiInterfaceMac::Report(), SendAddBaResponse(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), and ns3::OcbWifiMac::SendVsc().
Accessor for the AC_BE channel access function.
Definition at line 470 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 476 of file regular-wifi-mac.cc.
References ns3::AC_BK, and m_edca.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), SetBkBlockAckInactivityTimeout(), and SetBkBlockAckThreshold().
|
virtual |
Implements ns3::WifiMac.
Definition at line 641 of file regular-wifi-mac.cc.
References m_low.
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::StaWifiMac::Receive(), SendAddBaResponse(), ns3::StaWifiMac::SendAssociationRequest(), ns3::StaWifiMac::SendCfPollResponse(), and ns3::StaWifiMac::SetState().
|
protected |
Return whether the device supports DSSS.
Definition at line 595 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 571 of file regular-wifi-mac.cc.
References m_erpSupported.
Referenced by ns3::StaWifiMac::GetCapabilities(), ns3::ApWifiMac::GetErpInformation(), ns3::ApWifiMac::GetShortPreambleEnabled(), ns3::ApWifiMac::GetShortSlotTimeEnabled(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
ExtendedCapabilities ns3::RegularWifiMac::GetExtendedCapabilities | ( | void | ) | const |
Return the extended capabilities of the device.
Definition at line 147 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().
HeCapabilities ns3::RegularWifiMac::GetHeCapabilities | ( | void | ) | const |
Return the HE capabilities of the device.
Definition at line 307 of file regular-wifi-mac.cc.
References ns3::WifiPhy::GetChannelWidth(), ns3::WifiMac::GetHeConfiguration(), GetHeSupported(), ns3::WifiPhy::GetMaxSupportedTxSpatialStreams(), ns3::WifiPhy::GetMcs(), ns3::WifiMode::GetMcsValue(), ns3::WifiMode::GetModulationClass(), ns3::WifiPhy::GetNMcs(), 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::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 561 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(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
HtCapabilities ns3::RegularWifiMac::GetHtCapabilities | ( | void | ) | const |
Return the HT capabilities of the device.
Definition at line 158 of file regular-wifi-mac.cc.
References ns3::WifiPhy::GetChannelWidth(), ns3::WifiMode::GetDataRate(), ns3::WifiMac::GetHtConfiguration(), GetHtSupported(), ns3::WifiPhy::GetMaxSupportedTxSpatialStreams(), ns3::WifiPhy::GetMcs(), ns3::WifiMode::GetMcsValue(), ns3::WifiMode::GetModulationClass(), 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::SetGreenfield(), 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::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Receive(), ns3::OcbWifiMac::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 541 of file regular-wifi-mac.cc.
References ns3::WifiMac::GetHtConfiguration().
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), GetExtendedCapabilities(), GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
|
protected |
Return whether the device supports QoS.
Definition at line 535 of file regular-wifi-mac.cc.
References m_qosSupported.
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), ns3::ApWifiMac::GetEdcaParameterSet(), GetTypeId(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::OcbWifiMac::SendVsc(), ns3::InfrastructureWifiMac::SetPcfSupported(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
|
virtual |
Implements ns3::WifiMac.
Definition at line 660 of file regular-wifi-mac.cc.
References m_shortSlotTimeSupported.
Referenced by ns3::StaWifiMac::GetCapabilities(), ns3::ApWifiMac::GetShortSlotTimeEnabled(), and GetTypeId().
|
virtual |
Implements ns3::WifiMac.
Definition at line 628 of file regular-wifi-mac.cc.
References m_ssid.
Referenced by ns3::OcbWifiMac::GetSsid(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::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 452 of file regular-wifi-mac.cc.
References m_txop.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), and GetTypeId().
|
static |
Get the type ID.
Definition at line 863 of file regular-wifi-mac.cc.
References GetBEQueue(), GetBKQueue(), GetQosSupported(), GetShortSlotTimeSupported(), GetTxop(), GetVIQueue(), GetVOQueue(), m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, m_txErrCallback, m_txOkCallback, m_viMaxAmpduSize, m_viMaxAmsduSize, m_voMaxAmpduSize, m_voMaxAmsduSize, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakePointerAccessor(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), SetBeBlockAckInactivityTimeout(), SetBeBlockAckThreshold(), SetBkBlockAckInactivityTimeout(), SetBkBlockAckThreshold(), SetCtsToSelfSupported(), ns3::TypeId::SetParent(), SetQosSupported(), SetShortSlotTimeSupported(), SetViBlockAckInactivityTimeout(), SetViBlockAckThreshold(), SetVoBlockAckInactivityTimeout(), and SetVoBlockAckThreshold().
VhtCapabilities ns3::RegularWifiMac::GetVhtCapabilities | ( | void | ) | const |
Return the VHT capabilities of the device.
Definition at line 221 of file regular-wifi-mac.cc.
References ns3::WifiPhy::GetChannelWidth(), ns3::WifiMode::GetDataRate(), ns3::WifiMac::GetHtConfiguration(), ns3::WifiPhy::GetMaxSupportedRxSpatialStreams(), ns3::WifiPhy::GetMaxSupportedTxSpatialStreams(), ns3::WifiPhy::GetMcs(), ns3::WifiMode::GetMcsValue(), ns3::WifiMode::GetModulationClass(), ns3::WifiPhy::GetNMcs(), ns3::WifiMac::GetVhtConfiguration(), GetVhtSupported(), ns3::WifiMode::IsAllowed(), 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::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::AdhocWifiMac::Receive(), ns3::OcbWifiMac::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 551 of file regular-wifi-mac.cc.
References ns3::WifiMac::GetVhtConfiguration().
Referenced by ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), GetExtendedCapabilities(), GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperation(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
Accessor for the AC_VI channel access function.
Definition at line 464 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 458 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 491 of file regular-wifi-mac.cc.
References m_phy, and NS_LOG_FUNCTION.
|
virtual |
Implements ns3::WifiMac.
Definition at line 141 of file regular-wifi-mac.cc.
References m_stationManager.
|
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::MeshWifiInterfaceMac, ns3::OcbWifiMac, ns3::ApWifiMac, and ns3::AdhocWifiMac.
Definition at line 691 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::WifiActionHeader::GetAction(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetAddr2(), GetAddress(), ns3::WifiActionHeader::GetCategory(), ns3::MgtAddBaResponseHeader::GetTid(), ns3::MgtDelBaHeader::GetTid(), ns3::WifiMacHeader::GetType(), ns3::WifiMacHeader::IsAction(), ns3::MgtDelBaHeader::IsByOriginator(), ns3::WifiMacHeader::IsMgt(), m_edca, m_low, m_qosSupported, NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::QosUtilsMapTidToAc(), ns3::Packet::RemoveHeader(), and SendAddBaResponse().
Referenced by ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::StaWifiMac::Receive(), and RegularWifiMac().
|
virtual |
Remove currently attached WifiPhy device from this MAC.
Implements ns3::WifiMac.
Definition at line 498 of file regular-wifi-mac.cc.
References m_channelAccessManager, m_low, m_phy, NS_LOG_FUNCTION, and ns3::ChannelAccessManager::RemovePhyListener().
Referenced by ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
protected |
This method can be called to accept a received ADDBA Request.
An ADDBA Response will be constructed and queued for transmission.
reqHdr | a pointer to the received ADDBA Request header. |
originator | the MAC address of the originator. |
Definition at line 802 of file regular-wifi-mac.cc.
References ns3::Packet::AddHeader(), ns3::WifiActionHeader::BLOCK_ACK, ns3::WifiActionHeader::BLOCK_ACK_ADDBA_RESPONSE, ns3::WifiActionHeader::ActionValue::blockAck, GetAddress(), GetBssid(), ns3::WifiMac::GetHeConfiguration(), ns3::MgtAddBaRequestHeader::GetStartingSequence(), ns3::MgtAddBaRequestHeader::GetTid(), ns3::MgtAddBaRequestHeader::GetTimeout(), ns3::MgtAddBaRequestHeader::IsAmsduSupported(), ns3::MgtAddBaRequestHeader::IsImmediateBlockAck(), m_edca, m_low, NS_LOG_FUNCTION, ns3::QosUtilsMapTidToAc(), ns3::WifiActionHeader::SetAction(), ns3::WifiMacHeader::SetAddr1(), ns3::WifiMacHeader::SetAddr2(), ns3::WifiMacHeader::SetAddr3(), ns3::MgtAddBaResponseHeader::SetAmsduSupport(), ns3::MgtAddBaResponseHeader::SetBufferSize(), ns3::MgtAddBaResponseHeader::SetDelayedBlockAck(), ns3::WifiMacHeader::SetDsNotFrom(), ns3::WifiMacHeader::SetDsNotTo(), ns3::MgtAddBaResponseHeader::SetImmediateBlockAck(), ns3::MgtAddBaResponseHeader::SetStatusCode(), ns3::StatusCode::SetSuccess(), ns3::MgtAddBaResponseHeader::SetTid(), ns3::MgtAddBaResponseHeader::SetTimeout(), ns3::WifiMacHeader::SetType(), and ns3::WIFI_MAC_MGT_ACTION.
Referenced by Receive().
|
virtual |
address | the current address of this MAC layer. |
Implements ns3::WifiMac.
Definition at line 608 of file regular-wifi-mac.cc.
References first::address, m_low, 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 406 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 378 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 413 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 385 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 634 of file regular-wifi-mac.cc.
References m_low, 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 601 of file regular-wifi-mac.cc.
References m_low, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
protected |
Enable or disable DSSS support for the device.
enable | whether DSSS is supported |
Definition at line 588 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 577 of file regular-wifi-mac.cc.
References m_erpSupported, NS_LOG_FUNCTION, and SetDsssSupported().
Referenced by ConfigureStandard().
void ns3::RegularWifiMac::SetForwardUpCallback | ( | ForwardUpCallback | upCallback | ) |
Definition at line 507 of file regular-wifi-mac.cc.
References m_forwardUp, and NS_LOG_FUNCTION.
|
virtual |
linkDown | the callback to invoke when the link becomes down. |
Implements ns3::WifiMac.
Definition at line 521 of file regular-wifi-mac.cc.
References m_linkDown, and NS_LOG_FUNCTION.
Referenced by ns3::OcbWifiMac::SetLinkDownCallback().
|
virtual |
linkUp | the callback to invoke when the link becomes up. |
Implements ns3::WifiMac.
Definition at line 514 of file regular-wifi-mac.cc.
References m_linkUp, and NS_LOG_FUNCTION.
Referenced by ns3::AdhocWifiMac::SetLinkUpCallback(), ns3::ApWifiMac::SetLinkUpCallback(), ns3::MeshWifiInterfaceMac::SetLinkUpCallback(), and ns3::OcbWifiMac::SetLinkUpCallback().
|
virtual |
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 647 of file regular-wifi-mac.cc.
References m_low.
|
protectedvirtual |
Enable or disable QoS support for the device.
enable | whether QoS is supported |
Reimplemented in ns3::InfrastructureWifiMac.
Definition at line 528 of file regular-wifi-mac.cc.
References m_qosSupported, and NS_LOG_FUNCTION.
Referenced by ConfigureStandard(), GetTypeId(), and ns3::InfrastructureWifiMac::SetQosSupported().
|
virtual |
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 653 of file regular-wifi-mac.cc.
References m_shortSlotTimeSupported, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
virtual |
ssid | the current SSID of this MAC layer. |
Implements ns3::WifiMac.
Definition at line 621 of file regular-wifi-mac.cc.
References m_ssid, NS_LOG_FUNCTION, and third::ssid.
|
protected |
This method is invoked by a subclass to specify what type of station it is implementing.
This is something that the channel access functions (instantiated within this class as QosTxop's) need to know.
type | the type of station. |
Definition at line 442 of file regular-wifi-mac.cc.
References m_edca, 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 420 of file regular-wifi-mac.cc.
References m_channelAccessManager, m_edca, m_low, m_txMiddle, ns3::MakeCallback(), ns3::WifiMac::NotifyTxDrop(), NS_ASSERT, NS_LOG_FUNCTION, ns3::Txop::SetMacLow(), TxFailed(), and TxOk().
Referenced by RegularWifiMac().
|
private |
Set VI block ack inactivity timeout.
timeout | the VI block ack inactivity timeout. |
Definition at line 399 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 371 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 392 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 364 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 482 of file regular-wifi-mac.cc.
References m_channelAccessManager, m_low, m_phy, NS_LOG_FUNCTION, third::phy, and ns3::ChannelAccessManager::SetupPhyListener().
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), ns3::StaWifiMac::SetWifiPhy(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
virtual |
stationManager | the station manager attached to this MAC. |
Implements ns3::WifiMac.
Reimplemented in ns3::StaWifiMac, and ns3::ApWifiMac.
Definition at line 128 of file regular-wifi-mac.cc.
References m_edca, m_low, m_stationManager, m_txop, NS_LOG_FUNCTION, and ns3::Txop::SetWifiRemoteStationManager().
Referenced by ns3::WaveHelper::Install(), ns3::ApWifiMac::SetWifiRemoteStationManager(), and ns3::StaWifiMac::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.
Implements ns3::WifiMac.
Reimplemented in ns3::MeshWifiInterfaceMac, and ns3::ApWifiMac.
Definition at line 678 of file regular-wifi-mac.cc.
|
protectedvirtual |
The packet we sent was successfully received by the receiver (i.e.
we did not receive an Ack from the receiver).
hdr | the header of the packet that we failed to sent |
Reimplemented in ns3::ApWifiMac.
Definition at line 1106 of file regular-wifi-mac.cc.
References m_txErrCallback, and NS_LOG_FUNCTION.
Referenced by RegularWifiMac(), SetupEdcaQueue(), and ns3::ApWifiMac::TxFailed().
|
protectedvirtual |
The packet we sent was successfully received by the receiver (i.e.
we received an Ack from the receiver).
hdr | the header of the packet that we successfully sent |
Reimplemented in ns3::ApWifiMac.
Definition at line 1099 of file regular-wifi-mac.cc.
References m_txOkCallback, and NS_LOG_FUNCTION.
Referenced by RegularWifiMac(), SetupEdcaQueue(), and ns3::ApWifiMac::TxOk().
|
private |
maximum A-MPDU size for AC_BE (in bytes)
Definition at line 434 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 429 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 435 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 430 of file regular-wifi-mac.h.
Referenced by GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().
|
protected |
channel access manager
Definition at line 138 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), DoDispose(), ns3::OcbWifiMac::EnableForWave(), ns3::OcbWifiMac::MakeVirtualBusy(), RegularWifiMac(), ns3::OcbWifiMac::Reset(), ResetWifiPhy(), ns3::OcbWifiMac::Resume(), SetupEdcaQueue(), SetWifiPhy(), ns3::OcbWifiMac::Suspend(), and ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel().
|
private |
This Boolean is set true
iff this WifiMac is to model 802.11b.
It is exposed through the attribute system.
Definition at line 420 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 159 of file regular-wifi-mac.h.
Referenced by ns3::OcbWifiMac::CancleTx(), ConfigureContentionWindow(), DoDispose(), DoInitialize(), EnableAggregation(), ns3::OcbWifiMac::EnableForWave(), ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), ns3::MeshWifiInterfaceMac::ForwardDown(), GetBEQueue(), GetBKQueue(), ns3::ApWifiMac::GetEdcaParameterSet(), GetVIQueue(), GetVOQueue(), Receive(), SendAddBaResponse(), ns3::MeshWifiInterfaceMac::SendManagementFrame(), ns3::OcbWifiMac::SendVsc(), ns3::StaWifiMac::SetEdcaParameters(), SetTypeOfStation(), SetupEdcaQueue(), 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 415 of file regular-wifi-mac.h.
Referenced by ConfigureContentionWindow(), GetErpSupported(), and SetErpSupported().
|
protected |
Callback to forward packet up the stack.
Definition at line 143 of file regular-wifi-mac.h.
Referenced by ForwardUp(), and SetForwardUpCallback().
|
protected |
Callback when a link is down.
Definition at line 145 of file regular-wifi-mac.h.
Referenced by SetLinkDownCallback(), and ns3::StaWifiMac::TryToEnsureAssociated().
|
protected |
Callback when a link is up.
Definition at line 144 of file regular-wifi-mac.h.
Referenced by ns3::StaWifiMac::Receive(), and SetLinkUpCallback().
MacLow (RTS, CTS, Data, Ack etc.)
Definition at line 137 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), DisableAggregation(), DoDispose(), EnableAggregation(), ns3::OcbWifiMac::EnableForWave(), ns3::AdhocWifiMac::Enqueue(), ns3::ApWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::Enqueue(), ns3::StaWifiMac::Enqueue(), GetAddress(), ns3::ApWifiMac::GetBeaconInterval(), GetBssid(), ns3::ApWifiMac::GetCfpMaxDuration(), ns3::StaWifiMac::Receive(), Receive(), RegularWifiMac(), ns3::OcbWifiMac::Reset(), ResetWifiPhy(), SendAddBaResponse(), ns3::ApWifiMac::SendNextCfFrame(), SetAddress(), ns3::ApWifiMac::SetBeaconInterval(), SetBssid(), ns3::ApWifiMac::SetCfpMaxDuration(), SetCtsToSelfSupported(), SetPromisc(), SetupEdcaQueue(), SetWifiPhy(), SetWifiRemoteStationManager(), and ns3::OcbWifiMac::Suspend().
Wifi PHY.
Definition at line 139 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::ApWifiMac::GetShortPreambleEnabled(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperation(), ns3::ApWifiMac::GetVhtOperationalChannelWidth(), GetWifiPhy(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::StaWifiMac::Receive(), ResetWifiPhy(), ns3::ApWifiMac::SendOneBeacon(), SetWifiPhy(), ns3::StaWifiMac::SetWifiPhy(), ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
|
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 410 of file regular-wifi-mac.h.
Referenced by GetQosSupported(), Receive(), and SetQosSupported().
|
protected |
RX middle (defragmentation etc.)
Definition at line 135 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), DoDispose(), ns3::OcbWifiMac::EnableForWave(), and RegularWifiMac().
|
private |
flag whether short slot time is supported
Definition at line 440 of file regular-wifi-mac.h.
Referenced by GetShortSlotTimeSupported(), and SetShortSlotTimeSupported().
|
protected |
Service Set ID (SSID)
Definition at line 147 of file regular-wifi-mac.h.
|
protected |
Remote station manager (rate control, RTS/CTS/fragmentation thresholds etc.)
Definition at line 141 of file regular-wifi-mac.h.
Referenced by ns3::MeshWifiInterfaceMac::CheckSupportedRates(), DoDispose(), ns3::AdhocWifiMac::Enqueue(), ns3::ApWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::GetHeOperation(), ns3::ApWifiMac::GetHtOperation(), ns3::ApWifiMac::GetShortPreambleEnabled(), ns3::ApWifiMac::GetShortSlotTimeEnabled(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetUseNonErpProtection(), ns3::ApWifiMac::GetVhtOperation(), ns3::ApWifiMac::GetVhtOperationalChannelWidth(), GetWifiRemoteStationManager(), ns3::ApWifiMac::IsNonGfHtStasPresent(), ns3::AdhocWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::OcbWifiMac::Receive(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), ns3::InfrastructureWifiMac::SetPcfSupported(), ns3::ApWifiMac::SetWifiRemoteStationManager(), SetWifiRemoteStationManager(), ns3::StaWifiMac::SetWifiRemoteStationManager(), ns3::ApWifiMac::TxFailed(), ns3::ApWifiMac::TxOk(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
|
private |
transmit error callback
Definition at line 438 of file regular-wifi-mac.h.
Referenced by GetTypeId(), and TxFailed().
|
protected |
TX middle (aggregation etc.)
Definition at line 136 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), DoDispose(), AmpduAggregationTest::DoRun(), HeAggregationTest::DoRunSubTest(), RegularWifiMac(), and SetupEdcaQueue().
|
private |
transmit OK callback
Definition at line 437 of file regular-wifi-mac.h.
Referenced by GetTypeId(), and TxOk().
This holds a pointer to the TXOP instance for this WifiMac - used for transmission of frames to non-QoS peers.
Definition at line 151 of file regular-wifi-mac.h.
Referenced by ConfigureContentionWindow(), ns3::MeshWifiInterfaceMac::ConfigureStandard(), DoDispose(), DoInitialize(), ns3::OcbWifiMac::EnableForWave(), ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::StaWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), GetTxop(), RegularWifiMac(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::ApWifiMac::SendCfEnd(), ns3::ApWifiMac::SendCfPoll(), ns3::StaWifiMac::SendCfPollResponse(), ns3::ApWifiMac::SendNextCfFrame(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), ns3::OcbWifiMac::SendVsc(), and SetWifiRemoteStationManager().
|
private |
maximum A-MPDU size for AC_VI (in bytes)
Definition at line 433 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 428 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 432 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 427 of file regular-wifi-mac.h.
Referenced by GetHtCapabilities(), GetTypeId(), and GetVhtCapabilities().