Wi-Fi AP state machine. More...
#include <ap-wifi-mac.h>
Public Member Functions | |
virtual void | SetWifiRemoteStationManager (Ptr< WifiRemoteStationManager > stationManager) |
virtual void | SetLinkUpCallback (Callback< void > linkUp) |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to) |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to, Mac48Address from) |
virtual bool | SupportsSendFrom (void) const |
virtual void | SetAddress (Mac48Address address) |
void | SetBeaconInterval (Time interval) |
Time | GetBeaconInterval (void) const |
void | StartBeaconing (void) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::ApWifiMac. |
Wi-Fi AP state machine.
Handle association, dis-association and authentication, of STAs within an infrastructure BSS.
virtual void ns3::ApWifiMac::Enqueue | ( | Ptr< const Packet > | packet, | |
Mac48Address | to, | |||
Mac48Address | from | |||
) | [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.
Reimplemented from ns3::RegularWifiMac.
virtual void ns3::ApWifiMac::Enqueue | ( | Ptr< const Packet > | packet, | |
Mac48Address | to | |||
) | [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::RegularWifiMac.
Time ns3::ApWifiMac::GetBeaconInterval | ( | void | ) | const |
static TypeId ns3::ApWifiMac::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::ApWifiMac.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
Attributes defined in parent class ns3::RegularWifiMac:
Attributes defined in parent class ns3::WifiMac:
No TraceSources defined for this type.
TraceSources defined in parent class ns3::RegularWifiMac:
TraceSources defined in parent class ns3::WifiMac:
Reimplemented from ns3::RegularWifiMac.
virtual void ns3::ApWifiMac::SetAddress | ( | Mac48Address | address | ) | [virtual] |
address | the current address of this MAC layer. |
Reimplemented from ns3::RegularWifiMac.
void ns3::ApWifiMac::SetBeaconInterval | ( | Time | interval | ) |
interval | the interval between two beacon transmissions. |
virtual void ns3::ApWifiMac::SetLinkUpCallback | ( | Callback< void > | linkUp | ) | [virtual] |
linkUp | the callback to invoke when the link becomes up. |
Reimplemented from ns3::RegularWifiMac.
virtual void ns3::ApWifiMac::SetWifiRemoteStationManager | ( | Ptr< WifiRemoteStationManager > | stationManager | ) | [virtual] |
stationManager | the station manager attached to this MAC. |
Reimplemented from ns3::RegularWifiMac.
void ns3::ApWifiMac::StartBeaconing | ( | void | ) |
Start beacon transmission immediately.