29 #include "ns3/random-variable-stream.h"
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.
void SetBeaconInterval(Time interval)
keep track of time values and allow control of global simulation resolution
smart pointer class similar to boost::intrusive_ptr
HtCapabilities GetHtCapabilities(void) const
Return the HT capability of the current AP.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
The Ht Capabilities Information ElementThis class knows how to serialise and deserialise the Ht Capab...
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 m_enableBeaconGeneration
Flag if 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).
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...
virtual void SetLinkUpCallback(Callback< void > linkUp)
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)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
virtual void SetAddress(Mac48Address address)
Ptr< UniformRandomVariable > m_beaconJitter
UniformRandomVariable used to randomize the time of the first beacon.
Time m_beaconInterval
Interval between beacons.
bool m_enableBeaconJitter
Flag if 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.
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.