base class for all MAC-level wifi objects. More...
#include "regular-wifi-mac.h"
Public Types | |
typedef Callback< void, Ptr< 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 () |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to, Mac48Address from) |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to)=0 |
Time | GetAckTimeout (void) const |
virtual Mac48Address | GetAddress (void) const |
virtual Time | GetBasicBlockAckTimeout (void) const |
virtual Mac48Address | GetBssid (void) const |
virtual Time | GetCompressedBlockAckTimeout (void) const |
Time | GetCtsTimeout (void) const |
bool | GetCtsToSelfSupported () const |
Return whether the device supports CTS-to-self capability. More... | |
Time | GetEifsNoDifs (void) const |
HtCapabilities | GetHtCapabilities (void) const |
Return the HT capability of the device. More... | |
Time | GetPifs (void) const |
Time | GetRifs (void) const |
virtual bool | GetShortSlotTimeSupported (void) const |
Time | GetSifs (void) const |
Time | GetSlot (void) const |
virtual Ssid | GetSsid (void) const |
VhtCapabilities | GetVhtCapabilities (void) const |
Return the VHT capability of the device. More... | |
virtual Ptr< WifiPhy > | GetWifiPhy (void) const |
virtual Ptr< WifiRemoteStationManager > | GetWifiRemoteStationManager (void) const |
virtual void | ResetWifiPhy (void) |
removes attached WifiPhy device from this MAC. More... | |
void | SetAckTimeout (Time ackTimeout) |
virtual void | SetAddress (Mac48Address address) |
virtual void | SetBasicBlockAckTimeout (Time blockAckTimeout) |
virtual void | SetBssid (Mac48Address bssid) |
virtual void | SetCompressedBlockAckTimeout (Time blockAckTimeout) |
void | SetCtsTimeout (Time ctsTimeout) |
void | SetCtsToSelfSupported (bool enable) |
Enable or disable CTS-to-self feature. More... | |
void | SetEifsNoDifs (Time eifsNoDifs) |
virtual void | SetForwardUpCallback (ForwardUpCallback upCallback) |
virtual void | SetLinkDownCallback (Callback< void > linkDown) |
virtual void | SetLinkUpCallback (Callback< void > linkUp) |
void | SetPifs (Time pifs) |
virtual void | SetPromisc (void) |
Sets the interface in promiscuous mode. More... | |
void | SetRifs (Time rifs) |
virtual void | SetShortSlotTimeSupported (bool enable) |
Enable or disable short slot time feature. More... | |
void | SetSifs (Time sifs) |
void | SetSlot (Time slotTime) |
virtual void | SetSsid (Ssid ssid) |
virtual void | SetWifiPhy (Ptr< WifiPhy > phy) |
virtual void | SetWifiRemoteStationManager (Ptr< WifiRemoteStationManager > stationManager) |
virtual bool | SupportsSendFrom (void) const |
![]() | |
void | ConfigureStandard (enum WifiPhyStandard standard) |
Time | GetMaxPropagationDelay (void) const |
Time | GetMsduLifetime (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) |
virtual void | SetForwardUpCallback (Callback< void, Ptr< Packet >, Mac48Address, Mac48Address > upCallback)=0 |
void | SetMaxPropagationDelay (Time delay) |
![]() | |
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 |
Implement the GetInstanceTypeId method defined in ObjectBase. 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... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
![]() | |
SimpleRefCount () | |
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. 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) |
![]() | |
static TypeId | GetTypeId (void) |
![]() | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
![]() | |
static void | Cleanup (void) |
Noop. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Protected Types | |
typedef std::map< AcIndex, Ptr< EdcaTxopN > > | 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< Packet > aggregatedPacket, const WifiMacHeader *hdr) |
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... | |
virtual void | FinishConfigureStandard (enum WifiPhyStandard standard) |
void | ForwardUp (Ptr< Packet > packet, Mac48Address from, Mac48Address to) |
Forward the packet up to the device. More... | |
Ptr< EdcaTxopN > | GetBEQueue (void) const |
Accessor for the AC_BE channel access function. More... | |
Ptr< EdcaTxopN > | GetBKQueue (void) const |
Accessor for the AC_BK channel access function. More... | |
Ptr< DcaTxop > | GetDcaTxop (void) const |
Accessor for the DCF object. More... | |
bool | GetErpSupported () const |
Return whether the device supports ERP. 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< EdcaTxopN > | GetVIQueue (void) const |
Accessor for the AC_VI channel access function. More... | |
Ptr< EdcaTxopN > | GetVOQueue (void) const |
Accessor for the AC_VO channel access function. More... | |
virtual void | Receive (Ptr< Packet > packet, const WifiMacHeader *hdr) |
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received. More... | |
virtual void | SendAddBaResponse (const MgtAddBaRequestHeader *reqHdr, Mac48Address originator) |
This method can be called to accept a received ADDBA Request. More... | |
void | SetErpSupported (bool enable) |
Enable or disable ERP support for the device. More... | |
void | SetHtSupported (bool enable) |
Enable or disable HT support for the device. More... | |
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... | |
void | SetVhtSupported (bool enable) |
Enable or disable VHT support for the device. 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< Dcf > dcf, uint32_t cwmin, uint32_t cwmax, enum 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< DcaTxop > | m_dca |
This holds a pointer to the DCF instance for this WifiMac - used for transmission of frames to non-QoS peers. More... | |
DcfManager * | m_dcfManager |
DCF manager (access to channel) More... | |
EdcaQueues | m_edca |
This is a map from Access Category index to the corresponding channel access function. More... | |
bool | m_erpSupported |
This Boolean is set true iff this WifiMac is to model 802.11g. More... | |
ForwardUpCallback | m_forwardUp |
Callback to forward packet up the stack. More... | |
bool | m_htSupported |
This Boolean is set true iff this WifiMac is to model 802.11n. 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... | |
bool | m_qosSupported |
This Boolean is set true iff this WifiMac is to model 802.11e/WMM style Quality of Service. More... | |
MacRxMiddle * | m_rxMiddle |
RX middle (de-fragmentation 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... | |
MacTxMiddle * | m_txMiddle |
TX middle (aggregation etc.) More... | |
bool | m_vhtSupported |
This Boolean is set true iff this WifiMac is to model 802.11ac. More... | |
Private Member Functions | |
RegularWifiMac (const RegularWifiMac &) | |
void | ConfigureAggregation (void) |
void | DisableAggregation (void) |
void | EnableAggregation (void) |
RegularWifiMac & | operator= (const RegularWifiMac &) |
void | SetBeBlockAckInactivityTimeout (uint16_t timeout) |
void | SetBeBlockAckThreshold (uint8_t threshold) |
void | SetBeMaxAmpduSize (uint32_t size) |
void | SetBeMaxAmsduSize (uint32_t size) |
void | SetBkBlockAckInactivityTimeout (uint16_t timeout) |
void | SetBkBlockAckThreshold (uint8_t threshold) |
void | SetBkMaxAmpduSize (uint32_t size) |
void | SetBkMaxAmsduSize (uint32_t size) |
void | SetupEdcaQueue (enum 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) |
void | SetViBlockAckThreshold (uint8_t threshold) |
void | SetViMaxAmpduSize (uint32_t size) |
void | SetViMaxAmsduSize (uint32_t size) |
void | SetVoBlockAckInactivityTimeout (uint16_t timeout) |
void | SetVoBlockAckThreshold (uint8_t threshold) |
void | SetVoMaxAmpduSize (uint32_t size) |
void | SetVoMaxAmsduSize (uint32_t size) |
Private Attributes | |
uint32_t | m_beMaxAmpduSize |
uint32_t | m_beMaxAmsduSize |
uint32_t | m_bkMaxAmpduSize |
uint32_t | m_bkMaxAmsduSize |
bool | m_shortSlotTimeSupported |
TracedCallback< const WifiMacHeader & > | m_txErrCallback |
TracedCallback< const WifiMacHeader & > | m_txOkCallback |
uint32_t | m_viMaxAmpduSize |
uint32_t | m_viMaxAmsduSize |
uint32_t | m_voMaxAmpduSize |
uint32_t | m_voMaxAmsduSize |
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 DCA, EDCA, etc) 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 376 bytes (on a 64-bit architecture).
Definition at line 49 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 292 of file regular-wifi-mac.h.
typedef Callback<void, Ptr<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 ot the device that the packet is destined for. |
Definition at line 244 of file regular-wifi-mac.h.
ns3::RegularWifiMac::RegularWifiMac | ( | ) |
Definition at line 42 of file regular-wifi-mac.cc.
References ns3::AC_BE, ns3::AC_BK, ns3::AC_VI, ns3::AC_VO, m_dca, m_dcfManager, m_low, m_rxMiddle, m_txMiddle, ns3::MakeCallback(), NS_LOG_FUNCTION, ns3::MacRxMiddle::Receive(), Receive(), ns3::MacRxMiddle::SetForwardCallback(), ns3::MacLow::SetRxCallback(), SetupEdcaQueue(), ns3::DcfManager::SetupLowListener(), TxFailed(), and TxOk().
|
virtual |
Definition at line 75 of file regular-wifi-mac.cc.
References NS_LOG_FUNCTION.
|
private |
|
private |
Definition at line 1145 of file regular-wifi-mac.cc.
References GetBEQueue(), GetBKQueue(), ns3::EdcaTxopN::GetMpduAggregator(), ns3::EdcaTxopN::GetMsduAggregator(), GetVIQueue(), GetVOQueue(), m_beMaxAmpduSize, m_beMaxAmsduSize, m_bkMaxAmpduSize, m_bkMaxAmsduSize, m_viMaxAmpduSize, m_viMaxAmsduSize, m_voMaxAmpduSize, m_voMaxAmsduSize, NS_LOG_FUNCTION, ns3::MpduAggregator::SetMaxAmpduSize(), and ns3::MsduAggregator::SetMaxAmsduSize().
Referenced by EnableAggregation(), SetBeMaxAmpduSize(), SetBeMaxAmsduSize(), SetBkMaxAmpduSize(), SetBkMaxAmsduSize(), SetViMaxAmpduSize(), SetViMaxAmsduSize(), SetVoMaxAmpduSize(), and SetVoMaxAmsduSize().
|
protected |
cwMin | the minimum congestion window size |
cwMax | the maximum congestion window size |
This method is called to set the minimum and the maximum contention window size.
Definition at line 1117 of file regular-wifi-mac.cc.
References ns3::AC_BE_NQOS, ns3::WifiMac::ConfigureDcf(), m_dca, and m_edca.
Referenced by FinishConfigureStandard(), and ns3::StaWifiMac::Receive().
|
protectedvirtual |
This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack.
aggregatedPacket | the Packet containing the A-MSDU. |
hdr | a pointer to the MAC header for aggregatedPacket . |
Reimplemented in ns3::ApWifiMac.
Definition at line 842 of file regular-wifi-mac.cc.
References ns3::MsduAggregator::Deaggregate(), and ForwardUp().
Referenced by ns3::AdhocWifiMac::Receive(), ns3::StaWifiMac::Receive(), and ns3::OcbWifiMac::Receive().
|
private |
Definition at line 1203 of file regular-wifi-mac.cc.
References m_edca, and NS_LOG_FUNCTION.
Referenced by SetHtSupported(), and SetVhtSupported().
|
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 overriden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.
It is safe to call GetObject() from within this method.
Reimplemented from ns3::Object.
Reimplemented in ns3::ApWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 93 of file regular-wifi-mac.cc.
References ns3::Object::Dispose(), m_dca, m_dcfManager, m_edca, m_low, m_phy, m_rxMiddle, m_stationManager, m_txMiddle, 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::ApWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 81 of file regular-wifi-mac.cc.
References m_dca, m_edca, and NS_LOG_FUNCTION.
Referenced by ns3::ApWifiMac::DoInitialize().
|
private |
Definition at line 1183 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_edca, and NS_LOG_FUNCTION.
Referenced by SetHtSupported(), and SetVhtSupported().
|
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 channel access function determines that access is 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::ApWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 719 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 channel access function determines that access is granted to this MAC.
Implements ns3::WifiMac.
Implemented in ns3::OcbWifiMac, ns3::ApWifiMac, ns3::MeshWifiInterfaceMac, ns3::AdhocWifiMac, and ns3::StaWifiMac.
|
protectedvirtual |
standard | the phy standard to be used |
This method is called by ns3::WifiMac::ConfigureStandard to complete the configuration process for a requested phy standard.
This method may be overriden by a derived class (e.g., in order to apply DCF or EDCA parameters specific to the usage model it is dealing with), in which case the reimplementation may choose to deal with certain values in the WifiPhyStandard enumeration, and chain up to this implementation to deal with the remainder.
Implements ns3::WifiMac.
Reimplemented in ns3::OcbWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 1084 of file regular-wifi-mac.cc.
References ConfigureContentionWindow(), m_erpSupported, NS_FATAL_ERROR, NS_LOG_FUNCTION, SetHtSupported(), SetVhtSupported(), ns3::WIFI_PHY_STANDARD_80211_10MHZ, ns3::WIFI_PHY_STANDARD_80211_5MHZ, ns3::WIFI_PHY_STANDARD_80211a, ns3::WIFI_PHY_STANDARD_80211ac, ns3::WIFI_PHY_STANDARD_80211b, ns3::WIFI_PHY_STANDARD_80211g, ns3::WIFI_PHY_STANDARD_80211n_2_4GHZ, ns3::WIFI_PHY_STANDARD_80211n_5GHZ, and ns3::WIFI_PHY_STANDARD_holland.
Referenced by ns3::MeshWifiInterfaceMac::FinishConfigureStandard().
|
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 737 of file regular-wifi-mac.cc.
References m_forwardUp, and NS_LOG_FUNCTION.
Referenced by ns3::ApWifiMac::DeaggregateAmsduAndForward(), DeaggregateAmsduAndForward(), ns3::AdhocWifiMac::Receive(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), and ns3::OcbWifiMac::Receive().
|
virtual |
Implements ns3::WifiMac.
Definition at line 616 of file regular-wifi-mac.cc.
References ns3::MacLow::GetAckTimeout(), and m_low.
|
virtual |
Implements ns3::WifiMac.
Definition at line 668 of file regular-wifi-mac.cc.
References ns3::MacLow::GetAddress(), and m_low.
Referenced by ns3::ApWifiMac::DeaggregateAmsduAndForward(), ns3::ApWifiMac::DoInitialize(), ns3::OcbWifiMac::Enqueue(), Enqueue(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::ForwardDown(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::OcbWifiMac::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().
|
virtual |
Reimplemented from ns3::WifiMac.
Definition at line 642 of file regular-wifi-mac.cc.
References ns3::MacLow::GetBasicBlockAckTimeout(), and m_low.
Accessor for the AC_BE channel access function.
Definition at line 395 of file regular-wifi-mac.cc.
References ns3::AC_BE, and m_edca.
Referenced by ConfigureAggregation(), ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), SetBeBlockAckInactivityTimeout(), and SetBeBlockAckThreshold().
Accessor for the AC_BK channel access function.
Definition at line 401 of file regular-wifi-mac.cc.
References ns3::AC_BK, and m_edca.
Referenced by ConfigureAggregation(), ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), SetBkBlockAckInactivityTimeout(), and SetBkBlockAckThreshold().
|
virtual |
Implements ns3::WifiMac.
Reimplemented in ns3::OcbWifiMac.
Definition at line 694 of file regular-wifi-mac.cc.
References ns3::MacLow::GetBssid(), and m_low.
Referenced by ns3::StaWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::StaWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), and ns3::StaWifiMac::SetState().
|
virtual |
Reimplemented from ns3::WifiMac.
Definition at line 655 of file regular-wifi-mac.cc.
References ns3::MacLow::GetCompressedBlockAckTimeout(), and m_low.
|
virtual |
Implements ns3::WifiMac.
Definition at line 629 of file regular-wifi-mac.cc.
References ns3::MacLow::GetCtsTimeout(), and m_low.
bool ns3::RegularWifiMac::GetCtsToSelfSupported | ( | ) | const |
Return whether the device supports CTS-to-self capability.
Definition at line 536 of file regular-wifi-mac.cc.
References ns3::MacLow::GetCtsToSelfSupported(), and m_low.
Referenced by GetTypeId().
Accessor for the DCF object.
Definition at line 377 of file regular-wifi-mac.cc.
References m_dca.
Referenced by ns3::OcbWifiMac::ConfigureEdca(), and GetTypeId().
|
virtual |
Implements ns3::WifiMac.
Definition at line 577 of file regular-wifi-mac.cc.
References ns3::DcfManager::GetEifsNoDifs(), and m_dcfManager.
|
protected |
Return whether the device supports ERP.
Definition at line 516 of file regular-wifi-mac.cc.
References m_erpSupported.
HtCapabilities ns3::RegularWifiMac::GetHtCapabilities | ( | void | ) | const |
Return the HT capability of the device.
Definition at line 144 of file regular-wifi-mac.cc.
References ns3::WifiPhy::GetChannelWidth(), ns3::WifiMode::GetDataRate(), ns3::WifiPhy::GetGreenfield(), ns3::WifiPhy::GetGuardInterval(), ns3::WifiPhy::GetLdpc(), ns3::WifiPhy::GetMcs(), ns3::WifiMode::GetMcsValue(), ns3::WifiMode::GetModulationClass(), ns3::WifiPhy::GetNMcs(), ns3::WifiPhy::GetSupportedTxSpatialStreams(), m_htSupported, m_phy, NS_ASSERT, NS_LOG_DEBUG, 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(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ns3::AdhocWifiMac::Enqueue(), 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 510 of file regular-wifi-mac.cc.
References m_htSupported.
Referenced by GetTypeId(), and SetWifiRemoteStationManager().
|
virtual |
Implements ns3::WifiMac.
Definition at line 603 of file regular-wifi-mac.cc.
References ns3::MacLow::GetPifs(), and m_low.
|
protected |
Return whether the device supports QoS.
Definition at line 460 of file regular-wifi-mac.cc.
References m_qosSupported.
Referenced by GetTypeId().
|
virtual |
Implements ns3::WifiMac.
Definition at line 590 of file regular-wifi-mac.cc.
References ns3::MacLow::GetRifs(), and m_low.
|
virtual |
Implements ns3::WifiMac.
Definition at line 713 of file regular-wifi-mac.cc.
References m_shortSlotTimeSupported.
Referenced by ns3::StaWifiMac::GetCapabilities(), and ns3::ApWifiMac::GetShortSlotTimeEnabled().
|
virtual |
Implements ns3::WifiMac.
Definition at line 564 of file regular-wifi-mac.cc.
References ns3::MacLow::GetSifs(), and m_low.
|
virtual |
Implements ns3::WifiMac.
Definition at line 550 of file regular-wifi-mac.cc.
References ns3::MacLow::GetSlotTime(), and m_low.
|
virtual |
Implements ns3::WifiMac.
Reimplemented in ns3::OcbWifiMac.
Definition at line 681 of file regular-wifi-mac.cc.
References m_ssid.
Referenced by ns3::OcbWifiMac::GetSsid(), ns3::StaWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), and ns3::ApWifiMac::SendProbeResp().
|
static |
Definition at line 915 of file regular-wifi-mac.cc.
References GetBEQueue(), GetBKQueue(), GetCtsToSelfSupported(), GetDcaTxop(), GetHtSupported(), GetQosSupported(), ns3::WifiMac::GetShortSlotTimeSupported(), GetVhtSupported(), GetVIQueue(), GetVOQueue(), m_txErrCallback, m_txOkCallback, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakePointerAccessor(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), SetBeBlockAckInactivityTimeout(), SetBeBlockAckThreshold(), SetBeMaxAmpduSize(), SetBeMaxAmsduSize(), SetBkBlockAckInactivityTimeout(), SetBkBlockAckThreshold(), SetBkMaxAmpduSize(), SetBkMaxAmsduSize(), SetCtsToSelfSupported(), SetHtSupported(), ns3::TypeId::SetParent(), SetQosSupported(), ns3::WifiMac::SetShortSlotTimeSupported(), SetVhtSupported(), SetViBlockAckInactivityTimeout(), SetViBlockAckThreshold(), SetViMaxAmpduSize(), SetViMaxAmsduSize(), SetVoBlockAckInactivityTimeout(), SetVoBlockAckThreshold(), SetVoMaxAmpduSize(), and SetVoMaxAmsduSize().
VhtCapabilities ns3::RegularWifiMac::GetVhtCapabilities | ( | void | ) | const |
Return the VHT capability of the device.
Definition at line 183 of file regular-wifi-mac.cc.
References ns3::WifiPhy::GetChannelWidth(), ns3::WifiPhy::GetGuardInterval(), ns3::WifiPhy::GetLdpc(), ns3::WifiPhy::GetMcs(), ns3::WifiMode::GetMcsValue(), ns3::WifiMode::GetModulationClass(), ns3::WifiPhy::GetNMcs(), ns3::WifiPhy::GetSupportedRxSpatialStreams(), ns3::WifiPhy::GetSupportedTxSpatialStreams(), m_phy, m_vhtSupported, ns3::VhtCapabilities::SetMaxAmpduLengthExponent(), ns3::VhtCapabilities::SetMaxMpduLength(), ns3::VhtCapabilities::SetRxLdpc(), ns3::VhtCapabilities::SetRxMcsMap(), ns3::VhtCapabilities::SetShortGuardIntervalFor160Mhz(), ns3::VhtCapabilities::SetShortGuardIntervalFor80Mhz(), ns3::VhtCapabilities::SetSupportedChannelWidthSet(), ns3::VhtCapabilities::SetTxMcsMap(), ns3::VhtCapabilities::SetVhtSupported(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by ns3::AdhocWifiMac::Enqueue(), 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 485 of file regular-wifi-mac.cc.
References m_vhtSupported.
Referenced by GetTypeId(), and SetWifiRemoteStationManager().
Accessor for the AC_VI channel access function.
Definition at line 389 of file regular-wifi-mac.cc.
References ns3::AC_VI, and m_edca.
Referenced by ConfigureAggregation(), ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), SetViBlockAckInactivityTimeout(), and SetViBlockAckThreshold().
Accessor for the AC_VO channel access function.
Definition at line 383 of file regular-wifi-mac.cc.
References ns3::AC_VO, and m_edca.
Referenced by ConfigureAggregation(), ns3::OcbWifiMac::ConfigureEdca(), GetTypeId(), SetVoBlockAckInactivityTimeout(), and SetVoBlockAckThreshold().
Implements ns3::WifiMac.
Definition at line 416 of file regular-wifi-mac.cc.
References m_phy, and NS_LOG_FUNCTION.
|
virtual |
Implements ns3::WifiMac.
Definition at line 138 of file regular-wifi-mac.cc.
References m_stationManager.
Referenced by ns3::WaveNetDevice::DoDispose(), and ns3::WaveNetDevice::DoInitialize().
|
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 managment frames is dealt with here.
This method will need, however, to be overriden by derived classes so that they can perform their data handling before invoking the base version.
packet | the packet that has been received. |
hdr | a pointer to the MAC header of the received frame. |
Reimplemented in ns3::OcbWifiMac, ns3::MeshWifiInterfaceMac, ns3::ApWifiMac, ns3::StaWifiMac, and ns3::AdhocWifiMac.
Definition at line 744 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::MacLow::DestroyBlockAckAgreement(), 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::StaWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::OcbWifiMac::Receive(), and RegularWifiMac().
|
virtual |
removes attached WifiPhy device from this MAC.
Implements ns3::WifiMac.
Definition at line 423 of file regular-wifi-mac.cc.
References m_dcfManager, m_low, m_phy, NS_LOG_FUNCTION, ns3::DcfManager::RemovePhyListener(), and ns3::MacLow::ResetPhy().
Referenced by ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
protectedvirtual |
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 857 of file regular-wifi-mac.cc.
References ns3::Packet::AddHeader(), ns3::WifiActionHeader::BLOCK_ACK, ns3::WifiActionHeader::BLOCK_ACK_ADDBA_RESPONSE, ns3::WifiActionHeader::ActionValue::blockAck, ns3::MacLow::CreateBlockAckAgreement(), GetAddress(), 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::WifiMacHeader::SetAction(), 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(), and ns3::MgtAddBaResponseHeader::SetTimeout().
Referenced by Receive().
|
virtual |
ackTimeout | the duration of an ACK timeout. |
Implements ns3::WifiMac.
Definition at line 609 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetAckTimeout().
|
virtual |
address | the current address of this MAC layer. |
Implements ns3::WifiMac.
Reimplemented in ns3::ApWifiMac, and ns3::AdhocWifiMac.
Definition at line 661 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetAddress().
Referenced by ns3::AdhocWifiMac::SetAddress(), and ns3::ApWifiMac::SetAddress().
|
virtual |
blockAckTimeout | the duration for basic block ACK timeout. |
Sets the timeout for basic block ACK.
Reimplemented from ns3::WifiMac.
Definition at line 635 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetBasicBlockAckTimeout().
|
private |
Definition at line 332 of file regular-wifi-mac.cc.
References GetBEQueue(), NS_LOG_FUNCTION, and ns3::EdcaTxopN::SetBlockAckInactivityTimeout().
Referenced by GetTypeId().
|
private |
Definition at line 304 of file regular-wifi-mac.cc.
References GetBEQueue(), NS_LOG_FUNCTION, and ns3::EdcaTxopN::SetBlockAckThreshold().
Referenced by GetTypeId().
|
private |
Definition at line 274 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_beMaxAmpduSize, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
private |
Definition at line 242 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_beMaxAmsduSize, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
private |
Definition at line 339 of file regular-wifi-mac.cc.
References GetBKQueue(), NS_LOG_FUNCTION, and ns3::EdcaTxopN::SetBlockAckInactivityTimeout().
Referenced by GetTypeId().
|
private |
Definition at line 311 of file regular-wifi-mac.cc.
References GetBKQueue(), NS_LOG_FUNCTION, and ns3::EdcaTxopN::SetBlockAckThreshold().
Referenced by GetTypeId().
|
private |
Definition at line 282 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_bkMaxAmpduSize, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
private |
Definition at line 250 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_bkMaxAmsduSize, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
virtual |
bssid | the BSSID of the network that this device belongs to. |
Reimplemented in ns3::OcbWifiMac.
Definition at line 687 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetBssid().
Referenced by ns3::OcbWifiMac::OcbWifiMac(), ns3::StaWifiMac::Receive(), ns3::AdhocWifiMac::SetAddress(), and ns3::ApWifiMac::SetAddress().
|
virtual |
blockAckTimeout | Sets the timeout for compressed block ACK. |
Reimplemented from ns3::WifiMac.
Definition at line 648 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetCompressedBlockAckTimeout().
|
virtual |
ctsTimeout | the duration of a CTS timeout. |
Implements ns3::WifiMac.
Definition at line 622 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetCtsTimeout().
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 529 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetCtsToSelfSupported().
Referenced by GetTypeId().
|
virtual |
eifsNoDifs | the duration of an EIFS minus DIFS. |
This value is used to calculate the EIFS depending on AIFSN.
Implements ns3::WifiMac.
Definition at line 570 of file regular-wifi-mac.cc.
References m_dcfManager, NS_LOG_FUNCTION, and ns3::DcfManager::SetEifsNoDifs().
|
protected |
Enable or disable ERP support for the device.
enable | whether ERP is supported |
Definition at line 522 of file regular-wifi-mac.cc.
References m_erpSupported, and NS_LOG_FUNCTION.
|
virtual |
upCallback | the callback to invoke when a packet must be forwarded up the stack. |
Definition at line 432 of file regular-wifi-mac.cc.
References m_forwardUp, and NS_LOG_FUNCTION.
Referenced by ns3::WaveNetDevice::DoInitialize().
|
protected |
Enable or disable HT support for the device.
enable | whether HT is supported |
Definition at line 466 of file regular-wifi-mac.cc.
References DisableAggregation(), EnableAggregation(), m_htSupported, m_vhtSupported, NS_LOG_FUNCTION, and SetQosSupported().
Referenced by FinishConfigureStandard(), and GetTypeId().
|
virtual |
linkDown | the callback to invoke when the link becomes down. |
Implements ns3::WifiMac.
Reimplemented in ns3::OcbWifiMac.
Definition at line 446 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.
Reimplemented in ns3::OcbWifiMac, ns3::MeshWifiInterfaceMac, ns3::ApWifiMac, and ns3::AdhocWifiMac.
Definition at line 439 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 |
pifs | the pifs duration. |
Implements ns3::WifiMac.
Definition at line 596 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetPifs().
|
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 700 of file regular-wifi-mac.cc.
References m_low, and ns3::MacLow::SetPromisc().
|
protected |
Enable or disable QoS support for the device.
enable | whether QoS is supported |
Definition at line 453 of file regular-wifi-mac.cc.
References m_qosSupported, and NS_LOG_FUNCTION.
Referenced by GetTypeId(), SetHtSupported(), and SetVhtSupported().
|
virtual |
rifs | the rifs duration. |
Implements ns3::WifiMac.
Definition at line 583 of file regular-wifi-mac.cc.
References m_low, NS_LOG_FUNCTION, and ns3::MacLow::SetRifs().
|
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 706 of file regular-wifi-mac.cc.
References m_shortSlotTimeSupported, and NS_LOG_FUNCTION.
|
virtual |
sifs | the sifs duration |
Implements ns3::WifiMac.
Definition at line 556 of file regular-wifi-mac.cc.
References m_dcfManager, m_low, NS_LOG_FUNCTION, ns3::DcfManager::SetSifs(), and ns3::MacLow::SetSifs().
|
virtual |
slotTime | the slot duration |
Implements ns3::WifiMac.
Definition at line 542 of file regular-wifi-mac.cc.
References m_dcfManager, m_low, NS_LOG_FUNCTION, ns3::DcfManager::SetSlot(), and ns3::MacLow::SetSlotTime().
Referenced by ns3::StaWifiMac::Receive(), and ns3::ApWifiMac::SendOneBeacon().
|
virtual |
ssid | the current ssid of this MAC layer. |
Implements ns3::WifiMac.
Reimplemented in ns3::OcbWifiMac.
Definition at line 674 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 EdcaTxopN's) need to know.
type | the type of station. |
Definition at line 367 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 index of the queue to initialise. |
Definition at line 346 of file regular-wifi-mac.cc.
References m_dcfManager, m_edca, m_low, m_txMiddle, ns3::MakeCallback(), NS_ASSERT, NS_LOG_FUNCTION, ns3::EdcaTxopN::SetLow(), TxFailed(), and TxOk().
Referenced by RegularWifiMac().
|
protected |
Enable or disable VHT support for the device.
enable | whether VHT is supported |
Definition at line 491 of file regular-wifi-mac.cc.
References DisableAggregation(), EnableAggregation(), m_htSupported, m_vhtSupported, NS_LOG_FUNCTION, and SetQosSupported().
Referenced by FinishConfigureStandard(), and GetTypeId().
|
private |
Definition at line 325 of file regular-wifi-mac.cc.
References GetVIQueue(), NS_LOG_FUNCTION, and ns3::EdcaTxopN::SetBlockAckInactivityTimeout().
Referenced by GetTypeId().
|
private |
Definition at line 297 of file regular-wifi-mac.cc.
References GetVIQueue(), NS_LOG_FUNCTION, and ns3::EdcaTxopN::SetBlockAckThreshold().
Referenced by GetTypeId().
|
private |
Definition at line 266 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_viMaxAmpduSize, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
private |
Definition at line 234 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_viMaxAmsduSize, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
private |
Definition at line 318 of file regular-wifi-mac.cc.
References GetVOQueue(), NS_LOG_FUNCTION, and ns3::EdcaTxopN::SetBlockAckInactivityTimeout().
Referenced by GetTypeId().
|
private |
Definition at line 290 of file regular-wifi-mac.cc.
References GetVOQueue(), NS_LOG_FUNCTION, and ns3::EdcaTxopN::SetBlockAckThreshold().
Referenced by GetTypeId().
|
private |
Definition at line 258 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_voMaxAmpduSize, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
private |
Definition at line 226 of file regular-wifi-mac.cc.
References ConfigureAggregation(), m_voMaxAmsduSize, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
phy | the physical layer attached to this MAC. |
Implements ns3::WifiMac.
Definition at line 407 of file regular-wifi-mac.cc.
References m_dcfManager, m_low, m_phy, NS_LOG_FUNCTION, third::phy, ns3::MacLow::SetPhy(), and ns3::DcfManager::SetupPhyListener().
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
virtual |
stationManager | the station manager attached to this MAC. |
Implements ns3::WifiMac.
Reimplemented in ns3::ApWifiMac.
Definition at line 121 of file regular-wifi-mac.cc.
References GetHtSupported(), GetVhtSupported(), m_dca, m_edca, m_low, m_stationManager, NS_LOG_FUNCTION, ns3::WifiRemoteStationManager::SetHtSupported(), ns3::WifiRemoteStationManager::SetVhtSupported(), and ns3::MacLow::SetWifiRemoteStationManager().
Referenced by ns3::WaveHelper::Install(), and ns3::ApWifiMac::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::ApWifiMac, and ns3::MeshWifiInterfaceMac.
Definition at line 731 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 1138 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 1131 of file regular-wifi-mac.cc.
References m_txOkCallback, and NS_LOG_FUNCTION.
Referenced by RegularWifiMac(), SetupEdcaQueue(), and ns3::ApWifiMac::TxOk().
|
private |
Definition at line 557 of file regular-wifi-mac.h.
Referenced by ConfigureAggregation(), and SetBeMaxAmpduSize().
|
private |
Definition at line 552 of file regular-wifi-mac.h.
Referenced by ConfigureAggregation(), and SetBeMaxAmsduSize().
|
private |
Definition at line 558 of file regular-wifi-mac.h.
Referenced by ConfigureAggregation(), and SetBkMaxAmpduSize().
|
private |
Definition at line 553 of file regular-wifi-mac.h.
Referenced by ConfigureAggregation(), and SetBkMaxAmsduSize().
This holds a pointer to the DCF instance for this WifiMac - used for transmission of frames to non-QoS peers.
Definition at line 288 of file regular-wifi-mac.h.
Referenced by ConfigureContentionWindow(), DoDispose(), DoInitialize(), ns3::OcbWifiMac::EnableForWave(), ns3::StaWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::FinishConfigureStandard(), ns3::ApWifiMac::ForwardDown(), GetDcaTxop(), RegularWifiMac(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::MeshWifiInterfaceMac::SendBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), ns3::OcbWifiMac::SendVsc(), and SetWifiRemoteStationManager().
|
protected |
DCF manager (access to channel)
Definition at line 275 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), DoDispose(), ns3::OcbWifiMac::EnableForWave(), GetEifsNoDifs(), ns3::OcbWifiMac::MakeVirtualBusy(), RegularWifiMac(), ns3::OcbWifiMac::Reset(), ResetWifiPhy(), ns3::OcbWifiMac::Resume(), SetEifsNoDifs(), SetSifs(), SetSlot(), SetupEdcaQueue(), SetWifiPhy(), ns3::OcbWifiMac::Suspend(), and ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel().
|
protected |
This is a map from Access Category index to the corresponding channel access function.
Definition at line 296 of file regular-wifi-mac.h.
Referenced by ns3::OcbWifiMac::CancleTx(), ConfigureContentionWindow(), DisableAggregation(), DoDispose(), DoInitialize(), EnableAggregation(), ns3::OcbWifiMac::EnableForWave(), ns3::StaWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::ApWifiMac::ForwardDown(), GetBEQueue(), GetBKQueue(), GetVIQueue(), GetVOQueue(), Receive(), SendAddBaResponse(), ns3::MeshWifiInterfaceMac::SendManagementFrame(), ns3::OcbWifiMac::SendVsc(), SetTypeOfStation(), SetupEdcaQueue(), and SetWifiRemoteStationManager().
|
protected |
This Boolean is set true
iff this WifiMac is to model 802.11g.
It is exposed through the attribute system.
Definition at line 499 of file regular-wifi-mac.h.
Referenced by FinishConfigureStandard(), ns3::StaWifiMac::GetCapabilities(), ns3::ApWifiMac::GetErpInformation(), GetErpSupported(), ns3::ApWifiMac::GetShortPreambleEnabled(), ns3::ApWifiMac::GetShortSlotTimeEnabled(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), and SetErpSupported().
|
protected |
Callback to forward packet up the stack.
Definition at line 280 of file regular-wifi-mac.h.
Referenced by ForwardUp(), and SetForwardUpCallback().
|
protected |
This Boolean is set true
iff this WifiMac is to model 802.11n.
It is exposed through the attribute system.
At the moment, this flag is the sole selection between HT and non-HT operation for the STA (whether IBSS, AP, or non-AP). Ultimately, we will want a HT-enabled STA to be able to fall back to non-HT operation with a non-HT peer. This'll require further intelligence - i.e., per-association HT state. Having a big switch seems like a good intermediate stage, however.
Definition at line 462 of file regular-wifi-mac.h.
Referenced by ns3::StaWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), GetHtCapabilities(), ns3::ApWifiMac::GetHtOperations(), GetHtSupported(), ns3::StaWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), SetHtSupported(), and SetVhtSupported().
|
protected |
Callback when a link is down.
Definition at line 282 of file regular-wifi-mac.h.
Referenced by SetLinkDownCallback(), and ns3::StaWifiMac::TryToEnsureAssociated().
|
protected |
Callback when a link is up.
Definition at line 281 of file regular-wifi-mac.h.
Referenced by ns3::StaWifiMac::Receive(), and SetLinkUpCallback().
MacLow (RTS, CTS, DATA, ACK etc.)
Definition at line 274 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), DoDispose(), ns3::OcbWifiMac::EnableForWave(), ns3::StaWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::MeshWifiInterfaceMac::Enqueue(), ns3::ApWifiMac::Enqueue(), GetAckTimeout(), GetAddress(), GetBasicBlockAckTimeout(), GetBssid(), GetCompressedBlockAckTimeout(), GetCtsTimeout(), GetCtsToSelfSupported(), GetPifs(), GetRifs(), GetSifs(), GetSlot(), Receive(), RegularWifiMac(), ns3::OcbWifiMac::Reset(), ResetWifiPhy(), SendAddBaResponse(), SetAckTimeout(), SetAddress(), SetBasicBlockAckTimeout(), SetBssid(), SetCompressedBlockAckTimeout(), SetCtsTimeout(), SetCtsToSelfSupported(), SetPifs(), SetPromisc(), SetRifs(), SetSifs(), SetSlot(), SetupEdcaQueue(), SetWifiPhy(), SetWifiRemoteStationManager(), and ns3::OcbWifiMac::Suspend().
Wifi PHY.
Definition at line 276 of file regular-wifi-mac.h.
Referenced by ns3::MeshWifiInterfaceMac::CheckSupportedRates(), DoDispose(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::StaWifiMac::GetCapabilities(), ns3::MeshWifiInterfaceMac::GetFrequencyChannel(), GetHtCapabilities(), ns3::ApWifiMac::GetShortPreambleEnabled(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), GetVhtCapabilities(), GetWifiPhy(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), ResetWifiPhy(), SetWifiPhy(), and ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel().
|
protected |
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 435 of file regular-wifi-mac.h.
Referenced by ns3::StaWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), GetQosSupported(), Receive(), ns3::OcbWifiMac::SendVsc(), and SetQosSupported().
|
protected |
RX middle (de-fragmentation etc.)
Definition at line 272 of file regular-wifi-mac.h.
Referenced by DoDispose(), ns3::OcbWifiMac::EnableForWave(), and RegularWifiMac().
|
private |
Definition at line 563 of file regular-wifi-mac.h.
Referenced by GetShortSlotTimeSupported(), and SetShortSlotTimeSupported().
|
protected |
Service Set ID (SSID)
Definition at line 284 of file regular-wifi-mac.h.
|
protected |
Remote station manager (rate control, RTS/CTS/fragmentation thresholds etc.)
Definition at line 278 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::GetShortPreambleEnabled(), ns3::ApWifiMac::GetShortSlotTimeEnabled(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetUseNonErpProtection(), GetWifiRemoteStationManager(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::ApWifiMac::SendOneBeacon(), ns3::ApWifiMac::SendProbeResp(), SetWifiRemoteStationManager(), ns3::ApWifiMac::TxFailed(), and ns3::ApWifiMac::TxOk().
|
private |
Definition at line 561 of file regular-wifi-mac.h.
Referenced by GetTypeId(), and TxFailed().
|
protected |
TX middle (aggregation etc.)
Definition at line 273 of file regular-wifi-mac.h.
Referenced by ns3::ApWifiMac::ApWifiMac(), DoDispose(), RegularWifiMac(), and SetupEdcaQueue().
|
private |
Definition at line 560 of file regular-wifi-mac.h.
Referenced by GetTypeId(), and TxOk().
|
protected |
This Boolean is set true
iff this WifiMac is to model 802.11ac.
It is exposed through the attribute system.
Definition at line 481 of file regular-wifi-mac.h.
Referenced by ns3::StaWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::OcbWifiMac::Enqueue(), ns3::ApWifiMac::ForwardDown(), ns3::StaWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), GetVhtCapabilities(), GetVhtSupported(), ns3::StaWifiMac::Receive(), ns3::ApWifiMac::Receive(), ns3::StaWifiMac::SendAssociationRequest(), ns3::ApWifiMac::SendAssocResp(), ns3::ApWifiMac::SendOneBeacon(), ns3::StaWifiMac::SendProbeRequest(), ns3::ApWifiMac::SendProbeResp(), SetHtSupported(), and SetVhtSupported().
|
private |
Definition at line 556 of file regular-wifi-mac.h.
Referenced by ConfigureAggregation(), and SetViMaxAmpduSize().
|
private |
Definition at line 551 of file regular-wifi-mac.h.
Referenced by ConfigureAggregation(), and SetViMaxAmsduSize().
|
private |
Definition at line 555 of file regular-wifi-mac.h.
Referenced by ConfigureAggregation(), and SetVoMaxAmpduSize().
|
private |
Definition at line 550 of file regular-wifi-mac.h.
Referenced by ConfigureAggregation(), and SetVoMaxAmsduSize().