|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
23 #ifndef STA_WIFI_MAC_H
24 #define STA_WIFI_MAC_H
36 class CapabilityInformation;
110 friend class ::TwoLevelAggregationTest;
112 friend class ::AmpduAggregationTest;
114 friend class ::HeAggregationTest;
a unique identifier for an interface.
Time m_waitBeaconTimeout
wait beacon timeout
Time m_probeRequestTimeout
probe request timeout
static TypeId GetTypeId(void)
Get the type ID.
void MissedBeacons(void)
This method is called after we have not received a beacon from the AP.
An identifier for simulation events.
void SetMuEdcaParameters(AcIndex ac, uint16_t cwMin, uint16_t cwMax, uint8_t aifsn, Time muEdcaTimer)
Set the MU EDCA parameters.
double m_snr
SNR in linear scale.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Time m_assocRequestTimeout
association request timeout
bool m_activeProbing
Flag whether active probing is used or not.
TracedCallback< Mac48Address > m_deAssocLogger
disassociation logger
SupportedRates GetSupportedRates(void) const
Return an instance of SupportedRates that contains all rates that we support including HT rates.
base class for all MAC-level wifi objects.
void ScanningTimeout(void)
This method is called after wait beacon timeout or wait probe request timeout has occurred.
void SendAssociationRequest(bool isReassoc)
Forward an association or reassociation request packet to the DCF.
uint16_t m_aid
Association AID.
Mac48Address m_apAddr
AP MAC address.
MacState m_state
MAC state.
EventId m_probeRequestEvent
probe request event
void Enqueue(Ptr< Packet > packet, Mac48Address to) override
void UpdateApInfoFromBeacon(MgtBeaconHeader beacon, Mac48Address apAddr, Mac48Address bssid)
Update associated AP's information from beacon.
std::vector< ApInfo > m_candidateAps
list of candidate APs to associate to
void AssocRequestTimeout(void)
This method is called after the association timeout occurred.
Mac48Address m_bssid
BSSID.
void UpdateCandidateApList(ApInfo newApInfo)
Update list of candidate AP to associate.
The Supported Rates Information Element.
MacState
The current MAC state of the STA.
uint32_t m_maxMissedBeacons
maximum missed beacons
EventId m_beaconWatchdog
beacon watchdog
EventId m_waitBeaconEvent
wait beacon event
void UpdateApInfoFromAssocResp(MgtAssocResponseHeader assocResp, Mac48Address apAddr)
Update AP's information from association response.
MgtBeaconHeader m_beacon
Beacon header.
Struct to hold information regarding observed AP through active/passive scanning.
void SetWifiPhy(const Ptr< WifiPhy > phy) override
802.11ax aggregation test which permits 64 or 256 MPDUs in A-MPDU according to the negociated buffer ...
void SendProbeRequest(void)
Forward a probe request packet to the DCF.
bool m_activeProbing
active probing
Simulation virtual time values and global simulation resolution.
EventId m_assocRequestEvent
association request event
void UpdateApInfoFromProbeResp(MgtProbeResponseHeader probeResp, Mac48Address apAddr, Mac48Address bssid)
Update AP's information from probe response.
void Receive(Ptr< WifiMacQueueItem > mpdu) override
Handle a received packet.
MgtProbeResponseHeader m_probeResp
Probe Response header.
Two Level Aggregation Test.
void SetEdcaParameters(AcIndex ac, uint32_t cwMin, uint32_t cwMax, uint8_t aifsn, Time txopLimit)
Set the EDCA parameters.
void SetState(MacState value)
Set the current MAC state.
void PhyCapabilitiesChanged(void)
Indicate that PHY capabilities have changed.
void DoInitialize(void) override
Initialize() implementation.
bool IsAssociated(void) const
Return whether we are associated with an AP.
void SetActiveProbing(bool enable)
Enable or disable active probing.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
The Wifi MAC high model for a non-AP STA in a BSS.
void StartScanning(void)
Start the scanning process which trigger active or passive scanning based on the active probing flag.
Forward calls to a chain of Callback.
void RestartBeaconWatchdog(Time delay)
Restarts the beacon timer.
TracedCallback< Time > m_beaconArrival
beacon arrival logger
TracedCallback< Mac48Address > m_assocLogger
association logger
bool IsWaitAssocResp(void) const
Return whether we are waiting for an association response from an AP.
Time m_beaconWatchdogEnd
beacon watchdog end
bool GetActiveProbing(void) const
Return whether active probing is enabled.
uint16_t GetAssociationId(void) const
Return the association ID.
void TryToEnsureAssociated(void)
Try to ensure that we are associated with an AP by taking an appropriate action depending on the curr...
CapabilityInformation GetCapabilities(void) const
Return the Capability information of the current STA.