22 #ifndef STA_WIFI_MAC_H
23 #define STA_WIFI_MAC_H
26 #include "ns3/event-id.h"
27 #include "ns3/packet.h"
28 #include "ns3/traced-callback.h"
35 class MgtAddBaRequestHeader;
bool IsWaitAssocResp(void) const
Return whether we are waiting for an association response from an AP.
TracedCallback< Mac48Address > m_deAssocLogger
SupportedRates GetSupportedRates(void) const
Return an instance of SupportedRates that contains all rates that we support including HT rates...
Simulation virtual time values and global simulation resolution.
Time m_assocRequestTimeout
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 bee...
void SendAssociationRequest(void)
Forward an association request packet to the DCF.
void AssocRequestTimeout(void)
This method is called after the association timeout occurred.
Time m_probeRequestTimeout
void SetProbeRequestTimeout(Time timeout)
Forward calls to a chain of Callback.
The HT Capabilities Information ElementThis class knows how to serialise and deserialise the HT Capab...
TracedCallback< Mac48Address > m_assocLogger
EventId m_assocRequestEvent
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
void SetAssocRequestTimeout(Time timeout)
void SendProbeRequest(void)
Forward a probe request packet to the DCF.
base class for all MAC-level wifi objects.
void ProbeRequestTimeout(void)
This method is called after the probe request timeout occurred.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capability of the current STA.
MacState
The current MAC state of the STA.
The IEEE 802.11ac VHT Capabilities.
void MissedBeacons(void)
This method is called after we have not received a beacon from the AP.
bool GetActiveProbing(void) const
Return whether active probing is enabled.
void SetState(enum MacState value)
Set the current MAC state.
HtCapabilities GetHtCapabilities(void) const
Return the HT capability of the current STA.
uint32_t m_maxMissedBeacons
void StartActiveAssociation(void)
Start an active association sequence immediately.
void SetMaxMissedBeacons(uint32_t missed)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TypeId GetTypeId(void)
void RestartBeaconWatchdog(Time delay)
Restarts the beacon timer.
CapabilityInformation GetCapabilities(void) const
Return the Capability information of the current STA.
void TryToEnsureAssociated(void)
Try to ensure that we are associated with an AP by taking an appropriate action depending on the curr...
void SetActiveProbing(bool enable)
Enable or disable active probing.
An identifier for simulation events.
virtual void Enqueue(Ptr< const Packet > packet, Mac48Address to)
EventId m_probeRequestEvent
bool IsAssociated(void) const
Return whether we are associated with an AP.
a unique identifier for an interface.
The Wifi MAC high model for a non-AP STA in a BSS.