hold a list of per-remote-station state. More...
#include "wifi-remote-station-manager.h"
Public Types | |
typedef void(* | PowerChangeTracedCallback) (double oldPower, double newPower, Mac48Address remoteAddress) |
TracedCallback signature for power change events. | |
enum | ProtectionMode { RTS_CTS , CTS_TO_SELF } |
ProtectionMode enumeration. More... | |
typedef void(* | RateChangeTracedCallback) (DataRate oldRate, DataRate newRate, Mac48Address remoteAddress) |
TracedCallback signature for rate change events. | |
using | Stations = std::unordered_map<Mac48Address, WifiRemoteStation*, WifiAddressHash> |
A map of WifiRemoteStations with Mac48Address as key. | |
using | StationStates |
A map of WifiRemoteStationStates with Mac48Address as key. | |
Public Member Functions | |
WifiRemoteStationManager () | |
~WifiRemoteStationManager () override | |
void | AddAllSupportedMcs (Mac48Address address) |
Invoked in a STA or AP to store all of the MCS supported by a destination which is also supported locally. | |
void | AddAllSupportedModes (Mac48Address address) |
Invoked in a STA or AP to store all of the modes supported by a destination which is also supported locally. | |
void | AddBasicMcs (WifiMode mcs) |
Add a given Modulation and Coding Scheme (MCS) index to the set of basic MCS. | |
void | AddBasicMode (WifiMode mode) |
Invoked in a STA upon association to store the set of rates which belong to the BSSBasicRateSet of the associated AP and which are supported locally. | |
void | AddStationEhtCapabilities (Mac48Address from, const EhtCapabilities &ehtCapabilities) |
Records EHT capabilities of the remote station. | |
void | AddStationExtendedCapabilities (Mac48Address from, const ExtendedCapabilities &extendedCapabilities) |
Records extended capabilities of the remote station. | |
void | AddStationHe6GhzCapabilities (const Mac48Address &from, const He6GhzBandCapabilities &he6GhzCapabilities) |
Records HE 6 GHz Band Capabilities of a remote station. | |
void | AddStationHeCapabilities (Mac48Address from, const HeCapabilities &heCapabilities) |
Records HE capabilities of the remote station. | |
void | AddStationHtCapabilities (Mac48Address from, const HtCapabilities &htCapabilities) |
Records HT capabilities of the remote station. | |
void | AddStationMleCommonInfo (Mac48Address from, const std::shared_ptr< CommonInfoBasicMle > &mleCommonInfo) |
Records the Common Info field advertised by the given remote station in a Multi-Link Element. | |
void | AddStationVhtCapabilities (Mac48Address from, const VhtCapabilities &vhtCapabilities) |
Records VHT capabilities of the remote station. | |
void | AddSupportedErpSlotTime (Mac48Address address, bool isShortSlotTimeSupported) |
Record whether the short ERP slot time is supported by the station. | |
void | AddSupportedMcs (Mac48Address address, WifiMode mcs) |
Record the MCS index supported by the station. | |
void | AddSupportedMode (Mac48Address address, WifiMode mode) |
Invoked in a STA or AP to store the set of modes supported by a destination which is also supported locally. | |
void | AddSupportedPhyPreamble (Mac48Address address, bool isShortPreambleSupported) |
Record whether the short PHY preamble is supported by the station. | |
void | AdjustTxVectorForIcf (WifiTxVector &txVector) const |
Adjust the TXVECTOR for an initial Control frame to ensure that the modulation class is non-HT and the rate is 6 Mbps, 12 Mbps or 24 Mbps. | |
virtual int64_t | AssignStreams (int64_t stream) |
Assign a fixed random variable stream number to the random variables used by this model. | |
WifiTxVector | GetAckTxVector (Mac48Address to, const WifiTxVector &dataTxVector) const |
Return a TXVECTOR for the Ack frame given the destination and the mode of the Data used by the sender. | |
std::optional< Mac48Address > | GetAffiliatedStaAddress (const Mac48Address &mldAddress) const |
Get the address of the remote station operating on this link and affiliated with the MLD having the given MAC address, if any. | |
uint16_t | GetAssociationId (Mac48Address remoteAddress) const |
Get the AID of a remote station. | |
WifiMode | GetBasicMcs (uint8_t i) const |
Return the MCS at the given list index. | |
WifiMode | GetBasicMode (uint8_t i) const |
Return a basic mode from the set of basic modes. | |
WifiTxVector | GetBlockAckTxVector (Mac48Address to, const WifiTxVector &dataTxVector) const |
Return a TXVECTOR for the BlockAck frame given the destination and the mode of the Data used by the sender. | |
MHz_u | GetChannelWidthSupported (Mac48Address address) const |
Return the channel width supported by the station. | |
WifiMode | GetControlAnswerMode (WifiMode reqMode) const |
Get control answer mode function. | |
WifiTxVector | GetCtsToSelfTxVector () |
Since CTS-to-self parameters are not dependent on the station, it is implemented in wifi remote station manager. | |
WifiTxVector | GetCtsTxVector (Mac48Address to, WifiMode rtsTxMode) const |
Return a TXVECTOR for the CTS frame given the destination and the mode of the RTS used by the sender. | |
WifiTxVector | GetDataTxVector (const WifiMacHeader &header, MHz_u allowedWidth) |
WifiMode | GetDefaultMcs () const |
Return the default Modulation and Coding Scheme (MCS) index. | |
WifiMode | GetDefaultMode () const |
Return the default transmission mode. | |
WifiMode | GetDefaultModeForSta (const WifiRemoteStation *st) const |
Return the default MCS to use to transmit frames to the given station. | |
uint8_t | GetDefaultTxPowerLevel () const |
bool | GetDsssSupported (const Mac48Address &address) const |
Return whether the station supports DSSS or not. | |
bool | GetEhtSupported () const |
Return whether the device has EHT capability support enabled. | |
bool | GetEhtSupported (Mac48Address address) const |
Return whether the station supports EHT or not. | |
bool | GetEmlsrEnabled (const Mac48Address &address) const |
bool | GetEmlsrSupported (const Mac48Address &address) const |
bool | GetErpOfdmSupported (const Mac48Address &address) const |
Return whether the station supports ERP OFDM or not. | |
uint32_t | GetFragmentationThreshold () const |
Return the fragmentation threshold. | |
uint32_t | GetFragmentOffset (Ptr< const WifiMpdu > mpdu, uint32_t fragmentNumber) |
uint32_t | GetFragmentSize (Ptr< const WifiMpdu > mpdu, uint32_t fragmentNumber) |
Time | GetGuardInterval () const |
Return the shortest supported HE guard interval duration. | |
bool | GetHeSupported () const |
Return whether the device has HE capability support enabled. | |
bool | GetHeSupported (Mac48Address address) const |
Return whether the station supports HE or not. | |
bool | GetHtSupported () const |
Return whether the device has HT capability support enabled on the link this manager is associated with. | |
bool | GetHtSupported (Mac48Address address) const |
Return whether the station supports HT or not. | |
WifiRemoteStationInfo | GetInfo (Mac48Address address) |
bool | GetLdpcSupported () const |
Return whether the device has LDPC support enabled. | |
bool | GetLdpcSupported (Mac48Address address) const |
Return whether the station supports LDPC or not. | |
Ptr< WifiMac > | GetMac () const |
Return the WifiMac. | |
uint8_t | GetMaxNumberOfTransmitStreams () const |
std::optional< Mac48Address > | GetMldAddress (const Mac48Address &address) const |
Get the address of the MLD the given station is affiliated with, if any. | |
std::optional< dBm_u > | GetMostRecentRssi (Mac48Address address) const |
std::list< Ptr< WifiMpdu > > | GetMpdusToDropOnTxFailure (Ptr< WifiPsdu > psdu) |
Increment the retry count for all the MPDUs (if needed) in the given PSDU and find the MPDUs to drop based on the frame retry count. | |
uint8_t | GetNBasicMcs () const |
Return the number of basic MCS index. | |
uint8_t | GetNBasicModes () const |
Return the number of basic modes we support. | |
uint8_t | GetNMcsSupported (Mac48Address address) const |
Return the number of MCS supported by the station. | |
uint32_t | GetNNonErpBasicModes () const |
Return the number of non-ERP basic modes we support. | |
WifiMode | GetNonErpBasicMode (uint8_t i) const |
Return a basic mode from the set of basic modes that is not an ERP mode. | |
WifiMode | GetNonUnicastMode () const |
Return a mode for non-unicast packets. | |
uint8_t | GetNumberOfAntennas () const |
uint8_t | GetNumberOfSupportedStreams (Mac48Address address) const |
Return the number of spatial streams supported by the station. | |
bool | GetOfdmSupported (const Mac48Address &address) const |
Return whether the station supports OFDM or not. | |
Ptr< WifiPhy > | GetPhy () const |
Return the WifiPhy. | |
bool | GetQosSupported (Mac48Address address) const |
Return whether the given station is QoS capable. | |
WifiTxVector | GetRtsTxVector (Mac48Address address, MHz_u allowedWidth) |
bool | GetShortGuardIntervalSupported () const |
Return whether the device has SGI support enabled. | |
bool | GetShortGuardIntervalSupported (Mac48Address address) const |
Return whether the station supports HT/VHT short guard interval. | |
bool | GetShortPreambleEnabled () const |
Return whether the device uses short PHY preambles. | |
bool | GetShortPreambleSupported (Mac48Address address) const |
Return whether the station supports short PHY preamble or not. | |
bool | GetShortSlotTimeEnabled () const |
Return whether the device uses short slot time. | |
bool | GetShortSlotTimeSupported (Mac48Address address) const |
Return whether the station supports short ERP slot time or not. | |
Ptr< const EhtCapabilities > | GetStationEhtCapabilities (Mac48Address from) |
Return the EHT capabilities sent by the remote station. | |
std::optional< std::reference_wrapper< CommonInfoBasicMle::EmlCapabilities > > | GetStationEmlCapabilities (const Mac48Address &from) |
Ptr< const ExtendedCapabilities > | GetStationExtendedCapabilities (const Mac48Address &from) |
Return the extended capabilities sent by the remote station. | |
Ptr< const He6GhzBandCapabilities > | GetStationHe6GhzCapabilities (const Mac48Address &from) const |
Return the HE 6 GHz Band Capabilities sent by a remote station. | |
Ptr< const HeCapabilities > | GetStationHeCapabilities (Mac48Address from) |
Return the HE capabilities sent by the remote station. | |
Ptr< const HtCapabilities > | GetStationHtCapabilities (Mac48Address from) |
Return the HT capabilities sent by the remote station. | |
std::optional< std::reference_wrapper< CommonInfoBasicMle::MldCapabilities > > | GetStationMldCapabilities (const Mac48Address &from) |
Ptr< const VhtCapabilities > | GetStationVhtCapabilities (Mac48Address from) |
Return the VHT capabilities sent by the remote station. | |
bool | GetUseNonErpProtection () const |
Return whether the device supports protection of non-ERP stations. | |
bool | GetUseNonHtProtection () const |
Return whether the device supports protection of non-HT stations. | |
bool | GetVhtSupported () const |
Return whether the device has VHT capability support enabled on the link this manager is associated with. | |
bool | GetVhtSupported (Mac48Address address) const |
Return whether the station supports VHT or not. | |
bool | IsAssociated (Mac48Address address) const |
Return whether the station associated. | |
bool | IsAssocRefused (Mac48Address address) const |
Return whether we refused an association request from the given station. | |
bool | IsBrandNew (Mac48Address address) const |
Return whether the station state is brand new. | |
bool | IsInPsMode (const Mac48Address &address) const |
Return whether the STA is currently in Power Save mode. | |
bool | IsLastFragment (Ptr< const WifiMpdu > mpdu, uint32_t fragmentNumber) |
bool | IsWaitAssocTxOk (Mac48Address address) const |
Return whether we are waiting for an ACK for the association response we sent. | |
bool | NeedCtsToSelf (const WifiTxVector &txVector) |
Return if we need to do CTS-to-self before sending a DATA. | |
bool | NeedFragmentation (Ptr< const WifiMpdu > mpdu) |
bool | NeedRts (const WifiMacHeader &header, const WifiTxParameters &txParams) |
void | RecordAssocRefused (Mac48Address address) |
Records that association request was refused. | |
void | RecordDisassociated (Mac48Address address) |
Records that the STA was disassociated. | |
void | RecordGotAssocTxFailed (Mac48Address address) |
Records that we missed an ACK for the association response we sent. | |
void | RecordGotAssocTxOk (Mac48Address address) |
Records that we got an ACK for the association response we sent. | |
void | RecordWaitAssocTxOk (Mac48Address address) |
Records that we are waiting for an ACK for the association response we sent. | |
void | RemoveAllSupportedMcs (Mac48Address address) |
Invoked in a STA or AP to delete all of the supported MCS by a destination. | |
void | ReportAmpduTxStatus (Mac48Address address, uint16_t nSuccessfulMpdus, uint16_t nFailedMpdus, double rxSnr, double dataSnr, WifiTxVector dataTxVector) |
Typically called per A-MPDU, either when a Block ACK was successfully received or when a BlockAckTimeout has elapsed. | |
void | ReportDataFailed (Ptr< const WifiMpdu > mpdu) |
Should be invoked whenever the AckTimeout associated to a transmission attempt expires. | |
void | ReportDataOk (Ptr< const WifiMpdu > mpdu, double ackSnr, WifiMode ackMode, double dataSnr, WifiTxVector dataTxVector) |
Should be invoked whenever we receive the ACK associated to a data packet we just sent. | |
void | ReportFinalDataFailed (Ptr< const WifiMpdu > mpdu) |
Should be invoked after calling ReportDataFailed if frames are dropped. | |
void | ReportFinalRtsFailed (const WifiMacHeader &header) |
Should be invoked after calling ReportRtsFailed if frames are dropped. | |
void | ReportRtsFailed (const WifiMacHeader &header) |
Should be invoked whenever the RtsTimeout associated to a transmission attempt expires. | |
void | ReportRtsOk (const WifiMacHeader &header, double ctsSnr, WifiMode ctsMode, double rtsSnr) |
Should be invoked whenever we receive the CTS associated to an RTS we just sent. | |
void | ReportRxOk (Mac48Address address, RxSignalInfo rxSignalInfo, const WifiTxVector &txVector) |
void | Reset () |
Reset the station, invoked in a STA upon dis-association or in an AP upon reboot. | |
void | SetAssociationId (Mac48Address remoteAddress, uint16_t aid) |
Record the AID of a remote station. | |
void | SetDefaultTxPowerLevel (uint8_t txPower) |
Set the default transmission power level. | |
void | SetEmlsrEnabled (const Mac48Address &from, bool emlsrEnabled) |
void | SetFragmentationThreshold (uint32_t threshold) |
Sets a fragmentation threshold. | |
void | SetLinkId (uint8_t linkId) |
Set the ID of the link this Remote Station Manager is associated with. | |
void | SetMaxSlrc (uint32_t maxSlrc) |
Sets the maximum STA long retry count (SLRC). | |
void | SetMaxSsrc (uint32_t maxSsrc) |
Sets the maximum STA short retry count (SSRC). | |
void | SetPsMode (const Mac48Address &address, bool isInPsMode) |
Register whether the STA is in Power Save mode or not. | |
void | SetQosSupport (Mac48Address from, bool qosSupported) |
Records QoS support of the remote station. | |
void | SetRtsCtsThreshold (uint32_t threshold) |
Sets the RTS threshold. | |
void | SetShortPreambleEnabled (bool enable) |
Enable or disable short PHY preambles. | |
void | SetShortSlotTimeEnabled (bool enable) |
Enable or disable short slot time. | |
virtual void | SetupMac (const Ptr< WifiMac > mac) |
Set up MAC associated with this device since it is the object that knows the full set of timing parameters (e.g. | |
virtual void | SetupPhy (const Ptr< WifiPhy > phy) |
Set up PHY associated with this device since it is the object that knows the full set of transmit rates that are supported. | |
void | SetUseNonErpProtection (bool enable) |
Enable or disable protection for non-ERP stations. | |
void | SetUseNonHtProtection (bool enable) |
Enable or disable protection for non-HT stations. | |
bool | UseLdpcForDestination (Mac48Address dest) const |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. | |
~Object () override | |
Destructor. | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. | |
void | Dispose () |
Dispose of this Object. | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. | |
bool | IsInitialized () const |
Check if the object has been initialized. | |
void | UnidirectionalAggregateObject (Ptr< Object > other) |
Aggregate an Object to another Object. | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. | |
void | GetAttribute (std::string name, AttributeValue &value, bool permissive=false) const |
Get the value of an attribute, raising fatal errors if unsuccessful. | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId () |
Register this type. | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. | |
Protected Member Functions | |
void | DoDispose () override |
Destructor implementation. | |
Mac48Address | GetAddress (const WifiRemoteStation *station) const |
Return the address of the station. | |
bool | GetAggregation (const WifiRemoteStation *station) const |
Return whether the given station supports A-MPDU. | |
MHz_u | GetChannelWidth (const WifiRemoteStation *station) const |
Return the channel width supported by the station. | |
bool | GetEhtSupported (const WifiRemoteStation *station) const |
Return whether the given station is EHT capable. | |
bool | GetEmlsrEnabled (const WifiRemoteStation *station) const |
bool | GetEmlsrSupported (const WifiRemoteStation *station) const |
Time | GetGuardInterval (const WifiRemoteStation *station) const |
Return the shortest HE guard interval duration supported by the station. | |
bool | GetHeSupported (const WifiRemoteStation *station) const |
Return whether the given station is HE capable. | |
bool | GetHtSupported (const WifiRemoteStation *station) const |
Return whether the given station is HT capable. | |
WifiMode | GetMcsSupported (const WifiRemoteStation *station, uint8_t i) const |
Return the WifiMode supported by the specified station at the specified index. | |
uint8_t | GetNess (const WifiRemoteStation *station) const |
uint8_t | GetNMcsSupported (const WifiRemoteStation *station) const |
Return the number of MCS supported by the given station. | |
uint32_t | GetNNonErpSupported (const WifiRemoteStation *station) const |
Return the number of non-ERP modes supported by the given station. | |
WifiMode | GetNonErpSupported (const WifiRemoteStation *station, uint8_t i) const |
Return whether non-ERP mode associated with the specified station at the specified index. | |
uint8_t | GetNSupported (const WifiRemoteStation *station) const |
Return the number of modes supported by the given station. | |
uint8_t | GetNumberOfSupportedStreams (const WifiRemoteStation *station) const |
Return the number of supported streams the station has. | |
bool | GetQosSupported (const WifiRemoteStation *station) const |
Return whether the given station is QoS capable. | |
bool | GetShortGuardIntervalSupported (const WifiRemoteStation *station) const |
Return whether the given station supports HT/VHT short guard interval. | |
WifiMode | GetSupported (const WifiRemoteStation *station, uint8_t i) const |
Return whether mode associated with the specified station at the specified index. | |
bool | GetVhtSupported (const WifiRemoteStation *station) const |
Return whether the given station is VHT capable. | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. | |
virtual void | DoInitialize () |
Initialize() implementation. | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. | |
Protected Attributes | |
bool | m_incrRetryCountUnderBa |
whether to increment the retry count of frames that are part of a Block Ack agreement | |
uint8_t | m_linkId |
the ID of the link this object is associated with | |
Private Member Functions | |
virtual WifiRemoteStation * | DoCreateStation () const =0 |
virtual WifiTxVector | DoGetDataTxVector (WifiRemoteStation *station, MHz_u allowedWidth)=0 |
uint32_t | DoGetFragmentationThreshold () const |
Return the current fragmentation threshold. | |
virtual std::list< Ptr< WifiMpdu > > | DoGetMpdusToDropOnTxFailure (WifiRemoteStation *station, Ptr< WifiPsdu > psdu) |
Find the MPDUs to drop (possibly based on their frame retry count) in the given PSDU, whose transmission failed. | |
virtual WifiTxVector | DoGetRtsTxVector (WifiRemoteStation *station)=0 |
virtual void | DoIncrementRetryCountOnTxFailure (WifiRemoteStation *station, Ptr< WifiPsdu > psdu) |
Increment the retry count (if needed) for the given PSDU, whose transmission failed. | |
virtual bool | DoNeedFragmentation (WifiRemoteStation *station, Ptr< const Packet > packet, bool normally) |
virtual bool | DoNeedRts (WifiRemoteStation *station, uint32_t size, bool normally) |
virtual void | DoReportAmpduTxStatus (WifiRemoteStation *station, uint16_t nSuccessfulMpdus, uint16_t nFailedMpdus, double rxSnr, double dataSnr, MHz_u dataChannelWidth, uint8_t dataNss) |
Typically called per A-MPDU, either when a Block ACK was successfully received or when a BlockAckTimeout has elapsed. | |
virtual void | DoReportDataFailed (WifiRemoteStation *station)=0 |
This method is a pure virtual method that must be implemented by the sub-class. | |
virtual void | DoReportDataOk (WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr, MHz_u dataChannelWidth, uint8_t dataNss)=0 |
This method is a pure virtual method that must be implemented by the sub-class. | |
virtual void | DoReportFinalDataFailed (WifiRemoteStation *station)=0 |
This method is a pure virtual method that must be implemented by the sub-class. | |
virtual void | DoReportFinalRtsFailed (WifiRemoteStation *station)=0 |
This method is a pure virtual method that must be implemented by the sub-class. | |
virtual void | DoReportRtsFailed (WifiRemoteStation *station)=0 |
This method is a pure virtual method that must be implemented by the sub-class. | |
virtual void | DoReportRtsOk (WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)=0 |
This method is a pure virtual method that must be implemented by the sub-class. | |
virtual void | DoReportRxOk (WifiRemoteStation *station, double rxSnr, WifiMode txMode)=0 |
This method is a pure virtual method that must be implemented by the sub-class. | |
void | DoSetFragmentationThreshold (uint32_t threshold) |
Actually sets the fragmentation threshold, it also checks the validity of the given threshold. | |
uint32_t | GetNFragments (Ptr< const WifiMpdu > mpdu) |
Return the number of fragments needed for the given packet. | |
uint16_t | GetStaId (Mac48Address address, const WifiTxVector &txVector) const |
If the given TXVECTOR is used for a MU transmission, return the STAID of the station with the given address if we are an AP or our own STAID if we are a STA associated with some AP. | |
WifiRemoteStation * | Lookup (Mac48Address address) const |
Return the station associated with the given address. | |
std::shared_ptr< WifiRemoteStationState > | LookupState (Mac48Address address) const |
Return the state of the station associated with the given address. | |
Private Attributes | |
WifiModeList | m_bssBasicMcsSet |
basic MCS set | |
WifiModeList | m_bssBasicRateSet |
This member is the list of WifiMode objects that comprise the BSSBasicRateSet parameter. | |
uint8_t | m_defaultTxPowerLevel |
Default transmission power level. | |
ProtectionMode | m_erpProtectionMode |
Protection mode for ERP stations when non-ERP stations are detected. | |
uint32_t | m_fragmentationThreshold |
Current threshold for fragmentation. | |
ProtectionMode | m_htProtectionMode |
Protection mode for HT stations when non-HT stations are detected. | |
TracedCallback< Mac48Address > | m_macTxDataFailed |
The trace source fired when the transmission of a single data packet has failed. | |
TracedCallback< Mac48Address > | m_macTxFinalDataFailed |
The trace source fired when the transmission of a data packet has exceeded the maximum number of attempts. | |
TracedCallback< Mac48Address > | m_macTxFinalRtsFailed |
The trace source fired when the transmission of a RTS has exceeded the maximum number of attempts. | |
TracedCallback< Mac48Address > | m_macTxRtsFailed |
The trace source fired when the transmission of a single RTS has failed. | |
uint32_t | m_maxSlrc |
Maximum STA long retry count (SLRC) | |
uint32_t | m_maxSsrc |
Maximum STA short retry count (SSRC) | |
WifiMode | m_nonUnicastMode |
Transmission mode for non-unicast Data frames. | |
uint32_t | m_rtsCtsThreshold |
Threshold for RTS/CTS. | |
Time | m_rtsCtsTxDurationThresh |
TX duration threshold for RTS/CTS. | |
bool | m_shortPreambleEnabled |
flag if short PHY preamble is enabled | |
bool | m_shortSlotTimeEnabled |
flag if short slot time is enabled | |
std::array< uint32_t, AC_BE_NQOS > | m_slrc |
long retry count per AC | |
std::array< uint32_t, AC_BE_NQOS > | m_ssrc |
short retry count per AC | |
StationStates | m_states |
States of known stations. | |
Stations | m_stations |
Information for each known stations. | |
bool | m_useNonErpProtection |
flag if protection for non-ERP stations against ERP transmissions is enabled | |
bool | m_useNonHtProtection |
flag if protection for non-HT stations against HT transmissions is enabled | |
Ptr< WifiMac > | m_wifiMac |
This is a pointer to the WifiMac associated with this WifiRemoteStationManager that is set on call to WifiRemoteStationManager::SetupMac(). | |
Ptr< WifiPhy > | m_wifiPhy |
This is a pointer to the WifiPhy associated with this WifiRemoteStationManager that is set on call to WifiRemoteStationManager::SetupPhy(). | |
Additional Inherited Members | |
Related Symbols inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
hold a list of per-remote-station state.
ns3::WifiRemoteStationManager is accessible through the following paths with Config::Set and Config::Connect:
Rts-Cts|Cts-To-Self
Rts-Cts|Cts-To-Self
WifiMode
Time
-9.22337e+18ns:+9.22337e+18ns Group: Wifi
Size of this type is 408 bytes (on a 64-bit architecture).
Definition at line 136 of file wifi-remote-station-manager.h.
typedef void(* ns3::WifiRemoteStationManager::PowerChangeTracedCallback) (double oldPower, double newPower, Mac48Address remoteAddress) |
TracedCallback signature for power change events.
[in] | oldPower | The previous power (in dBm). |
[in] | newPower | The new power (in dBm). |
[in] | address | The remote station MAC address. |
Definition at line 1103 of file wifi-remote-station-manager.h.
typedef void(* ns3::WifiRemoteStationManager::RateChangeTracedCallback) (DataRate oldRate, DataRate newRate, Mac48Address remoteAddress) |
TracedCallback signature for rate change events.
[in] | oldRate | The previous data rate. |
[in] | newRate | The new data rate. |
[in] | address | The remote station MAC address. |
Definition at line 1114 of file wifi-remote-station-manager.h.
using ns3::WifiRemoteStationManager::Stations = std::unordered_map<Mac48Address, WifiRemoteStation*, WifiAddressHash> |
A map of WifiRemoteStations with Mac48Address as key.
Definition at line 158 of file wifi-remote-station-manager.h.
A map of WifiRemoteStationStates with Mac48Address as key.
Definition at line 162 of file wifi-remote-station-manager.h.
ProtectionMode enumeration.
Enumerator | |
---|---|
RTS_CTS | |
CTS_TO_SELF |
Definition at line 149 of file wifi-remote-station-manager.h.
ns3::WifiRemoteStationManager::WifiRemoteStationManager | ( | ) |
Definition at line 153 of file wifi-remote-station-manager.cc.
References m_slrc, m_ssrc, and NS_LOG_FUNCTION.
|
override |
Definition at line 165 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddAllSupportedMcs | ( | Mac48Address | address | ) |
Invoked in a STA or AP to store all of the MCS supported by a destination which is also supported locally.
address | the address of the station being recorded |
Definition at line 398 of file wifi-remote-station-manager.cc.
References ns3::WifiPhy::GetMcsList(), LookupState(), m_wifiPhy, NS_ASSERT, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddAllSupportedModes | ( | Mac48Address | address | ) |
Invoked in a STA or AP to store all of the modes supported by a destination which is also supported locally.
The set of supported modes includes the BSSBasicRateSet.
address | the address of the station being recorded |
Definition at line 381 of file wifi-remote-station-manager.cc.
References AddBasicMode(), ns3::WifiPhy::GetModeList(), LookupState(), m_wifiPhy, NS_ASSERT, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddBasicMcs | ( | WifiMode | mcs | ) |
Add a given Modulation and Coding Scheme (MCS) index to the set of basic MCS.
mcs | the WifiMode to be added to the basic MCS set |
Definition at line 1902 of file wifi-remote-station-manager.cc.
References ns3::WifiMode::GetMcsValue(), and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddBasicMode | ( | WifiMode | mode | ) |
Invoked in a STA upon association to store the set of rates which belong to the BSSBasicRateSet of the associated AP and which are supported locally.
Invoked in an AP to configure the BSSBasicRateSet.
mode | the WifiMode to be added to the basic mode set |
Definition at line 1831 of file wifi-remote-station-manager.cc.
References ns3::WifiMode::GetModulationClass(), NS_FATAL_ERROR, NS_LOG_FUNCTION, and ns3::WIFI_MOD_CLASS_HT.
Referenced by AddAllSupportedModes().
void ns3::WifiRemoteStationManager::AddStationEhtCapabilities | ( | Mac48Address | from, |
const EhtCapabilities & | ehtCapabilities ) |
Records EHT capabilities of the remote station.
from | the address of the station being recorded |
ehtCapabilities | the EHT capabilities of the station |
Definition at line 1659 of file wifi-remote-station-manager.cc.
References ns3::EhtCapabilities::GetHighestSupportedRxMcs(), NS_LOG_FUNCTION, and ns3::WIFI_MOD_CLASS_EHT.
void ns3::WifiRemoteStationManager::AddStationExtendedCapabilities | ( | Mac48Address | from, |
const ExtendedCapabilities & | extendedCapabilities ) |
Records extended capabilities of the remote station.
from | the address of the station being recorded |
extendedCapabilities | the extended capabilities of the station |
Definition at line 1558 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddStationHe6GhzCapabilities | ( | const Mac48Address & | from, |
const He6GhzBandCapabilities & | he6GhzCapabilities ) |
Records HE 6 GHz Band Capabilities of a remote station.
from | the address of the remote station |
he6GhzCapabilities | the HE 6 GHz Band Capabilities of the remote station |
Definition at line 1647 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddStationHeCapabilities | ( | Mac48Address | from, |
const HeCapabilities & | heCapabilities ) |
Records HE capabilities of the remote station.
from | the address of the station being recorded |
heCapabilities | the HE capabilities of the station |
Definition at line 1596 of file wifi-remote-station-manager.cc.
References ns3::HeCapabilities::GetChannelWidthSet(), ns3::HeCapabilities::GetHeSuPpdu1xHeLtf800nsGi(), ns3::HeCapabilities::GetHighestMcsSupported(), ns3::NanoSeconds(), NS_LOG_FUNCTION, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_PHY_BAND_2_4GHZ, ns3::WIFI_PHY_BAND_5GHZ, and ns3::WIFI_PHY_BAND_6GHZ.
void ns3::WifiRemoteStationManager::AddStationHtCapabilities | ( | Mac48Address | from, |
const HtCapabilities & | htCapabilities ) |
Records HT capabilities of the remote station.
from | the address of the station being recorded |
htCapabilities | the HT capabilities of the station |
Definition at line 1532 of file wifi-remote-station-manager.cc.
References ns3::HtCapabilities::GetSupportedChannelWidth(), ns3::HtCapabilities::IsSupportedMcs(), NS_LOG_FUNCTION, and ns3::WIFI_MOD_CLASS_HT.
void ns3::WifiRemoteStationManager::AddStationMleCommonInfo | ( | Mac48Address | from, |
const std::shared_ptr< CommonInfoBasicMle > & | mleCommonInfo ) |
Records the Common Info field advertised by the given remote station in a Multi-Link Element.
It includes the MLD address of the remote station.
from | the address of the station being recorded |
mleCommonInfo | the MLE Common Info advertised by the station |
Definition at line 1681 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddStationVhtCapabilities | ( | Mac48Address | from, |
const VhtCapabilities & | vhtCapabilities ) |
Records VHT capabilities of the remote station.
from | the address of the station being recorded |
vhtCapabilities | the VHT capabilities of the station |
Definition at line 1568 of file wifi-remote-station-manager.cc.
References ns3::VhtCapabilities::GetSupportedChannelWidthSet(), ns3::VhtCapabilities::IsSupportedMcs(), NS_LOG_FUNCTION, and ns3::WIFI_MOD_CLASS_VHT.
void ns3::WifiRemoteStationManager::AddSupportedErpSlotTime | ( | Mac48Address | address, |
bool | isShortSlotTimeSupported ) |
Record whether the short ERP slot time is supported by the station.
address | the address of the station |
isShortSlotTimeSupported | whether or not short ERP slot time is supported by the station |
Definition at line 343 of file wifi-remote-station-manager.cc.
References LookupState(), NS_ASSERT, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddSupportedMcs | ( | Mac48Address | address, |
WifiMode | mcs ) |
Record the MCS index supported by the station.
address | the address of the station |
mcs | the WifiMode supported by the station |
Definition at line 417 of file wifi-remote-station-manager.cc.
References LookupState(), NS_ASSERT, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AddSupportedMode | ( | Mac48Address | address, |
WifiMode | mode ) |
Invoked in a STA or AP to store the set of modes supported by a destination which is also supported locally.
The set of supported modes includes the BSSBasicRateSet.
address | the address of the station being recorded |
mode | the WifiMode supports by the station |
Definition at line 352 of file wifi-remote-station-manager.cc.
References ns3::WifiMode::GetModulationClass(), LookupState(), NS_ASSERT, NS_LOG_FUNCTION, ns3::WIFI_MOD_CLASS_DSSS, ns3::WIFI_MOD_CLASS_ERP_OFDM, ns3::WIFI_MOD_CLASS_HR_DSSS, and ns3::WIFI_MOD_CLASS_OFDM.
void ns3::WifiRemoteStationManager::AddSupportedPhyPreamble | ( | Mac48Address | address, |
bool | isShortPreambleSupported ) |
Record whether the short PHY preamble is supported by the station.
address | the address of the station |
isShortPreambleSupported | whether or not short PHY preamble is supported by the station |
Definition at line 334 of file wifi-remote-station-manager.cc.
References LookupState(), NS_ASSERT, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::AdjustTxVectorForIcf | ( | WifiTxVector & | txVector | ) | const |
Adjust the TXVECTOR for an initial Control frame to ensure that the modulation class is non-HT and the rate is 6 Mbps, 12 Mbps or 24 Mbps.
txVector | the TXVECTOR to adjust |
Definition at line 774 of file wifi-remote-station-manager.cc.
References ns3::WifiMode::GetDataRate(), ns3::ErpOfdmPhy::GetErpOfdmRate(), ns3::WifiTxVector::GetMode(), ns3::OfdmPhy::GetOfdmRate(), ns3::WifiPhy::GetPhyBand(), m_wifiPhy, NS_LOG_FUNCTION, ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetPreambleType(), ns3::WIFI_MOD_CLASS_HT, ns3::WIFI_PHY_BAND_2_4GHZ, and ns3::WIFI_PREAMBLE_LONG.
|
virtual |
Assign a fixed random variable stream number to the random variables used by this model.
Return the number of streams (possibly zero) that have been assigned.
stream | first stream index to use |
Reimplemented in ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Definition at line 206 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
|
privatepure virtual |
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
|
overrideprotectedvirtual |
Destructor implementation.
This method is called by Dispose() or by the Object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overridden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.
It is safe to call GetObject() from within this method.
Reimplemented from ns3::Object.
Definition at line 171 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION, and Reset().
|
privatepure virtual |
station | the station that we need to communicate |
allowedWidth | the allowed width to send a packet to the station |
Note: This method is called before sending a unicast packet or a fragment of a unicast packet to decide which transmission mode to use.
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by GetDataTxVector().
|
private |
Return the current fragmentation threshold.
Definition at line 1350 of file wifi-remote-station-manager.cc.
References m_fragmentationThreshold.
Referenced by GetFragmentationThreshold(), and GetTypeId().
|
privatevirtual |
Find the MPDUs to drop (possibly based on their frame retry count) in the given PSDU, whose transmission failed.
station | the station the PSDU is addressed to |
psdu | the given PSDU |
Reimplemented in ns3::MinstrelHtWifiManager, and ns3::MinstrelWifiManager.
Definition at line 1167 of file wifi-remote-station-manager.cc.
References m_wifiMac, NS_LOG_FUNCTION, and ns3::PeekPointer().
Referenced by GetMpdusToDropOnTxFailure().
|
privatepure virtual |
station | the station that we need to communicate |
Note: This method is called before sending an RTS to a station to decide which transmission mode to use for the RTS.
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by GetRtsTxVector().
|
privatevirtual |
Increment the retry count (if needed) for the given PSDU, whose transmission failed.
station | the station the PSDU is addressed to |
psdu | the given PSDU |
Definition at line 1141 of file wifi-remote-station-manager.cc.
References m_incrRetryCountUnderBa, m_wifiMac, and NS_LOG_FUNCTION.
Referenced by GetMpdusToDropOnTxFailure().
|
privatevirtual |
station | the station that we need to communicate |
packet | the packet to send |
normally | indicates whether the normal 802.11 data fragmentation mechanism would request that the data packet is fragmented or not. |
Note: This method is called before sending a unicast packet.
Definition at line 1955 of file wifi-remote-station-manager.cc.
Referenced by NeedFragmentation().
|
privatevirtual |
station | the station that we need to communicate |
size | the size of the frame to send in bytes |
normally | indicates whether the normal 802.11 RTS enable mechanism would request that the RTS is sent or not. |
Note: This method is called before a unicast packet is sent on the medium.
Reimplemented in ns3::AarfcdWifiManager, ns3::CaraWifiManager, ns3::RraaWifiManager, and ns3::RrpaaWifiManager.
Definition at line 1949 of file wifi-remote-station-manager.cc.
Referenced by NeedRts().
|
privatevirtual |
Typically called per A-MPDU, either when a Block ACK was successfully received or when a BlockAckTimeout has elapsed.
This method is a virtual method that must be implemented by the sub-class intended to handle A-MPDUs. This allows different types of WifiRemoteStationManager to respond differently.
station | the station that sent the DATA to us |
nSuccessfulMpdus | number of successfully transmitted MPDUs. A value of 0 means that the Block ACK was missed. |
nFailedMpdus | number of unsuccessfuly transmitted MPDUs. |
rxSnr | received SNR of the block ack frame itself |
dataSnr | data SNR reported by remote station |
dataChannelWidth | the channel width of the A-MPDU we sent |
dataNss | the number of spatial streams used to send the A-MPDU |
Reimplemented in ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, and ns3::ThompsonSamplingWifiManager.
Definition at line 1963 of file wifi-remote-station-manager.cc.
References NS_LOG_DEBUG.
Referenced by ReportAmpduTxStatus().
|
privatepure virtual |
This method is a pure virtual method that must be implemented by the sub-class.
This allows different types of WifiRemoteStationManager to respond differently,
station | the station that we failed to send DATA |
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by ReportDataFailed().
|
privatepure virtual |
This method is a pure virtual method that must be implemented by the sub-class.
This allows different types of WifiRemoteStationManager to respond differently,
station | the station that we successfully sent RTS |
ackSnr | the SNR of the ACK we received |
ackMode | the WifiMode the receiver used to send the ACK |
dataSnr | the SNR of the DATA we sent |
dataChannelWidth | the channel width of the DATA we sent |
dataNss | the number of spatial streams used to send the DATA |
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by ReportDataOk().
|
privatepure virtual |
This method is a pure virtual method that must be implemented by the sub-class.
This allows different types of WifiRemoteStationManager to respond differently,
station | the station that we failed to send DATA |
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by ReportFinalDataFailed().
|
privatepure virtual |
This method is a pure virtual method that must be implemented by the sub-class.
This allows different types of WifiRemoteStationManager to respond differently,
station | the station that we failed to send RTS |
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by ReportFinalRtsFailed().
|
privatepure virtual |
This method is a pure virtual method that must be implemented by the sub-class.
This allows different types of WifiRemoteStationManager to respond differently,
station | the station that we failed to send RTS |
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by ReportRtsFailed().
|
privatepure virtual |
This method is a pure virtual method that must be implemented by the sub-class.
This allows different types of WifiRemoteStationManager to respond differently,
station | the station that we successfully sent RTS |
ctsSnr | the SNR of the CTS we received |
ctsMode | the WifiMode the receiver used to send the CTS |
rtsSnr | the SNR of the RTS we sent |
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by ReportRtsOk().
|
privatepure virtual |
This method is a pure virtual method that must be implemented by the sub-class.
This allows different types of WifiRemoteStationManager to respond differently,
station | the station that sent the DATA to us |
rxSnr | the SNR of the DATA we received |
txMode | the WifiMode the sender used to send the DATA |
Implemented in ns3::AarfcdWifiManager, ns3::AarfWifiManager, ns3::AmrrWifiManager, ns3::AparfWifiManager, ns3::ArfWifiManager, ns3::CaraWifiManager, ns3::ConstantRateWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::OnoeWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, ns3::RrpaaWifiManager, and ns3::ThompsonSamplingWifiManager.
Referenced by ReportRxOk().
|
private |
Actually sets the fragmentation threshold, it also checks the validity of the given threshold.
threshold | the fragmentation threshold |
Definition at line 1319 of file wifi-remote-station-manager.cc.
References m_fragmentationThreshold, NS_LOG_FUNCTION, and NS_LOG_WARN.
Referenced by GetTypeId(), and SetFragmentationThreshold().
WifiTxVector ns3::WifiRemoteStationManager::GetAckTxVector | ( | Mac48Address | to, |
const WifiTxVector & | dataTxVector ) const |
Return a TXVECTOR for the Ack frame given the destination and the mode of the Data used by the sender.
to | the MAC address of the Ack receiver |
dataTxVector | the TXVECTOR of the Data used by the sender |
Definition at line 807 of file wifi-remote-station-manager.cc.
References GetControlAnswerMode(), GetDefaultTxPowerLevel(), ns3::WifiPhy::GetDevice(), ns3::GetGuardIntervalForMode(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), ns3::GetPreambleForTransmission(), GetShortPreambleEnabled(), GetStaId(), ns3::WifiPhy::GetTxBandwidth(), ns3::Mac48Address::IsGroup(), m_wifiPhy, NS_ASSERT, ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetGuardInterval(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetNss(), ns3::WifiTxVector::SetPreambleType(), and ns3::WifiTxVector::SetTxPowerLevel().
|
protected |
Return the address of the station.
station | the station being queried |
Definition at line 2019 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_address, and ns3::WifiRemoteStation::m_state.
std::optional< Mac48Address > ns3::WifiRemoteStationManager::GetAffiliatedStaAddress | ( | const Mac48Address & | mldAddress | ) | const |
Get the address of the remote station operating on this link and affiliated with the MLD having the given MAC address, if any.
mldAddress | the MLD MAC address |
Definition at line 589 of file wifi-remote-station-manager.cc.
|
protected |
Return whether the given station supports A-MPDU.
station | the station being queried |
Definition at line 2049 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_aggregation, and ns3::WifiRemoteStation::m_state.
Referenced by ns3::AarfcdWifiManager::DoGetDataTxVector(), ns3::AarfWifiManager::DoGetDataTxVector(), ns3::AmrrWifiManager::DoGetDataTxVector(), ns3::AparfWifiManager::DoGetDataTxVector(), ns3::ArfWifiManager::DoGetDataTxVector(), ns3::CaraWifiManager::DoGetDataTxVector(), ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::OnoeWifiManager::DoGetDataTxVector(), ns3::ParfWifiManager::DoGetDataTxVector(), ns3::RraaWifiManager::DoGetDataTxVector(), ns3::RrpaaWifiManager::DoGetDataTxVector(), ns3::ThompsonSamplingWifiManager::DoGetDataTxVector(), ns3::AarfcdWifiManager::DoGetRtsTxVector(), ns3::AarfWifiManager::DoGetRtsTxVector(), ns3::AmrrWifiManager::DoGetRtsTxVector(), ns3::AparfWifiManager::DoGetRtsTxVector(), ns3::ArfWifiManager::DoGetRtsTxVector(), ns3::CaraWifiManager::DoGetRtsTxVector(), ns3::ConstantRateWifiManager::DoGetRtsTxVector(), ns3::IdealWifiManager::DoGetRtsTxVector(), ns3::MinstrelHtWifiManager::DoGetRtsTxVector(), ns3::OnoeWifiManager::DoGetRtsTxVector(), ns3::ParfWifiManager::DoGetRtsTxVector(), ns3::RraaWifiManager::DoGetRtsTxVector(), ns3::RrpaaWifiManager::DoGetRtsTxVector(), ns3::ThompsonSamplingWifiManager::DoGetRtsTxVector(), ns3::MinstrelWifiManager::GetDataTxVector(), and ns3::MinstrelWifiManager::GetRtsTxVector().
uint16_t ns3::WifiRemoteStationManager::GetAssociationId | ( | Mac48Address | remoteAddress | ) | const |
Get the AID of a remote station.
Should only be called by APs.
remoteAddress | the MAC address of the remote station |
Definition at line 526 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::GOT_ASSOC_TX_OK, LookupState(), and ns3::SU_STA_ID.
Referenced by GetStaId().
WifiMode ns3::WifiRemoteStationManager::GetBasicMcs | ( | uint8_t | i | ) | const |
Return the MCS at the given list index.
i | the position in the list |
Definition at line 1922 of file wifi-remote-station-manager.cc.
References NS_ASSERT.
Referenced by GetControlAnswerMode().
WifiMode ns3::WifiRemoteStationManager::GetBasicMode | ( | uint8_t | i | ) | const |
Return a basic mode from the set of basic modes.
i | index of the basic mode in the basic mode set |
Definition at line 1855 of file wifi-remote-station-manager.cc.
References NS_ASSERT.
Referenced by ns3::IdealWifiManager::DoGetRtsTxVector(), ns3::MinstrelHtWifiManager::DoGetRtsTxVector(), GetControlAnswerMode(), and GetDataTxVector().
WifiTxVector ns3::WifiRemoteStationManager::GetBlockAckTxVector | ( | Mac48Address | to, |
const WifiTxVector & | dataTxVector ) const |
Return a TXVECTOR for the BlockAck frame given the destination and the mode of the Data used by the sender.
to | the MAC address of the BlockAck receiver |
dataTxVector | the TXVECTOR of the Data used by the sender |
Definition at line 823 of file wifi-remote-station-manager.cc.
References GetControlAnswerMode(), GetDefaultTxPowerLevel(), ns3::WifiPhy::GetDevice(), ns3::GetGuardIntervalForMode(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), ns3::GetPreambleForTransmission(), GetShortPreambleEnabled(), GetStaId(), ns3::WifiPhy::GetTxBandwidth(), ns3::Mac48Address::IsGroup(), m_wifiPhy, NS_ASSERT, ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetGuardInterval(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetNss(), ns3::WifiTxVector::SetPreambleType(), and ns3::WifiTxVector::SetTxPowerLevel().
|
protected |
Return the channel width supported by the station.
station | the station being queried |
Definition at line 2025 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_channelWidth, and ns3::WifiRemoteStation::m_state.
Referenced by ns3::AparfWifiManager::CheckInit(), ns3::ParfWifiManager::CheckInit(), ns3::RrpaaWifiManager::CheckInit(), ns3::AarfcdWifiManager::DoGetDataTxVector(), ns3::AarfWifiManager::DoGetDataTxVector(), ns3::AmrrWifiManager::DoGetDataTxVector(), ns3::AparfWifiManager::DoGetDataTxVector(), ns3::ArfWifiManager::DoGetDataTxVector(), ns3::CaraWifiManager::DoGetDataTxVector(), ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::OnoeWifiManager::DoGetDataTxVector(), ns3::ParfWifiManager::DoGetDataTxVector(), ns3::RraaWifiManager::DoGetDataTxVector(), ns3::RrpaaWifiManager::DoGetDataTxVector(), ns3::AarfcdWifiManager::DoGetRtsTxVector(), ns3::AarfWifiManager::DoGetRtsTxVector(), ns3::AmrrWifiManager::DoGetRtsTxVector(), ns3::AparfWifiManager::DoGetRtsTxVector(), ns3::ArfWifiManager::DoGetRtsTxVector(), ns3::CaraWifiManager::DoGetRtsTxVector(), ns3::ConstantRateWifiManager::DoGetRtsTxVector(), ns3::MinstrelHtWifiManager::DoGetRtsTxVector(), ns3::OnoeWifiManager::DoGetRtsTxVector(), ns3::ParfWifiManager::DoGetRtsTxVector(), ns3::RraaWifiManager::DoGetRtsTxVector(), ns3::RrpaaWifiManager::DoGetRtsTxVector(), ns3::MinstrelWifiManager::GetDataTxVector(), ns3::MinstrelWifiManager::GetRtsTxVector(), ns3::MinstrelHtWifiManager::InitializeGroups(), and ns3::MinstrelHtWifiManager::RateInit().
MHz_u ns3::WifiRemoteStationManager::GetChannelWidthSupported | ( | Mac48Address | address | ) | const |
Return the channel width supported by the station.
address | the address of the station |
Definition at line 2162 of file wifi-remote-station-manager.cc.
Referenced by GetDataTxVector().
Get control answer mode function.
reqMode | request mode |
The standard has relatively unambiguous rules for selecting a control response rate (the below is quoted from IEEE 802.11-2012, Section 9.7):
To allow the transmitting STA to calculate the contents of the Duration/ID field, a STA responding to a received frame shall transmit its Control Response frame (either CTS or Ack), other than the BlockAck control frame, at the highest rate in the BSSBasicRateSet parameter that is less than or equal to the rate of the immediately previous frame in the frame exchange sequence (as defined in Annex G) and that is of the same modulation class (see Section 9.7.8) as the received frame...
If no suitable basic rate was found, we search the mandatory rates. The standard (IEEE 802.11-2007, Section 9.6) says:
...If no rate contained in the BSSBasicRateSet parameter meets these conditions, then the control frame sent in response to a received frame shall be transmitted at the highest mandatory rate of the PHY that is less than or equal to the rate of the received frame, and that is of the same modulation class as the received frame. In addition, the Control Response frame shall be sent using the same PHY options as the received frame, unless they conflict with the requirement to use the BSSBasicRateSet parameter.
If we still haven't found a suitable rate for the response then someone has messed up the simulation configuration. This probably means that the WifiPhyStandard is not set correctly, or that a rate that is not supported by the PHY has been explicitly requested.
Either way, it is serious - we can either disobey the standard or fail, and I have chosen to do the latter...
Definition at line 840 of file wifi-remote-station-manager.cc.
References GetBasicMcs(), GetBasicMode(), GetDefaultMcs(), GetDefaultMode(), ns3::WifiPhy::GetDevice(), ns3::WifiPhy::GetMcsList(), ns3::WifiPhy::GetModeList(), ns3::WifiMode::GetModulationClass(), GetNBasicMcs(), GetNBasicModes(), ns3::IsAllowedControlAnswerModulationClass(), ns3::WifiMode::IsHigherDataRate(), m_wifiPhy, NS_FATAL_ERROR, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by GetAckTxVector(), GetBlockAckTxVector(), and GetCtsTxVector().
WifiTxVector ns3::WifiRemoteStationManager::GetCtsToSelfTxVector | ( | ) |
Since CTS-to-self parameters are not dependent on the station, it is implemented in wifi remote station manager.
Definition at line 677 of file wifi-remote-station-manager.cc.
References GetDefaultMode(), GetDefaultTxPowerLevel(), ns3::WifiPhy::GetDevice(), ns3::GetGuardIntervalForMode(), ns3::WifiMode::GetModulationClass(), GetNumberOfAntennas(), ns3::WifiPhy::GetTxBandwidth(), m_wifiPhy, ns3::WIFI_MOD_CLASS_EHT, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HT, ns3::WIFI_MOD_CLASS_VHT, ns3::WIFI_PREAMBLE_EHT_MU, ns3::WIFI_PREAMBLE_HE_SU, ns3::WIFI_PREAMBLE_HT_MF, ns3::WIFI_PREAMBLE_LONG, and ns3::WIFI_PREAMBLE_VHT_SU.
WifiTxVector ns3::WifiRemoteStationManager::GetCtsTxVector | ( | Mac48Address | to, |
WifiMode | rtsTxMode ) const |
Return a TXVECTOR for the CTS frame given the destination and the mode of the RTS used by the sender.
to | the MAC address of the CTS receiver |
rtsTxMode | the mode of the RTS used by the sender |
Definition at line 758 of file wifi-remote-station-manager.cc.
References GetControlAnswerMode(), GetDefaultTxPowerLevel(), ns3::WifiPhy::GetDevice(), ns3::GetGuardIntervalForMode(), ns3::WifiMode::GetModulationClass(), ns3::GetPreambleForTransmission(), GetShortPreambleEnabled(), ns3::WifiPhy::GetTxBandwidth(), ns3::Mac48Address::IsGroup(), m_wifiPhy, NS_ASSERT, ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetGuardInterval(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetNss(), ns3::WifiTxVector::SetPreambleType(), and ns3::WifiTxVector::SetTxPowerLevel().
WifiTxVector ns3::WifiRemoteStationManager::GetDataTxVector | ( | const WifiMacHeader & | header, |
MHz_u | allowedWidth ) |
header | MAC header |
allowedWidth | the allowed width to send this packet |
Definition at line 604 of file wifi-remote-station-manager.cc.
References DoGetDataTxVector(), ns3::WifiMacHeader::GetAddr1(), GetBasicMode(), ns3::WifiTxVector::GetChannelWidth(), GetChannelWidthSupported(), GetDefaultMode(), ns3::WifiPhy::GetDevice(), ns3::GetGuardIntervalForMode(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), GetNBasicModes(), GetNonUnicastMode(), GetNumberOfAntennas(), ns3::GetPreambleForTransmission(), GetShortPreambleEnabled(), ns3::WifiPhy::GetTxBandwidth(), ns3::Mac48Address::IsGroup(), ns3::WifiMacHeader::IsMgt(), Lookup(), m_defaultTxPowerLevel, m_wifiPhy, NS_ASSERT_MSG, NS_LOG_FUNCTION, ns3::WifiTxVector::SetBssColor(), ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetGuardInterval(), ns3::WifiTxVector::SetLdpc(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetNess(), ns3::WifiTxVector::SetNss(), ns3::WifiTxVector::SetNTx(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), UseLdpcForDestination(), and ns3::WIFI_MOD_CLASS_HT.
WifiMode ns3::WifiRemoteStationManager::GetDefaultMcs | ( | ) | const |
Return the default Modulation and Coding Scheme (MCS) index.
Definition at line 1783 of file wifi-remote-station-manager.cc.
Referenced by GetControlAnswerMode(), and LookupState().
WifiMode ns3::WifiRemoteStationManager::GetDefaultMode | ( | ) | const |
Return the default transmission mode.
Definition at line 1774 of file wifi-remote-station-manager.cc.
References NS_ASSERT.
Referenced by ns3::IdealWifiManager::DoGetRtsTxVector(), GetControlAnswerMode(), GetCtsToSelfTxVector(), GetDataTxVector(), LookupState(), and ns3::IdealWifiManager::Reset().
WifiMode ns3::WifiRemoteStationManager::GetDefaultModeForSta | ( | const WifiRemoteStation * | st | ) | const |
Return the default MCS to use to transmit frames to the given station.
st | the given station |
Definition at line 1789 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_address, ns3::WifiRemoteStation::m_state, NS_LOG_FUNCTION, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HT, and ns3::WIFI_MOD_CLASS_VHT.
Referenced by ns3::IdealWifiManager::DoGetDataTxVector().
uint8_t ns3::WifiRemoteStationManager::GetDefaultTxPowerLevel | ( | ) | const |
Definition at line 1428 of file wifi-remote-station-manager.cc.
References m_defaultTxPowerLevel.
Referenced by ns3::AarfcdWifiManager::DoGetDataTxVector(), ns3::AarfWifiManager::DoGetDataTxVector(), ns3::AmrrWifiManager::DoGetDataTxVector(), ns3::ArfWifiManager::DoGetDataTxVector(), ns3::CaraWifiManager::DoGetDataTxVector(), ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::OnoeWifiManager::DoGetDataTxVector(), ns3::RraaWifiManager::DoGetDataTxVector(), ns3::ThompsonSamplingWifiManager::DoGetDataTxVector(), ns3::AarfcdWifiManager::DoGetRtsTxVector(), ns3::AarfWifiManager::DoGetRtsTxVector(), ns3::AmrrWifiManager::DoGetRtsTxVector(), ns3::AparfWifiManager::DoGetRtsTxVector(), ns3::ArfWifiManager::DoGetRtsTxVector(), ns3::CaraWifiManager::DoGetRtsTxVector(), ns3::ConstantRateWifiManager::DoGetRtsTxVector(), ns3::IdealWifiManager::DoGetRtsTxVector(), ns3::MinstrelHtWifiManager::DoGetRtsTxVector(), ns3::OnoeWifiManager::DoGetRtsTxVector(), ns3::ParfWifiManager::DoGetRtsTxVector(), ns3::RraaWifiManager::DoGetRtsTxVector(), ns3::RrpaaWifiManager::DoGetRtsTxVector(), ns3::ThompsonSamplingWifiManager::DoGetRtsTxVector(), GetAckTxVector(), GetBlockAckTxVector(), GetCtsToSelfTxVector(), GetCtsTxVector(), ns3::MinstrelWifiManager::GetDataTxVector(), and ns3::MinstrelWifiManager::GetRtsTxVector().
bool ns3::WifiRemoteStationManager::GetDsssSupported | ( | const Mac48Address & | address | ) | const |
Return whether the station supports DSSS or not.
address | the address of the station |
Definition at line 2198 of file wifi-remote-station-manager.cc.
bool ns3::WifiRemoteStationManager::GetEhtSupported | ( | ) | const |
Return whether the device has EHT capability support enabled.
Definition at line 288 of file wifi-remote-station-manager.cc.
References ns3::WifiPhy::GetDevice(), and m_wifiPhy.
Referenced by ns3::IdealWifiManager::IsCandidateModulationClass(), and ns3::IdealWifiManager::IsModulationClassSupported().
|
protected |
Return whether the given station is EHT capable.
station | the station being queried |
Definition at line 2119 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_ehtCapabilities, and ns3::WifiRemoteStation::m_state.
bool ns3::WifiRemoteStationManager::GetEhtSupported | ( | Mac48Address | address | ) | const |
Return whether the station supports EHT or not.
address | the address of the station |
Definition at line 2234 of file wifi-remote-station-manager.cc.
bool ns3::WifiRemoteStationManager::GetEmlsrEnabled | ( | const Mac48Address & | address | ) | const |
address | the (MLD or link) address of the non-AP MLD |
Definition at line 2248 of file wifi-remote-station-manager.cc.
|
protected |
station | the station of a non-AP MLD |
Definition at line 2133 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_emlsrEnabled, and ns3::WifiRemoteStation::m_state.
bool ns3::WifiRemoteStationManager::GetEmlsrSupported | ( | const Mac48Address & | address | ) | const |
address | the (MLD or link) address of the non-AP MLD |
Definition at line 2240 of file wifi-remote-station-manager.cc.
|
protected |
station | the station of a non-AP MLD |
Definition at line 2125 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_mleCommonInfo, and ns3::WifiRemoteStation::m_state.
bool ns3::WifiRemoteStationManager::GetErpOfdmSupported | ( | const Mac48Address & | address | ) | const |
Return whether the station supports ERP OFDM or not.
address | the address of the station |
Definition at line 2204 of file wifi-remote-station-manager.cc.
uint32_t ns3::WifiRemoteStationManager::GetFragmentationThreshold | ( | ) | const |
Return the fragmentation threshold.
Definition at line 328 of file wifi-remote-station-manager.cc.
References DoGetFragmentationThreshold().
Referenced by GetFragmentOffset(), GetFragmentSize(), GetNFragments(), and NeedFragmentation().
uint32_t ns3::WifiRemoteStationManager::GetFragmentOffset | ( | Ptr< const WifiMpdu > | mpdu, |
uint32_t | fragmentNumber ) |
mpdu | the packet to send |
fragmentNumber | the fragment index of the next fragment to send (starts at zero). |
Definition at line 1406 of file wifi-remote-station-manager.cc.
References GetFragmentationThreshold(), GetNFragments(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::WIFI_MAC_FCS_LENGTH.
uint32_t ns3::WifiRemoteStationManager::GetFragmentSize | ( | Ptr< const WifiMpdu > | mpdu, |
uint32_t | fragmentNumber ) |
mpdu | the MPDU to send |
fragmentNumber | the fragment index of the next fragment to send (starts at zero). |
Definition at line 1375 of file wifi-remote-station-manager.cc.
References GetFragmentationThreshold(), GetNFragments(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::WIFI_MAC_FCS_LENGTH.
Time ns3::WifiRemoteStationManager::GetGuardInterval | ( | ) | const |
Return the shortest supported HE guard interval duration.
Definition at line 314 of file wifi-remote-station-manager.cc.
References ns3::WifiPhy::GetDevice(), GetHeSupported(), m_wifiPhy, and NS_ASSERT.
Referenced by ns3::IdealWifiManager::BuildSnrThresholds(), ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::ConstantRateWifiManager::DoGetRtsTxVector(), ns3::ThompsonSamplingWifiManager::GetModeGuardInterval(), ns3::MinstrelHtWifiManager::InitializeGroups(), LookupState(), and ns3::MinstrelHtWifiManager::RateInit().
|
protected |
Return the shortest HE guard interval duration supported by the station.
station | the station being queried |
Definition at line 2043 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_guardInterval, and ns3::WifiRemoteStation::m_state.
bool ns3::WifiRemoteStationManager::GetHeSupported | ( | ) | const |
Return whether the device has HE capability support enabled.
Definition at line 282 of file wifi-remote-station-manager.cc.
References ns3::WifiPhy::GetDevice(), and m_wifiPhy.
Referenced by ns3::AarfcdWifiManager::DoInitialize(), ns3::AarfWifiManager::DoInitialize(), ns3::AmrrWifiManager::DoInitialize(), ns3::AparfWifiManager::DoInitialize(), ns3::ArfWifiManager::DoInitialize(), ns3::CaraWifiManager::DoInitialize(), ns3::MinstrelHtWifiManager::DoInitialize(), ns3::MinstrelWifiManager::DoInitialize(), ns3::OnoeWifiManager::DoInitialize(), ns3::ParfWifiManager::DoInitialize(), ns3::RraaWifiManager::DoInitialize(), ns3::RrpaaWifiManager::DoInitialize(), GetGuardInterval(), ns3::ThompsonSamplingWifiManager::InitializeStation(), ns3::IdealWifiManager::IsCandidateModulationClass(), ns3::IdealWifiManager::IsModulationClassSupported(), and ns3::MinstrelHtWifiManager::RateInit().
|
protected |
Return whether the given station is HE capable.
station | the station being queried |
Definition at line 2113 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_heCapabilities, and ns3::WifiRemoteStation::m_state.
bool ns3::WifiRemoteStationManager::GetHeSupported | ( | Mac48Address | address | ) | const |
Return whether the station supports HE or not.
address | the address of the station |
Definition at line 2228 of file wifi-remote-station-manager.cc.
bool ns3::WifiRemoteStationManager::GetHtSupported | ( | ) | const |
Return whether the device has HT capability support enabled on the link this manager is associated with.
Note that this means that this function returns false if this is a 6 GHz link.
Definition at line 267 of file wifi-remote-station-manager.cc.
References ns3::WifiPhy::GetDevice(), ns3::WifiPhy::GetPhyBand(), m_wifiPhy, and ns3::WIFI_PHY_BAND_6GHZ.
Referenced by ns3::MinstrelHtWifiManager::CheckInit(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::AarfcdWifiManager::DoInitialize(), ns3::AarfWifiManager::DoInitialize(), ns3::AmrrWifiManager::DoInitialize(), ns3::AparfWifiManager::DoInitialize(), ns3::ArfWifiManager::DoInitialize(), ns3::CaraWifiManager::DoInitialize(), ns3::MinstrelHtWifiManager::DoInitialize(), ns3::MinstrelWifiManager::DoInitialize(), ns3::OnoeWifiManager::DoInitialize(), ns3::ParfWifiManager::DoInitialize(), ns3::RraaWifiManager::DoInitialize(), ns3::RrpaaWifiManager::DoInitialize(), ns3::MinstrelHtWifiManager::GetHeGroupId(), and ns3::IdealWifiManager::IsModulationClassSupported().
|
protected |
Return whether the given station is HT capable.
station | the station being queried |
Definition at line 2101 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_htCapabilities, and ns3::WifiRemoteStation::m_state.
bool ns3::WifiRemoteStationManager::GetHtSupported | ( | Mac48Address | address | ) | const |
Return whether the station supports HT or not.
address | the address of the station |
Definition at line 2216 of file wifi-remote-station-manager.cc.
WifiRemoteStationInfo ns3::WifiRemoteStationManager::GetInfo | ( | Mac48Address | address | ) |
address | of the remote station |
Definition at line 1434 of file wifi-remote-station-manager.cc.
References LookupState().
bool ns3::WifiRemoteStationManager::GetLdpcSupported | ( | ) | const |
Return whether the device has LDPC support enabled.
Definition at line 294 of file wifi-remote-station-manager.cc.
References ns3::WifiPhy::GetDevice(), and m_wifiPhy.
bool ns3::WifiRemoteStationManager::GetLdpcSupported | ( | Mac48Address | address | ) | const |
Return whether the station supports LDPC or not.
address | the address of the station |
Definition at line 1752 of file wifi-remote-station-manager.cc.
Return the WifiMac.
Definition at line 2083 of file wifi-remote-station-manager.cc.
Referenced by ns3::MinstrelHtWifiManager::DoGetMpdusToDropOnTxFailure(), and ns3::MinstrelWifiManager::DoGetMpdusToDropOnTxFailure().
uint8_t ns3::WifiRemoteStationManager::GetMaxNumberOfTransmitStreams | ( | ) | const |
Definition at line 2270 of file wifi-remote-station-manager.cc.
Referenced by ns3::ConstantRateWifiManager::DoGetDataTxVector(), and ns3::IdealWifiManager::DoGetDataTxVector().
|
protected |
Return the WifiMode supported by the specified station at the specified index.
station | the station being queried |
i | the index |
Definition at line 1982 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_operationalMcsSet, ns3::WifiRemoteStation::m_state, and NS_ASSERT.
Referenced by ns3::MinstrelHtWifiManager::CalculateRetransmits(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetRtsTxVector(), ns3::MinstrelHtWifiManager::RateInit(), ns3::MinstrelHtWifiManager::StatsDump(), and ns3::MinstrelHtWifiManager::UpdateStats().
std::optional< Mac48Address > ns3::WifiRemoteStationManager::GetMldAddress | ( | const Mac48Address & | address | ) | const |
Get the address of the MLD the given station is affiliated with, if any.
Note that an MLD address is only present if an ML discovery/setup was performed with the given station (which requires both this station and the given station to be MLDs).
address | the MAC address of the remote station |
Definition at line 577 of file wifi-remote-station-manager.cc.
References m_states.
std::optional< dBm_u > ns3::WifiRemoteStationManager::GetMostRecentRssi | ( | Mac48Address | address | ) | const |
address | of the remote station |
This method is typically used when the device needs to estimate the target UL RSSI info to put in the Trigger frame to send to the remote station.
Definition at line 1440 of file wifi-remote-station-manager.cc.
References Lookup().
std::list< Ptr< WifiMpdu > > ns3::WifiRemoteStationManager::GetMpdusToDropOnTxFailure | ( | Ptr< WifiPsdu > | psdu | ) |
Increment the retry count for all the MPDUs (if needed) in the given PSDU and find the MPDUs to drop based on the frame retry count.
psdu | the given PSDU, whose transmission failed |
Definition at line 1130 of file wifi-remote-station-manager.cc.
References DoGetMpdusToDropOnTxFailure(), DoIncrementRetryCountOnTxFailure(), Lookup(), and NS_LOG_FUNCTION.
uint8_t ns3::WifiRemoteStationManager::GetNBasicMcs | ( | ) | const |
Return the number of basic MCS index.
Definition at line 1916 of file wifi-remote-station-manager.cc.
Referenced by GetControlAnswerMode().
uint8_t ns3::WifiRemoteStationManager::GetNBasicModes | ( | ) | const |
Return the number of basic modes we support.
Definition at line 1849 of file wifi-remote-station-manager.cc.
Referenced by ns3::IdealWifiManager::DoGetRtsTxVector(), ns3::MinstrelHtWifiManager::DoGetRtsTxVector(), GetControlAnswerMode(), and GetDataTxVector().
|
protected |
station | the station being queried |
Definition at line 2071 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_ness, and ns3::WifiRemoteStation::m_state.
Referenced by ns3::MinstrelHtWifiManager::DoGetDataTxVector().
Return the number of fragments needed for the given packet.
mpdu | the packet to be fragmented |
Definition at line 1356 of file wifi-remote-station-manager.cc.
References GetFragmentationThreshold(), NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::WIFI_MAC_FCS_LENGTH.
Referenced by GetFragmentOffset(), GetFragmentSize(), and IsLastFragment().
|
protected |
Return the number of MCS supported by the given station.
station | the station being queried |
Definition at line 2139 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_operationalMcsSet, and ns3::WifiRemoteStation::m_state.
uint8_t ns3::WifiRemoteStationManager::GetNMcsSupported | ( | Mac48Address | address | ) | const |
Return the number of MCS supported by the station.
address | the address of the station |
Definition at line 2192 of file wifi-remote-station-manager.cc.
Referenced by ns3::MinstrelHtWifiManager::CheckInit(), and ns3::IdealWifiManager::DoGetDataTxVector().
uint32_t ns3::WifiRemoteStationManager::GetNNonErpBasicModes | ( | ) | const |
Return the number of non-ERP basic modes we support.
Definition at line 1862 of file wifi-remote-station-manager.cc.
References ns3::WIFI_MOD_CLASS_ERP_OFDM.
|
protected |
Return the number of non-ERP modes supported by the given station.
station | the station being queried |
Definition at line 2145 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_operationalRateSet, ns3::WifiRemoteStation::m_state, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
WifiMode ns3::WifiRemoteStationManager::GetNonErpBasicMode | ( | uint8_t | i | ) | const |
Return a basic mode from the set of basic modes that is not an ERP mode.
i | index of the basic mode in the basic mode set |
Definition at line 1877 of file wifi-remote-station-manager.cc.
References NS_ASSERT, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
|
protected |
Return whether non-ERP mode associated with the specified station at the specified index.
station | the station being queried |
i | the index |
Definition at line 1989 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_operationalRateSet, ns3::WifiRemoteStation::m_state, NS_ASSERT, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by ns3::AarfcdWifiManager::DoGetRtsTxVector(), ns3::AarfWifiManager::DoGetRtsTxVector(), ns3::AmrrWifiManager::DoGetRtsTxVector(), ns3::AparfWifiManager::DoGetRtsTxVector(), ns3::ArfWifiManager::DoGetRtsTxVector(), ns3::CaraWifiManager::DoGetRtsTxVector(), ns3::OnoeWifiManager::DoGetRtsTxVector(), ns3::ParfWifiManager::DoGetRtsTxVector(), ns3::RraaWifiManager::DoGetRtsTxVector(), ns3::RrpaaWifiManager::DoGetRtsTxVector(), and ns3::MinstrelWifiManager::GetRtsTxVector().
WifiMode ns3::WifiRemoteStationManager::GetNonUnicastMode | ( | ) | const |
Return a mode for non-unicast packets.
Definition at line 1929 of file wifi-remote-station-manager.cc.
Referenced by GetDataTxVector(), and GetRtsTxVector().
|
protected |
Return the number of modes supported by the given station.
station | the station being queried |
Definition at line 2089 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_operationalRateSet, and ns3::WifiRemoteStation::m_state.
Referenced by ns3::AparfWifiManager::CheckInit(), ns3::MinstrelWifiManager::CheckInit(), ns3::ParfWifiManager::CheckInit(), ns3::RraaWifiManager::CheckInit(), ns3::RrpaaWifiManager::CheckInit(), ns3::AmrrWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::OnoeWifiManager::DoGetDataTxVector(), ns3::AarfcdWifiManager::DoReportDataOk(), ns3::AarfWifiManager::DoReportDataOk(), ns3::CaraWifiManager::DoReportDataOk(), ns3::AmrrWifiManager::IncreaseRate(), ns3::ThompsonSamplingWifiManager::InitializeStation(), ns3::AmrrWifiManager::IsMaxRate(), ns3::AmrrWifiManager::UpdateMode(), and ns3::OnoeWifiManager::UpdateMode().
uint8_t ns3::WifiRemoteStationManager::GetNumberOfAntennas | ( | ) | const |
Definition at line 2264 of file wifi-remote-station-manager.cc.
Referenced by ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::ThompsonSamplingWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetRtsTxVector(), ns3::ThompsonSamplingWifiManager::DoGetRtsTxVector(), GetCtsToSelfTxVector(), GetDataTxVector(), and GetRtsTxVector().
|
protected |
Return the number of supported streams the station has.
station | the station being queried |
Definition at line 2055 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_heCapabilities, ns3::WifiRemoteStationState::m_htCapabilities, and ns3::WifiRemoteStation::m_state.
uint8_t ns3::WifiRemoteStationManager::GetNumberOfSupportedStreams | ( | Mac48Address | address | ) | const |
Return the number of spatial streams supported by the station.
address | the address of the station |
Definition at line 2180 of file wifi-remote-station-manager.cc.
Referenced by ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), and ns3::MinstrelHtWifiManager::RateInit().
bool ns3::WifiRemoteStationManager::GetOfdmSupported | ( | const Mac48Address & | address | ) | const |
Return whether the station supports OFDM or not.
address | the address of the station |
Definition at line 2210 of file wifi-remote-station-manager.cc.
Return the WifiPhy.
Definition at line 2077 of file wifi-remote-station-manager.cc.
Referenced by ns3::IdealWifiManager::BuildSnrThresholds(), ns3::MinstrelHtWifiManager::CalculateMpduTxDuration(), ns3::MinstrelHtWifiManager::CalculateRetransmits(), ns3::MinstrelWifiManager::CalculateTimeUnicastPacket(), ns3::AparfWifiManager::CheckInit(), ns3::ParfWifiManager::CheckInit(), ns3::RrpaaWifiManager::CheckInit(), ns3::MinstrelHtWifiManager::DoCreateStation(), ns3::AparfWifiManager::DoGetDataTxVector(), ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::ParfWifiManager::DoGetDataTxVector(), ns3::RrpaaWifiManager::DoGetDataTxVector(), ns3::ThompsonSamplingWifiManager::DoGetDataTxVector(), ns3::ConstantRateWifiManager::DoGetRtsTxVector(), ns3::MinstrelHtWifiManager::DoGetRtsTxVector(), ns3::ThompsonSamplingWifiManager::DoGetRtsTxVector(), ns3::IdealWifiManager::DoReportRtsOk(), ns3::MinstrelHtWifiManager::GetDeviceMcsList(), ns3::MinstrelHtWifiManager::InitializeGroups(), ns3::ThompsonSamplingWifiManager::InitializeStation(), and ns3::MinstrelHtWifiManager::UpdateRateAfterAllowedWidth().
|
protected |
Return whether the given station is QoS capable.
station | the station being queried |
Definition at line 2095 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_qosSupported, and ns3::WifiRemoteStation::m_state.
bool ns3::WifiRemoteStationManager::GetQosSupported | ( | Mac48Address | address | ) | const |
Return whether the given station is QoS capable.
address | the address of the station |
Definition at line 445 of file wifi-remote-station-manager.cc.
References LookupState().
WifiTxVector ns3::WifiRemoteStationManager::GetRtsTxVector | ( | Mac48Address | address, |
MHz_u | allowedWidth ) |
address | remote address |
allowedWidth | the allowed width for the data frame being protected |
Definition at line 714 of file wifi-remote-station-manager.cc.
References DoGetRtsTxVector(), ns3::WifiPhy::GetDevice(), ns3::ErpOfdmPhy::GetErpOfdmRate6Mbps(), ns3::GetGuardIntervalForMode(), ns3::WifiMode::GetModulationClass(), ns3::WifiTxVector::GetModulationClass(), GetNonUnicastMode(), GetNumberOfAntennas(), ns3::GetPreambleForTransmission(), GetShortPreambleEnabled(), ns3::WifiPhy::GetTxBandwidth(), Lookup(), m_defaultTxPowerLevel, m_wifiPhy, NS_LOG_FUNCTION, ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetGuardInterval(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetNess(), ns3::WifiTxVector::SetNss(), ns3::WifiTxVector::SetNTx(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetTxPowerLevel(), ns3::WIFI_MOD_CLASS_DSSS, and ns3::WIFI_MOD_CLASS_HR_DSSS.
bool ns3::WifiRemoteStationManager::GetShortGuardIntervalSupported | ( | ) | const |
Return whether the device has SGI support enabled.
Definition at line 304 of file wifi-remote-station-manager.cc.
References ns3::WifiPhy::GetDevice(), and m_wifiPhy.
Referenced by ns3::IdealWifiManager::BuildSnrThresholds(), ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::ConstantRateWifiManager::DoGetRtsTxVector(), ns3::ThompsonSamplingWifiManager::GetModeGuardInterval(), ns3::MinstrelHtWifiManager::InitializeGroups(), and ns3::MinstrelHtWifiManager::RateInit().
|
protected |
Return whether the given station supports HT/VHT short guard interval.
station | the station being queried |
Definition at line 2031 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_htCapabilities, and ns3::WifiRemoteStation::m_state.
bool ns3::WifiRemoteStationManager::GetShortGuardIntervalSupported | ( | Mac48Address | address | ) | const |
Return whether the station supports HT/VHT short guard interval.
address | the address of the station |
Definition at line 2168 of file wifi-remote-station-manager.cc.
bool ns3::WifiRemoteStationManager::GetShortPreambleEnabled | ( | ) | const |
Return whether the device uses short PHY preambles.
Definition at line 261 of file wifi-remote-station-manager.cc.
References m_shortPreambleEnabled.
Referenced by ns3::AarfcdWifiManager::DoGetDataTxVector(), ns3::AarfWifiManager::DoGetDataTxVector(), ns3::AmrrWifiManager::DoGetDataTxVector(), ns3::AparfWifiManager::DoGetDataTxVector(), ns3::ArfWifiManager::DoGetDataTxVector(), ns3::CaraWifiManager::DoGetDataTxVector(), ns3::ConstantRateWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::MinstrelHtWifiManager::DoGetDataTxVector(), ns3::OnoeWifiManager::DoGetDataTxVector(), ns3::ParfWifiManager::DoGetDataTxVector(), ns3::RraaWifiManager::DoGetDataTxVector(), ns3::RrpaaWifiManager::DoGetDataTxVector(), ns3::ThompsonSamplingWifiManager::DoGetDataTxVector(), ns3::AarfcdWifiManager::DoGetRtsTxVector(), ns3::AarfWifiManager::DoGetRtsTxVector(), ns3::AmrrWifiManager::DoGetRtsTxVector(), ns3::AparfWifiManager::DoGetRtsTxVector(), ns3::ArfWifiManager::DoGetRtsTxVector(), ns3::CaraWifiManager::DoGetRtsTxVector(), ns3::ConstantRateWifiManager::DoGetRtsTxVector(), ns3::IdealWifiManager::DoGetRtsTxVector(), ns3::MinstrelHtWifiManager::DoGetRtsTxVector(), ns3::OnoeWifiManager::DoGetRtsTxVector(), ns3::ParfWifiManager::DoGetRtsTxVector(), ns3::RraaWifiManager::DoGetRtsTxVector(), ns3::RrpaaWifiManager::DoGetRtsTxVector(), ns3::ThompsonSamplingWifiManager::DoGetRtsTxVector(), GetAckTxVector(), GetBlockAckTxVector(), GetCtsTxVector(), ns3::MinstrelWifiManager::GetDataTxVector(), GetDataTxVector(), ns3::MinstrelWifiManager::GetRtsTxVector(), and GetRtsTxVector().
bool ns3::WifiRemoteStationManager::GetShortPreambleSupported | ( | Mac48Address | address | ) | const |
Return whether the station supports short PHY preamble or not.
address | the address of the station |
Definition at line 433 of file wifi-remote-station-manager.cc.
References LookupState().
bool ns3::WifiRemoteStationManager::GetShortSlotTimeEnabled | ( | ) | const |
Return whether the device uses short slot time.
Definition at line 255 of file wifi-remote-station-manager.cc.
References m_shortSlotTimeEnabled.
bool ns3::WifiRemoteStationManager::GetShortSlotTimeSupported | ( | Mac48Address | address | ) | const |
Return whether the station supports short ERP slot time or not.
address | the address of the station |
Definition at line 439 of file wifi-remote-station-manager.cc.
References LookupState().
|
private |
If the given TXVECTOR is used for a MU transmission, return the STAID of the station with the given address if we are an AP or our own STAID if we are a STA associated with some AP.
Otherwise, return SU_STA_ID.
address | the address of the station |
txVector | the TXVECTOR used for a MU transmission |
Definition at line 538 of file wifi-remote-station-manager.cc.
References ns3::AP, GetAssociationId(), ns3::WifiTxVector::IsMu(), m_wifiMac, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::STA, ns3::StaticCast(), and ns3::SU_STA_ID.
Referenced by GetAckTxVector(), GetBlockAckTxVector(), ReportAmpduTxStatus(), ReportDataOk(), and ReportRxOk().
Ptr< const EhtCapabilities > ns3::WifiRemoteStationManager::GetStationEhtCapabilities | ( | Mac48Address | from | ) |
Return the EHT capabilities sent by the remote station.
from | the address of the remote station |
Definition at line 1724 of file wifi-remote-station-manager.cc.
std::optional< std::reference_wrapper< CommonInfoBasicMle::EmlCapabilities > > ns3::WifiRemoteStationManager::GetStationEmlCapabilities | ( | const Mac48Address & | from | ) |
from | the (MLD or link) address of the remote non-AP MLD |
Definition at line 1730 of file wifi-remote-station-manager.cc.
Ptr< const ExtendedCapabilities > ns3::WifiRemoteStationManager::GetStationExtendedCapabilities | ( | const Mac48Address & | from | ) |
Return the extended capabilities sent by the remote station.
from | the address of the remote station |
Definition at line 1700 of file wifi-remote-station-manager.cc.
Ptr< const He6GhzBandCapabilities > ns3::WifiRemoteStationManager::GetStationHe6GhzCapabilities | ( | const Mac48Address & | from | ) | const |
Return the HE 6 GHz Band Capabilities sent by a remote station.
from | the address of the remote station |
Definition at line 1718 of file wifi-remote-station-manager.cc.
Referenced by ns3::MinstrelHtWifiManager::CheckInit(), and ns3::IdealWifiManager::DoGetDataTxVector().
Ptr< const HeCapabilities > ns3::WifiRemoteStationManager::GetStationHeCapabilities | ( | Mac48Address | from | ) |
Return the HE capabilities sent by the remote station.
from | the address of the remote station |
Definition at line 1712 of file wifi-remote-station-manager.cc.
Ptr< const HtCapabilities > ns3::WifiRemoteStationManager::GetStationHtCapabilities | ( | Mac48Address | from | ) |
Return the HT capabilities sent by the remote station.
from | the address of the remote station |
Definition at line 1694 of file wifi-remote-station-manager.cc.
std::optional< std::reference_wrapper< CommonInfoBasicMle::MldCapabilities > > ns3::WifiRemoteStationManager::GetStationMldCapabilities | ( | const Mac48Address & | from | ) |
from | the (MLD or link) address of the remote non-AP MLD |
Definition at line 1741 of file wifi-remote-station-manager.cc.
Ptr< const VhtCapabilities > ns3::WifiRemoteStationManager::GetStationVhtCapabilities | ( | Mac48Address | from | ) |
Return the VHT capabilities sent by the remote station.
from | the address of the remote station |
Definition at line 1706 of file wifi-remote-station-manager.cc.
|
protected |
Return whether mode associated with the specified station at the specified index.
station | the station being queried |
i | the index |
Definition at line 1975 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::m_operationalRateSet, ns3::WifiRemoteStation::m_state, and NS_ASSERT.
Referenced by ns3::AparfWifiManager::CheckInit(), ns3::ParfWifiManager::CheckInit(), ns3::RrpaaWifiManager::CheckInit(), ns3::AarfcdWifiManager::DoGetDataTxVector(), ns3::AarfWifiManager::DoGetDataTxVector(), ns3::AmrrWifiManager::DoGetDataTxVector(), ns3::AparfWifiManager::DoGetDataTxVector(), ns3::ArfWifiManager::DoGetDataTxVector(), ns3::CaraWifiManager::DoGetDataTxVector(), ns3::IdealWifiManager::DoGetDataTxVector(), ns3::OnoeWifiManager::DoGetDataTxVector(), ns3::ParfWifiManager::DoGetDataTxVector(), ns3::RraaWifiManager::DoGetDataTxVector(), ns3::RrpaaWifiManager::DoGetDataTxVector(), ns3::AarfcdWifiManager::DoGetRtsTxVector(), ns3::AarfWifiManager::DoGetRtsTxVector(), ns3::AmrrWifiManager::DoGetRtsTxVector(), ns3::AparfWifiManager::DoGetRtsTxVector(), ns3::ArfWifiManager::DoGetRtsTxVector(), ns3::CaraWifiManager::DoGetRtsTxVector(), ns3::OnoeWifiManager::DoGetRtsTxVector(), ns3::ParfWifiManager::DoGetRtsTxVector(), ns3::RraaWifiManager::DoGetRtsTxVector(), ns3::RrpaaWifiManager::DoGetRtsTxVector(), ns3::MinstrelWifiManager::FindRate(), ns3::MinstrelWifiManager::GetDataTxVector(), ns3::MinstrelWifiManager::GetRtsTxVector(), ns3::RraaWifiManager::GetThresholds(), ns3::RrpaaWifiManager::GetThresholds(), ns3::ThompsonSamplingWifiManager::InitializeStation(), ns3::RraaWifiManager::InitThresholds(), ns3::RrpaaWifiManager::InitThresholds(), ns3::MinstrelWifiManager::PrintTable(), ns3::MinstrelWifiManager::RateInit(), and ns3::MinstrelWifiManager::UpdateStats().
|
static |
Get the type ID.
Definition at line 41 of file wifi-remote-station-manager.cc.
References CTS_TO_SELF, DoGetFragmentationThreshold(), DoSetFragmentationThreshold(), m_defaultTxPowerLevel, m_erpProtectionMode, m_htProtectionMode, m_incrRetryCountUnderBa, m_macTxDataFailed, m_macTxFinalDataFailed, m_macTxFinalRtsFailed, m_macTxRtsFailed, m_nonUnicastMode, m_rtsCtsTxDurationThresh, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakeEnumAccessor(), ns3::MakeEnumChecker(), ns3::MakeTimeAccessor(), ns3::MakeTimeChecker(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), ns3::MakeUintegerChecker(), ns3::MakeWifiModeAccessor(), ns3::MakeWifiModeChecker(), ns3::TypeId::OBSOLETE, RTS_CTS, SetMaxSlrc(), SetMaxSsrc(), ns3::TypeId::SetParent(), and SetRtsCtsThreshold().
Referenced by WifiTxopTest::CheckResults().
bool ns3::WifiRemoteStationManager::GetUseNonErpProtection | ( | ) | const |
Return whether the device supports protection of non-ERP stations.
Definition at line 1286 of file wifi-remote-station-manager.cc.
References m_useNonErpProtection.
Referenced by ns3::AarfcdWifiManager::DoGetRtsTxVector(), ns3::AarfWifiManager::DoGetRtsTxVector(), ns3::AmrrWifiManager::DoGetRtsTxVector(), ns3::AparfWifiManager::DoGetRtsTxVector(), ns3::ArfWifiManager::DoGetRtsTxVector(), ns3::CaraWifiManager::DoGetRtsTxVector(), ns3::OnoeWifiManager::DoGetRtsTxVector(), ns3::ParfWifiManager::DoGetRtsTxVector(), ns3::RraaWifiManager::DoGetRtsTxVector(), ns3::RrpaaWifiManager::DoGetRtsTxVector(), and ns3::MinstrelWifiManager::GetRtsTxVector().
bool ns3::WifiRemoteStationManager::GetUseNonHtProtection | ( | ) | const |
Return whether the device supports protection of non-HT stations.
Definition at line 1299 of file wifi-remote-station-manager.cc.
References m_useNonHtProtection.
bool ns3::WifiRemoteStationManager::GetVhtSupported | ( | ) | const |
Return whether the device has VHT capability support enabled on the link this manager is associated with.
Note that this means that this function returns false if this is a 2.4 or 6 GHz link.
Definition at line 274 of file wifi-remote-station-manager.cc.
References ns3::WifiPhy::GetDevice(), ns3::WifiPhy::GetPhyBand(), m_wifiPhy, ns3::WIFI_PHY_BAND_2_4GHZ, and ns3::WIFI_PHY_BAND_6GHZ.
Referenced by ns3::AarfcdWifiManager::DoInitialize(), ns3::AarfWifiManager::DoInitialize(), ns3::AmrrWifiManager::DoInitialize(), ns3::AparfWifiManager::DoInitialize(), ns3::ArfWifiManager::DoInitialize(), ns3::CaraWifiManager::DoInitialize(), ns3::MinstrelHtWifiManager::DoInitialize(), ns3::MinstrelWifiManager::DoInitialize(), ns3::OnoeWifiManager::DoInitialize(), ns3::ParfWifiManager::DoInitialize(), ns3::RraaWifiManager::DoInitialize(), ns3::RrpaaWifiManager::DoInitialize(), ns3::MinstrelHtWifiManager::GetHeGroupId(), ns3::ThompsonSamplingWifiManager::InitializeStation(), ns3::IdealWifiManager::IsCandidateModulationClass(), ns3::IdealWifiManager::IsModulationClassSupported(), and ns3::MinstrelHtWifiManager::RateInit().
|
protected |
Return whether the given station is VHT capable.
station | the station being queried |
Definition at line 2107 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStation::m_state, and ns3::WifiRemoteStationState::m_vhtCapabilities.
bool ns3::WifiRemoteStationManager::GetVhtSupported | ( | Mac48Address | address | ) | const |
Return whether the station supports VHT or not.
address | the address of the station |
Definition at line 2222 of file wifi-remote-station-manager.cc.
bool ns3::WifiRemoteStationManager::IsAssociated | ( | Mac48Address | address | ) | const |
Return whether the station associated.
address | the address of the station |
Definition at line 461 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::GOT_ASSOC_TX_OK, and LookupState().
bool ns3::WifiRemoteStationManager::IsAssocRefused | ( | Mac48Address | address | ) | const |
Return whether we refused an association request from the given station.
address | the address of the station |
Definition at line 509 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::ASSOC_REFUSED, and LookupState().
bool ns3::WifiRemoteStationManager::IsBrandNew | ( | Mac48Address | address | ) | const |
Return whether the station state is brand new.
address | the address of the station |
Definition at line 451 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::BRAND_NEW, and LookupState().
bool ns3::WifiRemoteStationManager::IsInPsMode | ( | const Mac48Address & | address | ) | const |
Return whether the STA is currently in Power Save mode.
address | the address of the station |
Definition at line 565 of file wifi-remote-station-manager.cc.
References LookupState().
bool ns3::WifiRemoteStationManager::IsLastFragment | ( | Ptr< const WifiMpdu > | mpdu, |
uint32_t | fragmentNumber ) |
mpdu | the packet to send |
fragmentNumber | the fragment index of the next fragment to send (starts at zero). |
Definition at line 1418 of file wifi-remote-station-manager.cc.
References GetNFragments(), NS_ASSERT, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
bool ns3::WifiRemoteStationManager::IsWaitAssocTxOk | ( | Mac48Address | address | ) | const |
Return whether we are waiting for an ACK for the association response we sent.
address | the address of the station |
Definition at line 471 of file wifi-remote-station-manager.cc.
References LookupState(), and ns3::WifiRemoteStationState::WAIT_ASSOC_TX_OK.
|
private |
Return the station associated with the given address.
address | the address of the station |
Definition at line 1491 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStation::m_rssiAndUpdateTimePair, ns3::WifiRemoteStation::m_state, NS_ASSERT, NS_LOG_FUNCTION, and ns3::Seconds().
Referenced by GetDataTxVector(), GetMostRecentRssi(), GetMpdusToDropOnTxFailure(), GetRtsTxVector(), NeedFragmentation(), NeedRts(), ReportAmpduTxStatus(), ReportDataFailed(), ReportDataOk(), ReportFinalDataFailed(), ReportFinalRtsFailed(), ReportRtsFailed(), ReportRtsOk(), and ReportRxOk().
|
private |
Return the state of the station associated with the given address.
address | the address of the station |
Definition at line 1453 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::BRAND_NEW, ns3::WifiPhy::GetChannelWidth(), GetDefaultMcs(), GetDefaultMode(), GetGuardInterval(), m_states, m_wifiPhy, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by AddAllSupportedMcs(), AddAllSupportedModes(), AddSupportedErpSlotTime(), AddSupportedMcs(), AddSupportedMode(), AddSupportedPhyPreamble(), GetAssociationId(), GetInfo(), GetQosSupported(), GetShortPreambleSupported(), GetShortSlotTimeSupported(), IsAssociated(), IsAssocRefused(), IsBrandNew(), IsInPsMode(), IsWaitAssocTxOk(), RecordAssocRefused(), RecordDisassociated(), RecordGotAssocTxFailed(), RecordGotAssocTxOk(), RecordWaitAssocTxOk(), RemoveAllSupportedMcs(), and SetPsMode().
bool ns3::WifiRemoteStationManager::NeedCtsToSelf | ( | const WifiTxVector & | txVector | ) |
Return if we need to do CTS-to-self before sending a DATA.
txVector | the TXVECTOR of the packet to be sent |
Definition at line 1222 of file wifi-remote-station-manager.cc.
References CTS_TO_SELF, ns3::WifiTxVector::GetModulationClass(), m_erpProtectionMode, m_htProtectionMode, m_useNonErpProtection, m_useNonHtProtection, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::WIFI_MOD_CLASS_EHT, ns3::WIFI_MOD_CLASS_ERP_OFDM, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HT, and ns3::WIFI_MOD_CLASS_VHT.
mpdu | the MPDU to send |
Definition at line 1305 of file wifi-remote-station-manager.cc.
References DoNeedFragmentation(), GetFragmentationThreshold(), Lookup(), NS_LOG_DEBUG, and NS_LOG_FUNCTION.
bool ns3::WifiRemoteStationManager::NeedRts | ( | const WifiMacHeader & | header, |
const WifiTxParameters & | txParams ) |
header | MAC header of the data frame to send |
txParams | the TX parameters for the data frame to send |
Definition at line 1187 of file wifi-remote-station-manager.cc.
References DoNeedRts(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiTxVector::GetModulationClass(), ns3::WifiTxParameters::GetSize(), ns3::Time::IsStrictlyPositive(), Lookup(), m_erpProtectionMode, m_htProtectionMode, m_rtsCtsThreshold, m_rtsCtsTxDurationThresh, ns3::WifiTxParameters::m_txDuration, ns3::WifiTxParameters::m_txVector, m_useNonErpProtection, m_useNonHtProtection, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, RTS_CTS, ns3::WIFI_MOD_CLASS_EHT, ns3::WIFI_MOD_CLASS_ERP_OFDM, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HT, and ns3::WIFI_MOD_CLASS_VHT.
void ns3::WifiRemoteStationManager::RecordAssocRefused | ( | Mac48Address | address | ) |
Records that association request was refused.
address | the address of the station |
Definition at line 519 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::ASSOC_REFUSED, LookupState(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::RecordDisassociated | ( | Mac48Address | address | ) |
Records that the STA was disassociated.
address | the address of the station |
Definition at line 502 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::DISASSOC, LookupState(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::RecordGotAssocTxFailed | ( | Mac48Address | address | ) |
Records that we missed an ACK for the association response we sent.
address | the address of the station |
Definition at line 495 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::DISASSOC, LookupState(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::RecordGotAssocTxOk | ( | Mac48Address | address | ) |
Records that we got an ACK for the association response we sent.
address | the address of the station |
Definition at line 488 of file wifi-remote-station-manager.cc.
References ns3::WifiRemoteStationState::GOT_ASSOC_TX_OK, LookupState(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::RecordWaitAssocTxOk | ( | Mac48Address | address | ) |
Records that we are waiting for an ACK for the association response we sent.
address | the address of the station |
Definition at line 481 of file wifi-remote-station-manager.cc.
References LookupState(), NS_ASSERT, and ns3::WifiRemoteStationState::WAIT_ASSOC_TX_OK.
void ns3::WifiRemoteStationManager::RemoveAllSupportedMcs | ( | Mac48Address | address | ) |
Invoked in a STA or AP to delete all of the supported MCS by a destination.
address | the address of the station being recorded |
Definition at line 409 of file wifi-remote-station-manager.cc.
References LookupState(), NS_ASSERT, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::ReportAmpduTxStatus | ( | Mac48Address | address, |
uint16_t | nSuccessfulMpdus, | ||
uint16_t | nFailedMpdus, | ||
double | rxSnr, | ||
double | dataSnr, | ||
WifiTxVector | dataTxVector ) |
Typically called per A-MPDU, either when a Block ACK was successfully received or when a BlockAckTimeout has elapsed.
address | the address of the receiver |
nSuccessfulMpdus | number of successfully transmitted MPDUs A value of 0 means that the Block ACK was missed. |
nFailedMpdus | number of unsuccessfuly transmitted MPDUs |
rxSnr | received SNR of the block ack frame itself |
dataSnr | data SNR reported by remote station |
dataTxVector | the TXVECTOR of the MPDUs we sent |
Definition at line 1106 of file wifi-remote-station-manager.cc.
References DoReportAmpduTxStatus(), ns3::WifiTxVector::GetChannelWidth(), ns3::WifiTxVector::GetNss(), GetStaId(), Lookup(), m_macTxDataFailed, NS_ASSERT, and NS_LOG_FUNCTION.
Should be invoked whenever the AckTimeout associated to a transmission attempt expires.
mpdu | the MPDU whose transmission failed |
Definition at line 990 of file wifi-remote-station-manager.cc.
References DoReportDataFailed(), Lookup(), m_macTxDataFailed, m_rtsCtsThreshold, m_slrc, m_ssrc, NS_ASSERT, NS_LOG_FUNCTION, and ns3::QosUtilsMapTidToAc().
void ns3::WifiRemoteStationManager::ReportDataOk | ( | Ptr< const WifiMpdu > | mpdu, |
double | ackSnr, | ||
WifiMode | ackMode, | ||
double | dataSnr, | ||
WifiTxVector | dataTxVector ) |
Should be invoked whenever we receive the ACK associated to a data packet we just sent.
mpdu | the MPDU |
ackSnr | the SNR of the ACK we received |
ackMode | the WifiMode the receiver used to send the ACK |
dataSnr | the SNR of the DATA we sent |
dataTxVector | the TXVECTOR of the DATA we sent |
Definition at line 1025 of file wifi-remote-station-manager.cc.
References DoReportDataOk(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiTxVector::GetChannelWidth(), ns3::WifiTxVector::GetNss(), ns3::WifiMacHeader::GetQosTid(), GetStaId(), ns3::Mac48Address::IsGroup(), ns3::WifiMacHeader::IsQosData(), Lookup(), ns3::WifiRemoteStationState::m_info, m_rtsCtsThreshold, m_slrc, m_ssrc, ns3::WifiRemoteStation::m_state, ns3::WifiRemoteStationInfo::NotifyTxSuccess(), NS_ASSERT, NS_LOG_FUNCTION, and ns3::QosUtilsMapTidToAc().
Should be invoked after calling ReportDataFailed if frames are dropped.
mpdu | the MPDU which was discarded |
Definition at line 1069 of file wifi-remote-station-manager.cc.
References DoReportFinalDataFailed(), Lookup(), ns3::WifiRemoteStationState::m_info, m_macTxFinalDataFailed, m_rtsCtsThreshold, m_slrc, m_ssrc, ns3::WifiRemoteStation::m_state, ns3::WifiRemoteStationInfo::NotifyTxFailed(), NS_ASSERT, NS_LOG_FUNCTION, and ns3::QosUtilsMapTidToAc().
void ns3::WifiRemoteStationManager::ReportFinalRtsFailed | ( | const WifiMacHeader & | header | ) |
Should be invoked after calling ReportRtsFailed if frames are dropped.
header | MAC header of the DATA packet |
Definition at line 1056 of file wifi-remote-station-manager.cc.
References DoReportFinalRtsFailed(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetQosTid(), ns3::Mac48Address::IsGroup(), ns3::WifiMacHeader::IsQosData(), Lookup(), ns3::WifiRemoteStationState::m_info, m_macTxFinalRtsFailed, m_ssrc, ns3::WifiRemoteStation::m_state, ns3::WifiRemoteStationInfo::NotifyTxFailed(), NS_ASSERT, NS_LOG_FUNCTION, and ns3::QosUtilsMapTidToAc().
void ns3::WifiRemoteStationManager::ReportRtsFailed | ( | const WifiMacHeader & | header | ) |
Should be invoked whenever the RtsTimeout associated to a transmission attempt expires.
header | MAC header of the DATA packet |
Definition at line 979 of file wifi-remote-station-manager.cc.
References DoReportRtsFailed(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetQosTid(), ns3::Mac48Address::IsGroup(), ns3::WifiMacHeader::IsQosData(), Lookup(), m_macTxRtsFailed, m_ssrc, NS_ASSERT, NS_LOG_FUNCTION, and ns3::QosUtilsMapTidToAc().
void ns3::WifiRemoteStationManager::ReportRtsOk | ( | const WifiMacHeader & | header, |
double | ctsSnr, | ||
WifiMode | ctsMode, | ||
double | rtsSnr ) |
Should be invoked whenever we receive the CTS associated to an RTS we just sent.
Note that we also get the SNR of the RTS we sent since the receiver put a SnrTag in the CTS.
header | MAC header of the DATA packet |
ctsSnr | the SNR of the CTS we received |
ctsMode | the WifiMode the receiver used to send the CTS |
rtsSnr | the SNR of the RTS we sent |
Definition at line 1010 of file wifi-remote-station-manager.cc.
References DoReportRtsOk(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetQosTid(), ns3::Mac48Address::IsGroup(), ns3::WifiMacHeader::IsQosData(), Lookup(), ns3::WifiRemoteStationState::m_info, m_ssrc, ns3::WifiRemoteStation::m_state, ns3::WifiRemoteStationInfo::NotifyTxSuccess(), NS_ASSERT, NS_LOG_FUNCTION, and ns3::QosUtilsMapTidToAc().
void ns3::WifiRemoteStationManager::ReportRxOk | ( | Mac48Address | address, |
RxSignalInfo | rxSignalInfo, | ||
const WifiTxVector & | txVector ) |
address | remote address |
rxSignalInfo | the info on the received signal ( |
txVector | the TXVECTOR used for the packet received |
Should be invoked whenever a packet is successfully received.
Definition at line 1091 of file wifi-remote-station-manager.cc.
References DoReportRxOk(), ns3::WifiTxVector::GetMode(), GetStaId(), Lookup(), ns3::WifiRemoteStation::m_rssiAndUpdateTimePair, ns3::Simulator::Now(), NS_LOG_FUNCTION, ns3::RxSignalInfo::rssi, and ns3::RxSignalInfo::snr.
void ns3::WifiRemoteStationManager::Reset | ( | ) |
Reset the station, invoked in a STA upon dis-association or in an AP upon reboot.
Definition at line 1815 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::IdealWifiManager::DoCreateStation(), DoDispose(), ns3::IdealWifiManager::DoReportFinalDataFailed(), and ns3::IdealWifiManager::DoReportFinalRtsFailed().
void ns3::WifiRemoteStationManager::SetAssociationId | ( | Mac48Address | remoteAddress, |
uint16_t | aid ) |
Record the AID of a remote station.
Should only be called by APs.
remoteAddress | the MAC address of the remote station |
aid | the Association ID |
Definition at line 1511 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::SetDefaultTxPowerLevel | ( | uint8_t | txPower | ) |
Set the default transmission power level.
txPower | the default transmission power level |
Definition at line 2258 of file wifi-remote-station-manager.cc.
void ns3::WifiRemoteStationManager::SetEmlsrEnabled | ( | const Mac48Address & | from, |
bool | emlsrEnabled ) |
from | the address of the station being recorded |
emlsrEnabled | whether EMLSR mode is enabled for the station on this link |
Definition at line 1525 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::SetFragmentationThreshold | ( | uint32_t | threshold | ) |
Sets a fragmentation threshold.
The method calls a private method DoSetFragmentationThreshold that checks the validity of the value given.
threshold | the fragmentation threshold |
Definition at line 234 of file wifi-remote-station-manager.cc.
References DoSetFragmentationThreshold(), and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::SetLinkId | ( | uint8_t | linkId | ) |
Set the ID of the link this Remote Station Manager is associated with.
linkId | the ID of the link this Remote Station Manager is associated with |
Definition at line 199 of file wifi-remote-station-manager.cc.
References m_linkId, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::SetMaxSlrc | ( | uint32_t | maxSlrc | ) |
Sets the maximum STA long retry count (SLRC).
maxSlrc | the maximum SLRC |
Definition at line 220 of file wifi-remote-station-manager.cc.
References m_maxSlrc, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiRemoteStationManager::SetMaxSsrc | ( | uint32_t | maxSsrc | ) |
Sets the maximum STA short retry count (SSRC).
maxSsrc | the maximum SSRC |
Definition at line 213 of file wifi-remote-station-manager.cc.
References m_maxSsrc, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiRemoteStationManager::SetPsMode | ( | const Mac48Address & | address, |
bool | isInPsMode ) |
Register whether the STA is in Power Save mode or not.
address | the address of the station |
isInPsMode | whether the STA is in PS mode or not |
Definition at line 571 of file wifi-remote-station-manager.cc.
References LookupState().
void ns3::WifiRemoteStationManager::SetQosSupport | ( | Mac48Address | from, |
bool | qosSupported ) |
Records QoS support of the remote station.
from | the address of the station being recorded |
qosSupported | whether the station supports QoS |
Definition at line 1518 of file wifi-remote-station-manager.cc.
References NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::SetRtsCtsThreshold | ( | uint32_t | threshold | ) |
Sets the RTS threshold.
threshold | the RTS threshold |
Definition at line 227 of file wifi-remote-station-manager.cc.
References m_rtsCtsThreshold, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiRemoteStationManager::SetShortPreambleEnabled | ( | bool | enable | ) |
Enable or disable short PHY preambles.
enable | enable or disable short PHY preambles |
Definition at line 241 of file wifi-remote-station-manager.cc.
References m_shortPreambleEnabled, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::SetShortSlotTimeEnabled | ( | bool | enable | ) |
Enable or disable short slot time.
enable | enable or disable short slot time |
Definition at line 248 of file wifi-remote-station-manager.cc.
References m_shortSlotTimeEnabled, and NS_LOG_FUNCTION.
Set up MAC associated with this device since it is the object that knows the full set of timing parameters (e.g.
IFS).
mac | the MAC of this device |
Reimplemented in ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::RraaWifiManager, and ns3::RrpaaWifiManager.
Definition at line 190 of file wifi-remote-station-manager.cc.
References m_wifiMac, and NS_LOG_FUNCTION.
Referenced by ns3::MinstrelHtWifiManager::SetupMac(), ns3::MinstrelWifiManager::SetupMac(), ns3::RraaWifiManager::SetupMac(), and ns3::RrpaaWifiManager::SetupMac().
Set up PHY associated with this device since it is the object that knows the full set of transmit rates that are supported.
phy | the PHY of this device |
Reimplemented in ns3::AparfWifiManager, ns3::IdealWifiManager, ns3::MinstrelHtWifiManager, ns3::MinstrelWifiManager, ns3::ParfWifiManager, ns3::RraaWifiManager, and ns3::RrpaaWifiManager.
Definition at line 178 of file wifi-remote-station-manager.cc.
References m_wifiPhy, and NS_LOG_FUNCTION.
Referenced by ns3::AparfWifiManager::SetupPhy(), ns3::IdealWifiManager::SetupPhy(), ns3::MinstrelHtWifiManager::SetupPhy(), ns3::MinstrelWifiManager::SetupPhy(), ns3::ParfWifiManager::SetupPhy(), ns3::RraaWifiManager::SetupPhy(), and ns3::RrpaaWifiManager::SetupPhy().
void ns3::WifiRemoteStationManager::SetUseNonErpProtection | ( | bool | enable | ) |
Enable or disable protection for non-ERP stations.
enable | enable or disable protection for non-ERP stations |
Definition at line 1279 of file wifi-remote-station-manager.cc.
References m_useNonErpProtection, and NS_LOG_FUNCTION.
void ns3::WifiRemoteStationManager::SetUseNonHtProtection | ( | bool | enable | ) |
Enable or disable protection for non-HT stations.
enable | enable or disable protection for non-HT stations |
Definition at line 1292 of file wifi-remote-station-manager.cc.
References m_useNonHtProtection, and NS_LOG_FUNCTION.
bool ns3::WifiRemoteStationManager::UseLdpcForDestination | ( | Mac48Address | dest | ) | const |
dest | the destination address |
Definition at line 2276 of file wifi-remote-station-manager.cc.
Referenced by GetDataTxVector().
|
private |
basic MCS set
Definition at line 1539 of file wifi-remote-station-manager.h.
|
private |
This member is the list of WifiMode objects that comprise the BSSBasicRateSet parameter.
This list is constructed through calls to WifiRemoteStationManager::AddBasicMode(), and an API that allows external access to it is available through WifiRemoteStationManager::GetNBasicModes() and WifiRemoteStationManager::GetBasicMode(). basic rate set
Definition at line 1538 of file wifi-remote-station-manager.h.
|
private |
Default transmission power level.
Definition at line 1549 of file wifi-remote-station-manager.h.
Referenced by GetDataTxVector(), GetDefaultTxPowerLevel(), GetRtsTxVector(), and GetTypeId().
|
private |
Protection mode for ERP stations when non-ERP stations are detected.
Definition at line 1557 of file wifi-remote-station-manager.h.
Referenced by GetTypeId(), NeedCtsToSelf(), and NeedRts().
|
private |
Current threshold for fragmentation.
Definition at line 1548 of file wifi-remote-station-manager.h.
Referenced by DoGetFragmentationThreshold(), and DoSetFragmentationThreshold().
|
private |
Protection mode for HT stations when non-HT stations are detected.
Definition at line 1560 of file wifi-remote-station-manager.h.
Referenced by GetTypeId(), NeedCtsToSelf(), and NeedRts().
|
protected |
whether to increment the retry count of frames that are part of a Block Ack agreement
Definition at line 1301 of file wifi-remote-station-manager.h.
Referenced by DoIncrementRetryCountOnTxFailure(), and GetTypeId().
|
protected |
the ID of the link this object is associated with
Definition at line 1300 of file wifi-remote-station-manager.h.
Referenced by MldSwapLinksTest::TestRemoteStationManager::GetLinkId(), and SetLinkId().
|
private |
The trace source fired when the transmission of a single data packet has failed.
Definition at line 1572 of file wifi-remote-station-manager.h.
Referenced by GetTypeId(), ReportAmpduTxStatus(), and ReportDataFailed().
|
private |
The trace source fired when the transmission of a data packet has exceeded the maximum number of attempts.
Definition at line 1582 of file wifi-remote-station-manager.h.
Referenced by GetTypeId(), and ReportFinalDataFailed().
|
private |
The trace source fired when the transmission of a RTS has exceeded the maximum number of attempts.
Definition at line 1577 of file wifi-remote-station-manager.h.
Referenced by GetTypeId(), and ReportFinalRtsFailed().
|
private |
The trace source fired when the transmission of a single RTS has failed.
Definition at line 1568 of file wifi-remote-station-manager.h.
Referenced by GetTypeId(), and ReportRtsFailed().
|
private |
Maximum STA long retry count (SLRC)
Definition at line 1545 of file wifi-remote-station-manager.h.
Referenced by SetMaxSlrc().
|
private |
Maximum STA short retry count (SSRC)
Definition at line 1544 of file wifi-remote-station-manager.h.
Referenced by SetMaxSsrc().
|
private |
Transmission mode for non-unicast Data frames.
Definition at line 1550 of file wifi-remote-station-manager.h.
Referenced by GetTypeId().
|
private |
Threshold for RTS/CTS.
Definition at line 1546 of file wifi-remote-station-manager.h.
Referenced by NeedRts(), ReportDataFailed(), ReportDataOk(), ReportFinalDataFailed(), and SetRtsCtsThreshold().
|
private |
TX duration threshold for RTS/CTS.
Definition at line 1547 of file wifi-remote-station-manager.h.
Referenced by GetTypeId(), and NeedRts().
|
private |
flag if short PHY preamble is enabled
Definition at line 1555 of file wifi-remote-station-manager.h.
Referenced by GetShortPreambleEnabled(), and SetShortPreambleEnabled().
|
private |
flag if short slot time is enabled
Definition at line 1556 of file wifi-remote-station-manager.h.
Referenced by GetShortSlotTimeEnabled(), and SetShortSlotTimeEnabled().
|
private |
long retry count per AC
Definition at line 1563 of file wifi-remote-station-manager.h.
Referenced by WifiRemoteStationManager(), ReportDataFailed(), ReportDataOk(), and ReportFinalDataFailed().
|
private |
short retry count per AC
Definition at line 1562 of file wifi-remote-station-manager.h.
Referenced by WifiRemoteStationManager(), ReportDataFailed(), ReportDataOk(), ReportFinalDataFailed(), ReportFinalRtsFailed(), ReportRtsFailed(), and ReportRtsOk().
|
private |
States of known stations.
Definition at line 1541 of file wifi-remote-station-manager.h.
Referenced by GetAffiliatedStaAddress(), GetMldAddress(), and LookupState().
|
private |
Information for each known stations.
Definition at line 1542 of file wifi-remote-station-manager.h.
|
private |
flag if protection for non-ERP stations against ERP transmissions is enabled
Definition at line 1551 of file wifi-remote-station-manager.h.
Referenced by GetUseNonErpProtection(), NeedCtsToSelf(), NeedRts(), and SetUseNonErpProtection().
|
private |
flag if protection for non-HT stations against HT transmissions is enabled
Definition at line 1553 of file wifi-remote-station-manager.h.
Referenced by GetUseNonHtProtection(), NeedCtsToSelf(), NeedRts(), and SetUseNonHtProtection().
This is a pointer to the WifiMac associated with this WifiRemoteStationManager that is set on call to WifiRemoteStationManager::SetupMac().
Through this pointer the station manager can determine MAC characteristics, such as the interframe spaces.
Definition at line 1528 of file wifi-remote-station-manager.h.
Referenced by DoGetMpdusToDropOnTxFailure(), DoIncrementRetryCountOnTxFailure(), GetStaId(), and SetupMac().
This is a pointer to the WifiPhy associated with this WifiRemoteStationManager that is set on call to WifiRemoteStationManager::SetupPhy().
Through this pointer the station manager can determine PHY characteristics, such as the set of all transmission rates that may be supported (the "DeviceRateSet").
Definition at line 1520 of file wifi-remote-station-manager.h.
Referenced by AddAllSupportedMcs(), AddAllSupportedModes(), AdjustTxVectorForIcf(), GetAckTxVector(), GetBlockAckTxVector(), GetControlAnswerMode(), GetCtsToSelfTxVector(), GetCtsTxVector(), GetDataTxVector(), GetEhtSupported(), GetGuardInterval(), GetHeSupported(), GetHtSupported(), GetLdpcSupported(), GetRtsTxVector(), GetShortGuardIntervalSupported(), GetVhtSupported(), LookupState(), and SetupPhy().