34 #include "ns3/random-variable-stream.h"
HtOperations GetHtOperations(void) const
Return the HT operations of the current AP.
virtual void DoInitialize(void)
Initialize() implementation.
The HT Operations Information ElementThis class knows how to serialise and deserialise the HT Operati...
void SetBeaconInterval(Time interval)
Simulation virtual time values and global simulation resolution.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
void SendAssocResp(Mac48Address to, bool success)
Forward an association response packet to the DCF.
virtual bool SupportsSendFrom(void) const
Ptr< DcaTxop > m_beaconDca
Dedicated DcaTxop for beacons.
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
bool GetUseNonErpProtection(void) const
Return whether protection for non-ERP stations is used in the BSS.
bool m_enableBeaconGeneration
Flag whether beacons are being generated.
virtual void Enqueue(Ptr< const Packet > packet, Mac48Address to)
virtual void SetWifiRemoteStationManager(Ptr< WifiRemoteStationManager > stationManager)
base class for all MAC-level wifi objects.
static TypeId GetTypeId(void)
void ForwardDown(Ptr< const Packet > packet, Mac48Address from, Mac48Address to)
Forward the packet down to DCF/EDCAF (enqueue the packet).
bool GetShortPreambleEnabled(void) const
Determine whether short preamble should be enabled or not in the BSS.
bool m_enableNonErpProtection
Flag whether protection mechanism is used or not when non-ERP STAs are present within the BSS...
EventId m_beaconEvent
Event to generate one beacon.
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...
virtual void DeaggregateAmsduAndForward(Ptr< Packet > aggregatedPacket, const WifiMacHeader *hdr)
This method is called to de-aggregate an A-MSDU and forward the constituent packets up the stack...
std::list< Mac48Address > m_staList
List of all stations currently associated to the AP.
virtual void SetLinkUpCallback(Callback< void > linkUp)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool GetBeaconGeneration(void) const
Return whether the AP is generating beacons.
Wi-Fi AP state machineHandle association, dis-association and authentication, of STAs within an infra...
void SendProbeResp(Mac48Address to)
Forward a probe response packet to the DCF.
SupportedRates GetSupportedRates(void) const
Return an instance of SupportedRates that contains all rates that we support including HT rates...
virtual void TxFailed(const WifiMacHeader &hdr)
The packet we sent was successfully received by the receiver (i.e.
void SendOneBeacon(void)
Forward a beacon packet to the beacon special DCF.
An identifier for simulation events.
virtual void DoDispose(void)
Destructor implementation.
virtual void SetAddress(Mac48Address address)
ErpInformation GetErpInformation(void) const
Return the ERP information of the current AP.
Ptr< UniformRandomVariable > m_beaconJitter
UniformRandomVariable used to randomize the time of the first beacon.
CapabilityInformation GetCapabilities(void) const
Return the Capability information of the current AP.
Time m_beaconInterval
Interval between beacons.
std::list< Mac48Address > m_nonErpStations
List of all non-ERP stations currently associated to the AP.
bool m_enableBeaconJitter
Flag whether the first beacon should be generated at random time.
Time GetBeaconInterval(void) const
virtual void TxOk(const WifiMacHeader &hdr)
The packet we sent was successfully received by the receiver (i.e.
std::list< Mac48Address > m_nonHtStations
List of all non-HT stations currently associated to the AP.
bool GetShortSlotTimeEnabled(void) const
Determine whether short slot time should be enabled or not in the BSS.
a unique identifier for an interface.
void StartBeaconing(void)
Start beacon transmission immediately.
void SetBeaconGeneration(bool enable)
Enable or disable beacon generation of the AP.