802.11 PHY layer model More...
#include "wifi-phy.h"
Public Types | |
typedef std::pair< uint8_t, WifiPhyStandard > | ChannelNumberStandardPair |
A pair of a ChannelNumber and WifiPhyStandard. More... | |
typedef void(* | EndOfHePreambleCallback) (HePreambleParameters params) |
TracedCallback signature for end of HE-SIG-A events. More... | |
typedef std::pair< uint16_t, uint16_t > | FrequencyWidthPair |
A pair of a center Frequency and a ChannelWidth. More... | |
typedef void(* | MonitorSnifferRxCallback) (Ptr< const Packet > packet, uint16_t channelFreqMhz, WifiTxVector txVector, MpduInfo aMpdu, SignalNoiseDbm signalNoise) |
TracedCallback signature for monitor mode receive events. More... | |
typedef void(* | MonitorSnifferTxCallback) (const Ptr< const Packet > packet, uint16_t channelFreqMhz, WifiTxVector txVector, MpduInfo aMpdu) |
TracedCallback signature for monitor mode transmit events. More... | |
Public Member Functions | |
WifiPhy () | |
virtual | ~WifiPhy () |
void | AddSupportedChannelWidth (uint16_t channelwidth) |
virtual int64_t | AssignStreams (int64_t stream) |
Assign a fixed random variable stream number to the random variables used by this model. More... | |
double | CalculateSnr (WifiTxVector txVector, double ber) const |
Time | CalculateTxDuration (uint32_t size, WifiTxVector txVector, uint16_t frequency) |
Time | CalculateTxDuration (uint32_t size, WifiTxVector txVector, uint16_t frequency, MpduType mpdutype, uint8_t incFlag) |
virtual void | ConfigureStandard (WifiPhyStandard standard) |
Configure the PHY-level parameters for different Wi-Fi standard. More... | |
void | ContinueReceiveHeader (Ptr< Event > event) |
Continue receiving the PHY header of a packet (i.e. More... | |
bool | DefineChannelNumber (uint8_t channelNumber, WifiPhyStandard standard, uint16_t frequency, uint16_t channelWidth) |
Add a channel definition to the WifiPhy. More... | |
void | EndReceive (Ptr< Event > event) |
The last bit of the packet has arrived. More... | |
void | EndReceiveInterBss (void) |
For HE receptions only, check and possibly modify the transmit power restriction state at the end of PPDU reception. More... | |
uint8_t | GetBssMembershipSelector (uint8_t selector) const |
The WifiPhy::BssMembershipSelector() method is used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception modes that this WifiPhy(-derived class) can support - a set of WifiMode objects which we call the BssMembershipSelectorSet, and which is stored as WifiPhy::m_bssMembershipSelectorSet. More... | |
double | GetCcaEdThreshold (void) const |
Return the CCA threshold (dBm). More... | |
virtual Ptr< Channel > | GetChannel (void) const =0 |
Return the Channel this WifiPhy is connected to. More... | |
uint8_t | GetChannelNumber (void) const |
Return current channel number. More... | |
Time | GetChannelSwitchDelay (void) const |
uint16_t | GetChannelWidth (void) const |
Time | GetDelayUntilIdle (void) |
Ptr< NetDevice > | GetDevice (void) const |
Return the device this PHY is associated with. More... | |
uint16_t | GetFrequency (void) const |
bool | GetGreenfield (void) const |
Return whether Greenfield is supported. More... | |
Time | GetGuardInterval (void) const |
Time | GetLastRxStartTime (void) const |
Return the start time of the last received packet. More... | |
uint8_t | GetMaxSupportedRxSpatialStreams (void) const |
uint8_t | GetMaxSupportedTxSpatialStreams (void) const |
WifiMode | GetMcs (uint8_t mcs) const |
The WifiPhy::GetMcs() method is used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception MCS indexes that this WifiPhy(-derived class) can support - a set of MCS indexes which we call the DeviceMcsSet, and which is stored as WifiPhy::m_deviceMcsSet. More... | |
Ptr< MobilityModel > | GetMobility (void) const |
Return the mobility model this PHY is associated with. More... | |
WifiMode | GetMode (uint8_t mode) const |
The WifiPhy::GetNModes() and WifiPhy::GetMode() methods are used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception modes that this WifiPhy(-derived class) can support - a set of WifiMode objects which we call the DeviceRateSet, and which is stored as WifiPhy::m_deviceRateSet. More... | |
uint8_t | GetNBssMembershipSelectors (void) const |
The WifiPhy::NBssMembershipSelectors() method is used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception modes that this WifiPhy(-derived class) can support - a set of WifiMode objects which we call the BssMembershipSelectorSet, and which is stored as WifiPhy::m_bssMembershipSelectorSet. More... | |
uint8_t | GetNMcs (void) const |
The WifiPhy::GetNMcs() method is used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception MCS indexes that this WifiPhy(-derived class) can support - a set of MCS indexes which we call the DeviceMcsSet, and which is stored as WifiPhy::m_deviceMcsSet. More... | |
uint8_t | GetNModes (void) const |
The WifiPhy::GetNModes() and WifiPhy::GetMode() methods are used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception modes that this WifiPhy(-derived class) can support - a set of WifiMode objects which we call the DeviceRateSet, and which is stored as WifiPhy::m_deviceRateSet. More... | |
uint8_t | GetNTxPower (void) const |
Return the number of available transmission power levels. More... | |
uint8_t | GetNumberOfAntennas (void) const |
Time | GetPayloadDuration (uint32_t size, WifiTxVector txVector, uint16_t frequency) |
Time | GetPayloadDuration (uint32_t size, WifiTxVector txVector, uint16_t frequency, MpduType mpdutype, uint8_t incFlag) |
double | GetPowerDbm (uint8_t power) const |
Get the power of the given power level in dBm. More... | |
double | GetRxGain (void) const |
Return the reception gain (dB). More... | |
double | GetRxSensitivity (void) const |
Return the receive sensitivity threshold (dBm). More... | |
bool | GetShortGuardInterval (void) const |
Return whether short guard interval is supported. More... | |
bool | GetShortPlcpPreambleSupported (void) const |
Return whether short PLCP preamble is supported. More... | |
WifiPhyStandard | GetStandard (void) const |
Get the configured Wi-Fi standard. More... | |
Ptr< WifiPhyStateHelper > | GetState (void) const |
Return the WifiPhyStateHelper of this PHY. More... | |
std::vector< uint16_t > | GetSupportedChannelWidthSet (void) const |
double | GetTxGain (void) const |
Return the transmission gain (dB). More... | |
double | GetTxPowerEnd (void) const |
Return the maximum available transmission power level (dBm). More... | |
double | GetTxPowerForTransmission (WifiTxVector txVector) const |
Compute the transmit power (in dBm) for the next transmission. More... | |
double | GetTxPowerStart (void) const |
Return the minimum available transmission power level (dBm). More... | |
bool | IsMcsSupported (WifiMode mcs) const |
Check if the given WifiMode is supported by the PHY. More... | |
bool | IsModeSupported (WifiMode mode) const |
Check if the given WifiMode is supported by the PHY. More... | |
bool | IsStateCcaBusy (void) const |
bool | IsStateIdle (void) const |
bool | IsStateOff (void) const |
bool | IsStateRx (void) const |
bool | IsStateSleep (void) const |
bool | IsStateSwitching (void) const |
bool | IsStateTx (void) const |
void | NotifyChannelAccessRequested (void) |
Notify the PHY that an access to the channel was requested. More... | |
void | NotifyEndOfHePreamble (HePreambleParameters params) |
Public method used to fire a EndOfHePreamble trace once both HE SIG fields have been received, as well as training fields. More... | |
void | NotifyMonitorSniffRx (Ptr< const Packet > packet, uint16_t channelFreqMhz, WifiTxVector txVector, SignalNoiseDbm signalNoise, std::vector< bool > statusPerMpdu) |
Public method used to fire a MonitorSniffer trace for a wifi packet being received. More... | |
void | NotifyMonitorSniffTx (Ptr< const Packet > packet, uint16_t channelFreqMhz, WifiTxVector txVector) |
Public method used to fire a MonitorSniffer trace for a wifi packet being transmitted. More... | |
void | NotifyRxBegin (Ptr< const Packet > packet) |
Public method used to fire a PhyRxBegin trace. More... | |
void | NotifyRxDrop (Ptr< const Packet > packet, WifiPhyRxfailureReason reason) |
Public method used to fire a PhyRxDrop trace. More... | |
void | NotifyRxEnd (Ptr< const Packet > packet) |
Public method used to fire a PhyRxEnd trace. More... | |
void | NotifyTxBegin (Ptr< const Packet > packet, double txPowerW) |
Public method used to fire a PhyTxBegin trace. More... | |
void | NotifyTxDrop (Ptr< const Packet > packet) |
Public method used to fire a PhyTxDrop trace. More... | |
void | NotifyTxEnd (Ptr< const Packet > packet) |
Public method used to fire a PhyTxEnd trace. More... | |
void | RegisterListener (WifiPhyListener *listener) |
void | ResetCca (bool powerRestricted, double txPowerMaxSiso=0, double txPowerMaxMimo=0) |
Reset PHY to IDLE, with some potential TX power restrictions for the next transmission. More... | |
void | ResumeFromOff (void) |
Resume from off mode. More... | |
void | ResumeFromSleep (void) |
Resume from sleep mode. More... | |
void | SendPacket (Ptr< const Packet > packet, WifiTxVector txVector) |
void | SetCapabilitiesChangedCallback (Callback< void > callback) |
void | SetCcaEdThreshold (double threshold) |
Sets the CCA threshold (dBm). More... | |
virtual void | SetChannelNumber (uint8_t id) |
Set channel number. More... | |
virtual void | SetChannelWidth (uint16_t channelwidth) |
void | SetDevice (const Ptr< NetDevice > device) |
Sets the device this PHY is associated with. More... | |
void | SetEdThreshold (double threshold) |
Sets the energy detection threshold (dBm). More... | |
void | SetErrorRateModel (const Ptr< ErrorRateModel > rate) |
Sets the error rate model. More... | |
void | SetFrameCaptureModel (const Ptr< FrameCaptureModel > frameCaptureModel) |
Sets the frame capture model. More... | |
virtual void | SetFrequency (uint16_t freq) |
void | SetGreenfield (bool greenfield) |
Enable or disable Greenfield support. More... | |
void | SetGuardInterval (Time guardInterval) |
void | SetMaxSupportedRxSpatialStreams (uint8_t streams) |
void | SetMaxSupportedTxSpatialStreams (uint8_t streams) |
void | SetMobility (const Ptr< MobilityModel > mobility) |
assign a mobility model to this device More... | |
void | SetNTxPower (uint8_t n) |
Sets the number of transmission power levels available between the minimum level and the maximum level. More... | |
void | SetNumberOfAntennas (uint8_t antennas) |
void | SetOffMode (void) |
Put in off mode. More... | |
void | SetPostReceptionErrorModel (const Ptr< ErrorModel > em) |
Attach a receive ErrorModel to the WifiPhy. More... | |
void | SetPreambleDetectionModel (const Ptr< PreambleDetectionModel > preambleDetectionModel) |
Sets the preamble detection model. More... | |
void | SetReceiveErrorCallback (RxErrorCallback callback) |
void | SetReceiveOkCallback (RxOkCallback callback) |
void | SetRxGain (double gain) |
Sets the reception gain (dB). More... | |
void | SetRxNoiseFigure (double noiseFigureDb) |
Sets the RX loss (dB) in the Signal-to-Noise-Ratio due to non-idealities in the receiver. More... | |
void | SetRxSensitivity (double threshold) |
Sets the receive sensitivity threshold (dBm). More... | |
void | SetShortGuardInterval (bool shortGuardInterval) |
Enable or disable support for HT/VHT short guard interval. More... | |
void | SetShortPlcpPreambleSupported (bool preamble) |
Enable or disable short PLCP preamble. More... | |
void | SetSleepMode (void) |
Put in sleep mode. More... | |
void | SetTxGain (double gain) |
Sets the transmission gain (dB). More... | |
void | SetTxPowerEnd (double end) |
Sets the maximum available transmission power level (dBm). More... | |
void | SetTxPowerStart (double start) |
Sets the minimum available transmission power level (dBm). More... | |
void | SetWifiRadioEnergyModel (const Ptr< WifiRadioEnergyModel > wifiRadioEnergyModel) |
Sets the wifi radio energy model. More... | |
void | StartReceiveHeader (Ptr< Event > event, Time rxDuration) |
Start receiving the PHY header of a packet (i.e. More... | |
void | StartReceivePayload (Ptr< Event > event) |
Start receiving the payload of a packet (i.e. More... | |
void | StartReceivePreamble (Ptr< Packet > packet, double rxPowerW, Time rxDuration) |
Start receiving the PHY preamble of a packet (i.e. More... | |
virtual void | StartTx (Ptr< Packet > packet, WifiTxVector txVector, Time txDuration)=0 |
void | UnregisterListener (WifiPhyListener *listener) |
![]() | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose (void) |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator (void) const |
Get an iterator to the Objects aggregated to this one. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized (void) const |
Check if the object has been initialized. More... | |
![]() | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static Time | CalculatePlcpPreambleAndHeaderDuration (WifiTxVector txVector) |
static WifiMode | GetDsssRate11Mbps () |
Return a WifiMode for DSSS at 11Mbps. More... | |
static WifiMode | GetDsssRate1Mbps () |
Return a WifiMode for DSSS at 1Mbps. More... | |
static WifiMode | GetDsssRate2Mbps () |
Return a WifiMode for DSSS at 2Mbps. More... | |
static WifiMode | GetDsssRate5_5Mbps () |
Return a WifiMode for DSSS at 5.5Mbps. More... | |
static WifiMode | GetErpOfdmRate12Mbps () |
Return a WifiMode for ERP-OFDM at 12Mbps. More... | |
static WifiMode | GetErpOfdmRate18Mbps () |
Return a WifiMode for ERP-OFDM at 18Mbps. More... | |
static WifiMode | GetErpOfdmRate24Mbps () |
Return a WifiMode for ERP-OFDM at 24Mbps. More... | |
static WifiMode | GetErpOfdmRate36Mbps () |
Return a WifiMode for ERP-OFDM at 36Mbps. More... | |
static WifiMode | GetErpOfdmRate48Mbps () |
Return a WifiMode for ERP-OFDM at 48Mbps. More... | |
static WifiMode | GetErpOfdmRate54Mbps () |
Return a WifiMode for ERP-OFDM at 54Mbps. More... | |
static WifiMode | GetErpOfdmRate6Mbps () |
Return a WifiMode for ERP-OFDM at 6Mbps. More... | |
static WifiMode | GetErpOfdmRate9Mbps () |
Return a WifiMode for ERP-OFDM at 9Mbps. More... | |
static WifiMode | GetHeMcs0 () |
Return MCS 0 from HE MCS values. More... | |
static WifiMode | GetHeMcs1 () |
Return MCS 1 from HE MCS values. More... | |
static WifiMode | GetHeMcs10 () |
Return MCS 10 from HE MCS values. More... | |
static WifiMode | GetHeMcs11 () |
Return MCS 11 from HE MCS values. More... | |
static WifiMode | GetHeMcs2 () |
Return MCS 2 from HE MCS values. More... | |
static WifiMode | GetHeMcs3 () |
Return MCS 3 from HE MCS values. More... | |
static WifiMode | GetHeMcs4 () |
Return MCS 4 from HE MCS values. More... | |
static WifiMode | GetHeMcs5 () |
Return MCS 5 from HE MCS values. More... | |
static WifiMode | GetHeMcs6 () |
Return MCS 6 from HE MCS values. More... | |
static WifiMode | GetHeMcs7 () |
Return MCS 7 from HE MCS values. More... | |
static WifiMode | GetHeMcs8 () |
Return MCS 8 from HE MCS values. More... | |
static WifiMode | GetHeMcs9 () |
Return MCS 9 from HE MCS values. More... | |
static WifiMode | GetHePlcpHeaderMode () |
static WifiMode | GetHtMcs0 () |
Return MCS 0 from HT MCS values. More... | |
static WifiMode | GetHtMcs1 () |
Return MCS 1 from HT MCS values. More... | |
static WifiMode | GetHtMcs10 () |
Return MCS 10 from HT MCS values. More... | |
static WifiMode | GetHtMcs11 () |
Return MCS 11 from HT MCS values. More... | |
static WifiMode | GetHtMcs12 () |
Return MCS 12 from HT MCS values. More... | |
static WifiMode | GetHtMcs13 () |
Return MCS 13 from HT MCS values. More... | |
static WifiMode | GetHtMcs14 () |
Return MCS 14 from HT MCS values. More... | |
static WifiMode | GetHtMcs15 () |
Return MCS 15 from HT MCS values. More... | |
static WifiMode | GetHtMcs16 () |
Return MCS 16 from HT MCS values. More... | |
static WifiMode | GetHtMcs17 () |
Return MCS 17 from HT MCS values. More... | |
static WifiMode | GetHtMcs18 () |
Return MCS 18 from HT MCS values. More... | |
static WifiMode | GetHtMcs19 () |
Return MCS 19 from HT MCS values. More... | |
static WifiMode | GetHtMcs2 () |
Return MCS 2 from HT MCS values. More... | |
static WifiMode | GetHtMcs20 () |
Return MCS 20 from HT MCS values. More... | |
static WifiMode | GetHtMcs21 () |
Return MCS 21 from HT MCS values. More... | |
static WifiMode | GetHtMcs22 () |
Return MCS 22 from HT MCS values. More... | |
static WifiMode | GetHtMcs23 () |
Return MCS 23 from HT MCS values. More... | |
static WifiMode | GetHtMcs24 () |
Return MCS 24 from HT MCS values. More... | |
static WifiMode | GetHtMcs25 () |
Return MCS 25 from HT MCS values. More... | |
static WifiMode | GetHtMcs26 () |
Return MCS 26 from HT MCS values. More... | |
static WifiMode | GetHtMcs27 () |
Return MCS 27 from HT MCS values. More... | |
static WifiMode | GetHtMcs28 () |
Return MCS 28 from HT MCS values. More... | |
static WifiMode | GetHtMcs29 () |
Return MCS 29 from HT MCS values. More... | |
static WifiMode | GetHtMcs3 () |
Return MCS 3 from HT MCS values. More... | |
static WifiMode | GetHtMcs30 () |
Return MCS 30 from HT MCS values. More... | |
static WifiMode | GetHtMcs31 () |
Return MCS 31 from HT MCS values. More... | |
static WifiMode | GetHtMcs4 () |
Return MCS 4 from HT MCS values. More... | |
static WifiMode | GetHtMcs5 () |
Return MCS 5 from HT MCS values. More... | |
static WifiMode | GetHtMcs6 () |
Return MCS 6 from HT MCS values. More... | |
static WifiMode | GetHtMcs7 () |
Return MCS 7 from HT MCS values. More... | |
static WifiMode | GetHtMcs8 () |
Return MCS 8 from HT MCS values. More... | |
static WifiMode | GetHtMcs9 () |
Return MCS 9 from HT MCS values. More... | |
static WifiMode | GetHtPlcpHeaderMode () |
static WifiMode | GetOfdmRate12Mbps () |
Return a WifiMode for OFDM at 12Mbps. More... | |
static WifiMode | GetOfdmRate12MbpsBW10MHz () |
Return a WifiMode for OFDM at 12Mbps with 10MHz channel spacing. More... | |
static WifiMode | GetOfdmRate12MbpsBW5MHz () |
Return a WifiMode for OFDM at 12Mbps with 5MHz channel spacing. More... | |
static WifiMode | GetOfdmRate13_5MbpsBW5MHz () |
Return a WifiMode for OFDM at 13.5Mbps with 5MHz channel spacing. More... | |
static WifiMode | GetOfdmRate18Mbps () |
Return a WifiMode for OFDM at 18Mbps. More... | |
static WifiMode | GetOfdmRate18MbpsBW10MHz () |
Return a WifiMode for OFDM at 18Mbps with 10MHz channel spacing. More... | |
static WifiMode | GetOfdmRate1_5MbpsBW5MHz () |
Return a WifiMode for OFDM at 1.5Mbps with 5MHz channel spacing. More... | |
static WifiMode | GetOfdmRate24Mbps () |
Return a WifiMode for OFDM at 24Mbps. More... | |
static WifiMode | GetOfdmRate24MbpsBW10MHz () |
Return a WifiMode for OFDM at 24Mbps with 10MHz channel spacing. More... | |
static WifiMode | GetOfdmRate27MbpsBW10MHz () |
Return a WifiMode for OFDM at 27Mbps with 10MHz channel spacing. More... | |
static WifiMode | GetOfdmRate2_25MbpsBW5MHz () |
Return a WifiMode for OFDM at 2.25Mbps with 5MHz channel spacing. More... | |
static WifiMode | GetOfdmRate36Mbps () |
Return a WifiMode for OFDM at 36Mbps. More... | |
static WifiMode | GetOfdmRate3MbpsBW10MHz () |
Return a WifiMode for OFDM at 3Mbps with 10MHz channel spacing. More... | |
static WifiMode | GetOfdmRate3MbpsBW5MHz () |
Return a WifiMode for OFDM at 3Mbps with 5MHz channel spacing. More... | |
static WifiMode | GetOfdmRate48Mbps () |
Return a WifiMode for OFDM at 48Mbps. More... | |
static WifiMode | GetOfdmRate4_5MbpsBW10MHz () |
Return a WifiMode for OFDM at 4.5Mbps with 10MHz channel spacing. More... | |
static WifiMode | GetOfdmRate4_5MbpsBW5MHz () |
Return a WifiMode for OFDM at 4.5Mbps with 5MHz channel spacing. More... | |
static WifiMode | GetOfdmRate54Mbps () |
Return a WifiMode for OFDM at 54Mbps. More... | |
static WifiMode | GetOfdmRate6Mbps () |
Return a WifiMode for OFDM at 6Mbps. More... | |
static WifiMode | GetOfdmRate6MbpsBW10MHz () |
Return a WifiMode for OFDM at 6Mbps with 10MHz channel spacing. More... | |
static WifiMode | GetOfdmRate6MbpsBW5MHz () |
Return a WifiMode for OFDM at 6Mbps with 5MHz channel spacing. More... | |
static WifiMode | GetOfdmRate9Mbps () |
Return a WifiMode for OFDM at 9Mbps. More... | |
static WifiMode | GetOfdmRate9MbpsBW10MHz () |
Return a WifiMode for OFDM at 9Mbps with 10MHz channel spacing. More... | |
static WifiMode | GetOfdmRate9MbpsBW5MHz () |
Return a WifiMode for OFDM at 9Mbps with 5MHz channel spacing. More... | |
static Time | GetPlcpHeaderDuration (WifiTxVector txVector) |
static WifiMode | GetPlcpHeaderMode (WifiTxVector txVector) |
static Time | GetPlcpHtSigHeaderDuration (WifiPreamble preamble) |
static Time | GetPlcpPreambleDuration (WifiTxVector txVector) |
static Time | GetPlcpSigA1Duration (WifiPreamble preamble) |
static Time | GetPlcpSigA2Duration (WifiPreamble preamble) |
static Time | GetPlcpSigBDuration (WifiPreamble preamble) |
static Time | GetPlcpTrainingSymbolDuration (WifiTxVector txVector) |
static Time | GetPreambleDetectionDuration (void) |
static Time | GetStartOfPacketDuration (WifiTxVector txVector) |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
static WifiMode | GetVhtMcs0 () |
Return MCS 0 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs1 () |
Return MCS 1 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs2 () |
Return MCS 2 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs3 () |
Return MCS 3 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs4 () |
Return MCS 4 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs5 () |
Return MCS 5 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs6 () |
Return MCS 6 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs7 () |
Return MCS 7 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs8 () |
Return MCS 8 from VHT MCS values. More... | |
static WifiMode | GetVhtMcs9 () |
Return MCS 9 from VHT MCS values. More... | |
static WifiMode | GetVhtPlcpHeaderMode () |
![]() | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Protected Member Functions | |
bool | DoChannelSwitch (uint8_t id) |
The default implementation does nothing and returns true. More... | |
virtual void | DoDispose (void) |
Destructor implementation. More... | |
bool | DoFrequencySwitch (uint16_t frequency) |
The default implementation does nothing and returns true. More... | |
virtual void | DoInitialize (void) |
Initialize() implementation. More... | |
void | SwitchMaybeToCcaBusy (void) |
Check if Phy state should move to CCA busy state based on current state of interference tracker. More... | |
![]() | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | NotifyNewAggregate (void) |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Protected Attributes | |
EventId | m_endPlcpRxEvent |
the end of PLCP receive event More... | |
EventId | m_endPreambleDetectionEvent |
the end of preamble detection event More... | |
EventId | m_endRxEvent |
the end of receive event More... | |
InterferenceHelper | m_interference |
Pointer to InterferenceHelper. More... | |
Ptr< UniformRandomVariable > | m_random |
Provides uniform random variables. More... | |
uint32_t | m_rxMpduReferenceNumber |
A-MPDU reference number to identify all received subframes belonging to the same received A-MPDU. More... | |
Ptr< WifiPhyStateHelper > | m_state |
Pointer to WifiPhyStateHelper. More... | |
uint32_t | m_txMpduReferenceNumber |
A-MPDU reference number to identify all transmitted subframes belonging to the same received A-MPDU. More... | |
Private Types | |
typedef std::map< ChannelNumberStandardPair, FrequencyWidthPair > | ChannelToFrequencyWidthMap |
channel to frequency width map typedef More... | |
Private Member Functions | |
void | AbortCurrentReception (WifiPhyRxfailureReason reason) |
Due to newly arrived signal, the current reception cannot be continued and has to be aborted. More... | |
void | Configure80211_10Mhz (void) |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11a standard with 10MHz channel spacing. More... | |
void | Configure80211_5Mhz () |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11a standard with 5MHz channel spacing. More... | |
void | Configure80211a (void) |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11a standard. More... | |
void | Configure80211ac (void) |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11ac standard. More... | |
void | Configure80211ax (void) |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11ax standard. More... | |
void | Configure80211b (void) |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11b standard. More... | |
void | Configure80211g (void) |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11g standard. More... | |
void | Configure80211n (void) |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11n standard. More... | |
void | ConfigureChannelForStandard (WifiPhyStandard standard) |
Configure the PHY-level parameters for different Wi-Fi standard. More... | |
void | ConfigureDefaultsForStandard (WifiPhyStandard standard) |
Configure the PHY-level parameters for different Wi-Fi standard. More... | |
void | ConfigureHolland (void) |
Configure WifiPhy with appropriate channel frequency and supported rates for holland. More... | |
void | ConfigureHtDeviceMcsSet (void) |
Configure the device Mcs set with the appropriate HtMcs modes for the number of available transmit spatial streams. More... | |
uint8_t | FindChannelNumberForFrequencyWidth (uint16_t frequency, uint16_t width) const |
Look for channel number matching the frequency and width. More... | |
FrequencyWidthPair | GetFrequencyWidthForChannelNumberStandard (uint8_t channelNumber, WifiPhyStandard standard) const |
Lookup frequency/width pair for channelNumber/standard pair. More... | |
std::pair< bool, SignalNoiseDbm > | GetReceptionStatus (Ptr< const Packet > mpdu, Ptr< Event > event, Time relativeMpduStart, Time mpduDuration) |
Get the reception status for the provided MPDU and notify. More... | |
void | InitializeFrequencyChannelNumber (void) |
post-construction setting of frequency and/or channel number More... | |
void | MaybeCcaBusyDuration (void) |
Eventually switch to CCA busy. More... | |
void | StartRx (Ptr< Event > event, double rxPowerW, Time rxDuration) |
Starting receiving the packet after having detected the medium is idle or after a reception switch. More... | |
Private Attributes | |
std::vector< uint8_t > | m_bssMembershipSelectorSet |
the BSS membership selector set More... | |
Callback< void > | m_capabilitiesChangedCallback |
Callback when PHY capabilities changed. More... | |
double | m_ccaEdThresholdW |
Clear channel assessment (CCA) threshold in watts. More... | |
bool | m_channelAccessRequested |
uint16_t | m_channelCenterFrequency |
Center frequency in MHz. More... | |
uint8_t | m_channelNumber |
Operating channel number. More... | |
Time | m_channelSwitchDelay |
Time required to switch between channel. More... | |
uint16_t | m_channelWidth |
Channel width. More... | |
Ptr< Event > | m_currentEvent |
Hold the current event. More... | |
Ptr< NetDevice > | m_device |
Pointer to the device. More... | |
WifiModeList | m_deviceMcsSet |
the device MCS set More... | |
WifiModeList | m_deviceRateSet |
This vector holds the set of transmission modes that this WifiPhy(-derived class) can support. More... | |
Ptr< FrameCaptureModel > | m_frameCaptureModel |
Frame capture model. More... | |
bool | m_frequencyChannelNumberInitialized |
Store initialization state. More... | |
bool | m_greenfield |
Flag if GreenField format is supported (deprecated) More... | |
Time | m_guardInterval |
Supported HE guard interval (deprecated) More... | |
uint8_t | m_initialChannelNumber |
Initial channel number. More... | |
uint16_t | m_initialFrequency |
Store frequency until initialization. More... | |
bool | m_isConstructed |
true when ready to set frequency More... | |
Ptr< MobilityModel > | m_mobility |
Pointer to the mobility model. More... | |
uint8_t | m_nTxPower |
Number of available transmission power levels. More... | |
uint8_t | m_numberOfAntennas |
Number of transmitters. More... | |
TracedCallback< HePreambleParameters > | m_phyEndOfHePreambleTrace |
A trace source that indiates the end of both HE SIG fields as well as training fields for received 802.11ax packets. More... | |
TracedCallback< Ptr< const Packet >, uint16_t, WifiTxVector, MpduInfo, SignalNoiseDbm > | m_phyMonitorSniffRxTrace |
A trace source that emulates a wifi device in monitor mode sniffing a packet being received. More... | |
TracedCallback< Ptr< const Packet >, uint16_t, WifiTxVector, MpduInfo > | m_phyMonitorSniffTxTrace |
A trace source that emulates a wifi device in monitor mode sniffing a packet being transmitted. More... | |
TracedCallback< Ptr< const Packet > > | m_phyRxBeginTrace |
The trace source fired when a packet begins the reception process from the medium. More... | |
TracedCallback< Ptr< const Packet >, WifiPhyRxfailureReason > | m_phyRxDropTrace |
The trace source fired when the phy layer drops a packet it has received. More... | |
TracedCallback< Ptr< const Packet > > | m_phyRxEndTrace |
The trace source fired when a packet ends the reception process from the medium. More... | |
TracedCallback< Ptr< const Packet >, double > | m_phyTxBeginTrace |
The trace source fired when a packet begins the transmission process on the medium. More... | |
TracedCallback< Ptr< const Packet > > | m_phyTxDropTrace |
The trace source fired when the phy layer drops a packet as it tries to transmit it. More... | |
TracedCallback< Ptr< const Packet > > | m_phyTxEndTrace |
The trace source fired when a packet ends the transmission process on the medium. More... | |
Ptr< ErrorModel > | m_postReceptionErrorModel |
Error model for receive packet events. More... | |
bool | m_powerRestricted |
Flag whether transmit power is retricted by OBSS PD SR. More... | |
Ptr< PreambleDetectionModel > | m_preambleDetectionModel |
Preamble detection model. More... | |
double | m_rxGainDb |
Reception gain (dB) More... | |
double | m_rxSensitivityW |
Receive sensitivity threshold in watts. More... | |
uint8_t | m_rxSpatialStreams |
Number of supported RX spatial streams. More... | |
bool | m_shortGuardInterval |
Flag if HT/VHT short guard interval is supported (deprecated) More... | |
bool | m_shortPreamble |
Flag if short PLCP preamble is supported. More... | |
WifiPhyStandard | m_standard |
WifiPhyStandard. More... | |
std::vector< uint16_t > | m_supportedChannelWidthSet |
Supported channel width. More... | |
Time | m_timeLastPreambleDetected |
Record the time the last preamble was detected. More... | |
double | m_totalAmpduNumSymbols |
Number of symbols previously transmitted for the MPDUs in an A-MPDU, used for the computation of the number of symbols needed for the last MPDU in the A-MPDU. More... | |
uint32_t | m_totalAmpduSize |
Total size of the previously transmitted MPDUs in an A-MPDU, used for the computation of the number of symbols needed for the last MPDU in the A-MPDU. More... | |
double | m_txGainDb |
Transmission gain (dB) More... | |
double | m_txPowerBaseDbm |
Minimum transmission power (dBm) More... | |
double | m_txPowerEndDbm |
Maximum transmission power (dBm) More... | |
double | m_txPowerMaxMimo |
MIMO maximum transmit power due to OBSS PD SR power restriction. More... | |
double | m_txPowerMaxSiso |
SISO maximum transmit power due to OBSS PD SR power restriction. More... | |
uint8_t | m_txSpatialStreams |
Number of supported TX spatial streams. More... | |
Ptr< WifiRadioEnergyModel > | m_wifiRadioEnergyModel |
Wifi radio energy model. More... | |
Static Private Attributes | |
static ChannelToFrequencyWidthMap | m_channelToFrequencyWidth |
the channel to frequency width map More... | |
Additional Inherited Members | |
![]() | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
802.11 PHY layer model
ns3::WifiPhy is accessible through the following paths with Config::Set and Config::Connect:
Size of this type is 672 bytes (on a 64-bit architecture).
Definition at line 89 of file wifi-phy.h.
typedef std::pair<uint8_t, WifiPhyStandard> ns3::WifiPhy::ChannelNumberStandardPair |
A pair of a ChannelNumber and WifiPhyStandard.
Definition at line 547 of file wifi-phy.h.
|
private |
channel to frequency width map typedef
Definition at line 1905 of file wifi-phy.h.
typedef void(* ns3::WifiPhy::EndOfHePreambleCallback) (HePreambleParameters params) |
TracedCallback signature for end of HE-SIG-A events.
params | the HE preamble parameters |
Definition at line 1245 of file wifi-phy.h.
typedef std::pair<uint16_t, uint16_t> ns3::WifiPhy::FrequencyWidthPair |
A pair of a center Frequency and a ChannelWidth.
Definition at line 551 of file wifi-phy.h.
typedef void(* ns3::WifiPhy::MonitorSnifferRxCallback) (Ptr< const Packet > packet, uint16_t channelFreqMhz, WifiTxVector txVector, MpduInfo aMpdu, SignalNoiseDbm signalNoise) |
TracedCallback signature for monitor mode receive events.
packet | the packet being received |
channelFreqMhz | the frequency in MHz at which the packet is received. Note that in real devices this is normally the frequency to which the receiver is tuned, and this can be different than the frequency at which the packet was originally transmitted. This is because it is possible to have the receiver tuned on a given channel and still to be able to receive packets on a nearby channel. |
txVector | the TXVECTOR that holds rx parameters |
aMpdu | the type of the packet (0 is not A-MPDU, 1 is a MPDU that is part of an A-MPDU and 2 is the last MPDU in an A-MPDU) and the A-MPDU reference number (must be a different value for each A-MPDU but the same for each subframe within one A-MPDU) |
signalNoise | signal power and noise power in dBm |
Definition at line 1193 of file wifi-phy.h.
typedef void(* ns3::WifiPhy::MonitorSnifferTxCallback) (const Ptr< const Packet > packet, uint16_t channelFreqMhz, WifiTxVector txVector, MpduInfo aMpdu) |
TracedCallback signature for monitor mode transmit events.
packet | the packet being transmitted |
channelFreqMhz | the frequency in MHz at which the packet is transmitted. |
txVector | the TXVECTOR that holds tx parameters |
aMpdu | the type of the packet (0 is not A-MPDU, 1 is a MPDU that is part of an A-MPDU and 2 is the last MPDU in an A-MPDU) and the A-MPDU reference number (must be a different value for each A-MPDU but the same for each subframe within one A-MPDU) |
Definition at line 1227 of file wifi-phy.h.
ns3::WifiPhy::WifiPhy | ( | ) |
Definition at line 380 of file wifi-phy.cc.
References m_random, m_state, and NS_LOG_FUNCTION.
|
virtual |
Definition at line 408 of file wifi-phy.cc.
References NS_LOG_FUNCTION.
|
private |
Due to newly arrived signal, the current reception cannot be continued and has to be aborted.
reason | the reason the reception is aborted |
Definition at line 4167 of file wifi-phy.cc.
References ns3::EventId::Cancel(), ns3::EventId::IsRunning(), m_currentEvent, m_endPlcpRxEvent, m_endPreambleDetectionEvent, m_endRxEvent, m_interference, m_state, NotifyRxDrop(), ns3::InterferenceHelper::NotifyRxEnd(), NS_LOG_FUNCTION, and ns3::OBSS_PD_CCA_RESET.
Referenced by ContinueReceiveHeader(), ResetCca(), and StartReceivePreamble().
void ns3::WifiPhy::AddSupportedChannelWidth | ( | uint16_t | channelwidth | ) |
channelwidth | channel width (in MHz) to support |
Definition at line 1426 of file wifi-phy.cc.
References m_supportedChannelWidthSet, and NS_LOG_FUNCTION.
Referenced by SetChannelWidth().
|
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 |
Definition at line 4259 of file wifi-phy.cc.
References m_random, NS_LOG_FUNCTION, and ns3::RandomVariableStream::SetStream().
Referenced by TestThresholdPreambleDetectionWithoutFrameCapture::DoRun(), TestThresholdPreambleDetectionWithFrameCapture::DoRun(), TestSimpleFrameCaptureModel::DoRun(), TestPhyHeadersReception::DoRun(), and TestAmpduReception::DoRun().
|
static |
txVector | the transmission parameters used for this packet |
Definition at line 2321 of file wifi-phy.cc.
References GetPlcpHeaderDuration(), GetPlcpHtSigHeaderDuration(), GetPlcpPreambleDuration(), GetPlcpSigA1Duration(), GetPlcpSigA2Duration(), GetPlcpSigBDuration(), GetPlcpTrainingSymbolDuration(), and ns3::WifiTxVector::GetPreambleType().
Referenced by CalculateTxDuration(), ContinueReceiveHeader(), SendPacket(), StartReceiveHeader(), and StartReceivePayload().
double ns3::WifiPhy::CalculateSnr | ( | WifiTxVector | txVector, |
double | ber | ||
) | const |
txVector | the transmission vector |
ber | the probability of bit error rate |
Definition at line 818 of file wifi-phy.cc.
References ns3::InterferenceHelper::GetErrorRateModel(), and m_interference.
Time ns3::WifiPhy::CalculateTxDuration | ( | uint32_t | size, |
WifiTxVector | txVector, | ||
uint16_t | frequency | ||
) |
size | the number of bytes in the packet to send |
txVector | the TXVECTOR used for the transmission of this packet |
frequency | the channel center frequency (MHz) |
Definition at line 2344 of file wifi-phy.cc.
References ns3::NORMAL_MPDU.
Referenced by ns3::MacLow::CalculateOverallTxTime(), ns3::MacLow::CalculateOverheadTxTime(), ns3::MacLow::CalculateTransmissionTime(), ns3::MacLow::CanTransmitNextCfFrame(), ns3::MacLow::ForwardDown(), ns3::MacLow::GetAckDuration(), ns3::MacLow::GetBlockAckDuration(), ns3::MacLow::GetCtsDuration(), ns3::MacLow::IsWithinSizeAndTimeLimits(), SpectrumWifiPhyBasicTest::MakeSignal(), WifiPhyThresholdsTest::MakeWifiSignal(), ns3::MacLow::NotifyNav(), TestAmpduReception::SendAmpduWithThreeMpdus(), ns3::MacLow::SendCtsToSelf(), ns3::MacLow::SendDataAfterCts(), ns3::MacLow::SendDataPacket(), TestThresholdPreambleDetectionWithoutFrameCapture::SendPacket(), SendPacket(), TestThresholdPreambleDetectionWithFrameCapture::SendPacket(), TestSimpleFrameCaptureModel::SendPacket(), TestPhyHeadersReception::SendPacket(), ns3::MacLow::SendRtsForPacket(), and ns3::MacLow::StartDataTxTimers().
Time ns3::WifiPhy::CalculateTxDuration | ( | uint32_t | size, |
WifiTxVector | txVector, | ||
uint16_t | frequency, | ||
MpduType | mpdutype, | ||
uint8_t | incFlag | ||
) |
size | the number of bytes in the packet to send |
txVector | the TXVECTOR used for the transmission of this packet |
frequency | the channel center frequency (MHz) |
mpdutype | the type of the MPDU as defined in WifiPhy::MpduType. |
incFlag | this flag is used to indicate that the static variables need to be update or not. This function is called a couple of times for the same packet so static variables should not be increased each time. |
Definition at line 2335 of file wifi-phy.cc.
References CalculatePlcpPreambleAndHeaderDuration(), and GetPayloadDuration().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11a standard with 10MHz channel spacing.
Definition at line 945 of file wifi-phy.cc.
References GetOfdmRate12MbpsBW10MHz(), GetOfdmRate18MbpsBW10MHz(), GetOfdmRate24MbpsBW10MHz(), GetOfdmRate27MbpsBW10MHz(), GetOfdmRate3MbpsBW10MHz(), GetOfdmRate4_5MbpsBW10MHz(), GetOfdmRate6MbpsBW10MHz(), GetOfdmRate9MbpsBW10MHz(), m_deviceRateSet, and NS_LOG_FUNCTION.
Referenced by ConfigureStandard().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11a standard with 5MHz channel spacing.
Definition at line 960 of file wifi-phy.cc.
References GetOfdmRate12MbpsBW5MHz(), GetOfdmRate13_5MbpsBW5MHz(), GetOfdmRate1_5MbpsBW5MHz(), GetOfdmRate2_25MbpsBW5MHz(), GetOfdmRate3MbpsBW5MHz(), GetOfdmRate4_5MbpsBW5MHz(), GetOfdmRate6MbpsBW5MHz(), GetOfdmRate9MbpsBW5MHz(), m_deviceRateSet, and NS_LOG_FUNCTION.
Referenced by ConfigureStandard().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11a standard.
Definition at line 903 of file wifi-phy.cc.
References GetOfdmRate12Mbps(), GetOfdmRate18Mbps(), GetOfdmRate24Mbps(), GetOfdmRate36Mbps(), GetOfdmRate48Mbps(), GetOfdmRate54Mbps(), GetOfdmRate6Mbps(), GetOfdmRate9Mbps(), m_deviceRateSet, and NS_LOG_FUNCTION.
Referenced by Configure80211n(), and ConfigureStandard().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11ac standard.
Definition at line 1073 of file wifi-phy.cc.
References Configure80211n(), GetVhtMcs0(), GetVhtMcs1(), GetVhtMcs2(), GetVhtMcs3(), GetVhtMcs4(), GetVhtMcs5(), GetVhtMcs6(), GetVhtMcs7(), GetVhtMcs8(), GetVhtMcs9(), m_bssMembershipSelectorSet, m_deviceMcsSet, NS_LOG_FUNCTION, and VHT_PHY.
Referenced by Configure80211ax(), and ConfigureStandard().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11ax standard.
Definition at line 1093 of file wifi-phy.cc.
References Configure80211ac(), Configure80211n(), GetFrequency(), GetHeMcs0(), GetHeMcs1(), GetHeMcs10(), GetHeMcs11(), GetHeMcs2(), GetHeMcs3(), GetHeMcs4(), GetHeMcs5(), GetHeMcs6(), GetHeMcs7(), GetHeMcs8(), GetHeMcs9(), HE_PHY, ns3::Is5Ghz(), m_bssMembershipSelectorSet, m_deviceMcsSet, and NS_LOG_FUNCTION.
Referenced by ConfigureStandard().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11b standard.
Definition at line 918 of file wifi-phy.cc.
References GetDsssRate11Mbps(), GetDsssRate1Mbps(), GetDsssRate2Mbps(), GetDsssRate5_5Mbps(), m_deviceRateSet, and NS_LOG_FUNCTION.
Referenced by Configure80211g(), Configure80211n(), and ConfigureStandard().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11g standard.
Definition at line 929 of file wifi-phy.cc.
References Configure80211b(), GetErpOfdmRate12Mbps(), GetErpOfdmRate18Mbps(), GetErpOfdmRate24Mbps(), GetErpOfdmRate36Mbps(), GetErpOfdmRate48Mbps(), GetErpOfdmRate54Mbps(), GetErpOfdmRate6Mbps(), GetErpOfdmRate9Mbps(), m_deviceRateSet, and NS_LOG_FUNCTION.
Referenced by Configure80211n(), and ConfigureStandard().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for 802.11n standard.
Definition at line 1056 of file wifi-phy.cc.
References Configure80211a(), Configure80211b(), Configure80211g(), ConfigureHtDeviceMcsSet(), GetFrequency(), HT_PHY, ns3::Is2_4Ghz(), ns3::Is5Ghz(), m_bssMembershipSelectorSet, and NS_LOG_FUNCTION.
Referenced by Configure80211ac(), Configure80211ax(), and ConfigureStandard().
|
private |
Configure the PHY-level parameters for different Wi-Fi standard.
This method is called when the Frequency or ChannelNumber attributes are set by the user. If the Frequency or ChannelNumber are valid for the standard, they are used instead.
standard | the Wi-Fi standard |
Definition at line 1167 of file wifi-phy.cc.
References f(), FindChannelNumberForFrequencyWidth(), GetChannelNumber(), GetChannelWidth(), GetFrequency(), GetFrequencyWidthForChannelNumberStandard(), NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_FUNCTION, SetChannelNumber(), SetChannelWidth(), SetFrequency(), and ns3::WIFI_PHY_STANDARD_UNSPECIFIED.
Referenced by ConfigureStandard().
|
private |
Configure the PHY-level parameters for different Wi-Fi standard.
This method is called when defaults for each standard must be selected.
standard | the Wi-Fi standard |
Definition at line 824 of file wifi-phy.cc.
References GetChannelNumber(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_WARN, SetChannelWidth(), SetFrequency(), ns3::WIFI_PHY_STANDARD_80211_10MHZ, ns3::WIFI_PHY_STANDARD_80211_5MHZ, ns3::WIFI_PHY_STANDARD_80211a, ns3::WIFI_PHY_STANDARD_80211ac, ns3::WIFI_PHY_STANDARD_80211ax_2_4GHZ, ns3::WIFI_PHY_STANDARD_80211ax_5GHZ, ns3::WIFI_PHY_STANDARD_80211b, ns3::WIFI_PHY_STANDARD_80211g, ns3::WIFI_PHY_STANDARD_80211n_2_4GHZ, ns3::WIFI_PHY_STANDARD_80211n_5GHZ, ns3::WIFI_PHY_STANDARD_holland, and ns3::WIFI_PHY_STANDARD_UNSPECIFIED.
Referenced by ConfigureStandard().
|
private |
Configure WifiPhy with appropriate channel frequency and supported rates for holland.
Definition at line 975 of file wifi-phy.cc.
References GetOfdmRate12Mbps(), GetOfdmRate18Mbps(), GetOfdmRate36Mbps(), GetOfdmRate54Mbps(), GetOfdmRate6Mbps(), m_deviceRateSet, and NS_LOG_FUNCTION.
Referenced by ConfigureStandard().
|
private |
Configure the device Mcs set with the appropriate HtMcs modes for the number of available transmit spatial streams.
Definition at line 987 of file wifi-phy.cc.
References GetHtMcs0(), GetHtMcs1(), GetHtMcs10(), GetHtMcs11(), GetHtMcs12(), GetHtMcs13(), GetHtMcs14(), GetHtMcs15(), GetHtMcs16(), GetHtMcs17(), GetHtMcs18(), GetHtMcs19(), GetHtMcs2(), GetHtMcs20(), GetHtMcs21(), GetHtMcs22(), GetHtMcs23(), GetHtMcs24(), GetHtMcs25(), GetHtMcs26(), GetHtMcs27(), GetHtMcs28(), GetHtMcs29(), GetHtMcs3(), GetHtMcs30(), GetHtMcs31(), GetHtMcs4(), GetHtMcs5(), GetHtMcs6(), GetHtMcs7(), GetHtMcs8(), GetHtMcs9(), GetMaxSupportedTxSpatialStreams(), HT_PHY, m_bssMembershipSelectorSet, m_deviceMcsSet, NS_LOG_FUNCTION, and ns3::WIFI_MOD_CLASS_HT.
Referenced by Configure80211n(), and SetMaxSupportedTxSpatialStreams().
|
virtual |
Configure the PHY-level parameters for different Wi-Fi standard.
standard | the Wi-Fi standard |
Reimplemented in ns3::SpectrumWifiPhy.
Definition at line 1217 of file wifi-phy.cc.
References Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211ac(), Configure80211ax(), Configure80211b(), Configure80211g(), Configure80211n(), ConfigureChannelForStandard(), ConfigureDefaultsForStandard(), ConfigureHolland(), GetChannelNumber(), GetFrequency(), InitializeFrequencyChannelNumber(), m_frequencyChannelNumberInitialized, m_isConstructed, m_standard, NS_ASSERT, NS_LOG_FUNCTION, ns3::WIFI_PHY_STANDARD_80211_10MHZ, ns3::WIFI_PHY_STANDARD_80211_5MHZ, ns3::WIFI_PHY_STANDARD_80211a, ns3::WIFI_PHY_STANDARD_80211ac, ns3::WIFI_PHY_STANDARD_80211ax_2_4GHZ, ns3::WIFI_PHY_STANDARD_80211ax_5GHZ, ns3::WIFI_PHY_STANDARD_80211b, ns3::WIFI_PHY_STANDARD_80211g, ns3::WIFI_PHY_STANDARD_80211n_2_4GHZ, ns3::WIFI_PHY_STANDARD_80211n_5GHZ, ns3::WIFI_PHY_STANDARD_holland, and ns3::WIFI_PHY_STANDARD_UNSPECIFIED.
Referenced by ns3::SpectrumWifiPhy::ConfigureStandard(), AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), Bug2831TestCase::DoRun(), HeAggregationTest::DoRunSubTest(), PsrExperiment::Run(), InterferenceExperiment::Run(), and CollisionExperiment::Run().
Continue receiving the PHY header of a packet (i.e.
after the end of receiving the legacy header part).
event | the corresponding event of the first time the packet arrives (also storing packet and TxVector information) |
Definition at line 2720 of file wifi-phy.cc.
References AbortCurrentReception(), ns3::InterferenceHelper::CalculateLegacyPhyHeaderSnrPer(), CalculatePlcpPreambleAndHeaderDuration(), GetPlcpHeaderDuration(), GetPlcpPreambleDuration(), ns3::UniformRandomVariable::GetValue(), ns3::EventId::IsExpired(), IsStateRx(), ns3::L_SIG_FAILURE, m_endPlcpRxEvent, m_interference, m_random, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Simulator::Schedule(), and StartReceivePayload().
Referenced by StartReceiveHeader().
bool ns3::WifiPhy::DefineChannelNumber | ( | uint8_t | channelNumber, |
WifiPhyStandard | standard, | ||
uint16_t | frequency, | ||
uint16_t | channelWidth | ||
) |
Add a channel definition to the WifiPhy.
The pair (channelNumber, WifiPhyStandard) may then be used to lookup a pair (frequency, channelWidth).
If the channel is not already defined for the standard, the method should return true; otherwise false.
channelNumber | the channel number to define |
standard | the applicable WifiPhyStandard |
frequency | the frequency (MHz) |
channelWidth | the channel width (MHz) |
Definition at line 1122 of file wifi-phy.cc.
References f(), m_channelToFrequencyWidth, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by SetChannelFrequencyTest::DoRun().
|
protected |
The default implementation does nothing and returns true.
This method is typically called internally by SetChannelNumber ().
Perform any actions necessary when user changes channel number
id | channel number to try to switch to |
Definition at line 1515 of file wifi-phy.cc.
References ns3::EventId::Cancel(), CCA_BUSY, ns3::InterferenceHelper::EraseEvents(), GetChannelNumber(), GetChannelSwitchDelay(), GetDelayUntilIdle(), IDLE, ns3::Object::IsInitialized(), ns3::EventId::IsRunning(), IsStateSwitching(), m_channelAccessRequested, m_endPlcpRxEvent, m_endPreambleDetectionEvent, m_endRxEvent, m_interference, m_powerRestricted, m_state, NS_ASSERT, NS_LOG_DEBUG, RX, ns3::Simulator::Schedule(), SetChannelNumber(), SLEEP, and TX.
Referenced by SetChannelNumber().
|
protectedvirtual |
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.
Reimplemented in ns3::SpectrumWifiPhy, and ns3::YansWifiPhy.
Definition at line 414 of file wifi-phy.cc.
References ns3::EventId::Cancel(), m_device, m_deviceMcsSet, m_deviceRateSet, m_endPlcpRxEvent, m_endPreambleDetectionEvent, m_endRxEvent, m_mobility, m_postReceptionErrorModel, m_state, m_wifiRadioEnergyModel, and NS_LOG_FUNCTION.
Referenced by ns3::YansWifiPhy::DoDispose(), and ns3::SpectrumWifiPhy::DoDispose().
|
protected |
The default implementation does nothing and returns true.
This method is typically called internally by SetFrequency ().
Perform any actions necessary when user changes frequency
frequency | frequency to try to switch to |
Definition at line 1575 of file wifi-phy.cc.
References ns3::EventId::Cancel(), CCA_BUSY, ns3::InterferenceHelper::EraseEvents(), GetChannelSwitchDelay(), GetDelayUntilIdle(), GetFrequency(), IDLE, ns3::Object::IsInitialized(), ns3::EventId::IsRunning(), IsStateSwitching(), m_channelAccessRequested, m_endPlcpRxEvent, m_endPreambleDetectionEvent, m_endRxEvent, m_interference, m_powerRestricted, m_state, NS_ASSERT, NS_LOG_DEBUG, RX, ns3::Simulator::Schedule(), SetFrequency(), SLEEP, and TX.
Referenced by SetFrequency().
|
protectedvirtual |
Initialize() implementation.
This method is called only once by Initialize(). If the user calls Initialize() multiple times, DoInitialize() is called only the first time.
Subclasses are expected to override this method and chain up to their parent's implementation once they are done. It is safe to call GetObject() and AggregateObject() from within this method.
Reimplemented from ns3::Object.
Reimplemented in ns3::SpectrumWifiPhy.
Definition at line 430 of file wifi-phy.cc.
References InitializeFrequencyChannelNumber(), m_frequencyChannelNumberInitialized, m_isConstructed, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ns3::SpectrumWifiPhy::DoInitialize().
The last bit of the packet has arrived.
event | the corresponding event of the first time the packet arrives (also storing packet and TxVector information) |
Definition at line 3040 of file wifi-phy.cc.
References ns3::InterferenceHelper::CalculateSnr(), ns3::Packet::Copy(), ns3::FIRST_MPDU_IN_AGGREGATE, GetFrequency(), ns3::Time::GetNanoSeconds(), GetPayloadDuration(), GetReceptionStatus(), ns3::WifiTxVector::IsAggregation(), ns3::LAST_MPDU_IN_AGGREGATE, m_currentEvent, m_interference, m_state, ns3::MIDDLE_MPDU_IN_AGGREGATE, ns3::NanoSeconds(), NotifyMonitorSniffRx(), ns3::InterferenceHelper::NotifyRxEnd(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::MpduAggregator::PeekAmpduSubframes(), ns3::MpduAggregator::PeekMpduInAmpduSubframe(), and ns3::SINGLE_MPDU.
Referenced by StartReceivePayload().
void ns3::WifiPhy::EndReceiveInterBss | ( | void | ) |
For HE receptions only, check and possibly modify the transmit power restriction state at the end of PPDU reception.
Definition at line 3140 of file wifi-phy.cc.
References m_channelAccessRequested, m_powerRestricted, and NS_LOG_FUNCTION.
Referenced by ResetCca().
|
private |
Look for channel number matching the frequency and width.
frequency | The center frequency to use |
width | The channel width to use |
Definition at line 1139 of file wifi-phy.cc.
References f(), m_channelToFrequencyWidth, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ConfigureChannelForStandard(), and SetFrequency().
uint8_t ns3::WifiPhy::GetBssMembershipSelector | ( | uint8_t | selector | ) | const |
The WifiPhy::BssMembershipSelector() method is used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception modes that this WifiPhy(-derived class) can support - a set of WifiMode objects which we call the BssMembershipSelectorSet, and which is stored as WifiPhy::m_bssMembershipSelectorSet.
selector | index in array of supported memberships |
Definition at line 1420 of file wifi-phy.cc.
References m_bssMembershipSelectorSet.
Referenced by ns3::StaWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::Receive(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
double ns3::WifiPhy::GetCcaEdThreshold | ( | void | ) | const |
Return the CCA threshold (dBm).
Definition at line 533 of file wifi-phy.cc.
References m_ccaEdThresholdW, and ns3::WToDbm().
Referenced by GetTypeId().
Return the Channel this WifiPhy is connected to.
Implemented in ns3::SpectrumWifiPhy, and ns3::YansWifiPhy.
Referenced by ns3::WifiNetDevice::GetChannel(), and ns3::WaveNetDevice::GetChannel().
uint8_t ns3::WifiPhy::GetChannelNumber | ( | void | ) | const |
Return current channel number.
Definition at line 1509 of file wifi-phy.cc.
References m_channelNumber.
Referenced by ConfigureChannelForStandard(), ConfigureDefaultsForStandard(), ConfigureStandard(), DoChannelSwitch(), SetChannelFrequencyTest::DoRun(), ns3::ApWifiMac::GetDsssParameterSet(), ns3::ApWifiMac::GetHtOperation(), GetTypeId(), InitializeFrequencyChannelNumber(), ns3::YansWifiChannel::Send(), SetChannelNumber(), ns3::SpectrumWifiPhy::StartTx(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
Time ns3::WifiPhy::GetChannelSwitchDelay | ( | void | ) | const |
Definition at line 812 of file wifi-phy.cc.
References m_channelSwitchDelay.
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), DoChannelSwitch(), DoFrequencySwitch(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
uint16_t ns3::WifiPhy::GetChannelWidth | ( | void | ) | const |
Definition at line 1357 of file wifi-phy.cc.
References m_channelWidth.
Referenced by ns3::WifiRemoteStationManager::AddStationVhtCapabilities(), ns3::MeshWifiInterfaceMac::CheckSupportedRates(), ConfigureChannelForStandard(), ns3::WifiRemoteStationManager::DoGetCtsToSelfTxVector(), ns3::IdealWifiManager::DoInitialize(), SetChannelFrequencyTest::DoRun(), ns3::MacLow::GetAckTxVector(), ns3::MacLow::GetBlockAckTxVector(), ns3::SpectrumWifiPhy::GetCenterFrequencyForChannelWidth(), ns3::MacLow::GetCtsTxVector(), ns3::WifiRemoteStationManager::GetDataTxVector(), ns3::RegularWifiMac::GetHeCapabilities(), ns3::RegularWifiMac::GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::WifiRemoteStationManager::GetRtsTxVector(), ns3::SpectrumWifiPhy::GetRxSpectrumModel(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), GetTypeId(), ns3::RegularWifiMac::GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperationalChannelWidth(), ns3::WifiRemoteStationManager::LookupState(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), ns3::SpectrumWifiPhy::ResetSpectrumModel(), SendPacket(), SetFrequency(), StartReceivePreamble(), ns3::SpectrumWifiPhy::StartRx(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
Time ns3::WifiPhy::GetDelayUntilIdle | ( | void | ) |
The PHY will never become WifiPhy::IDLE before the delay returned by this method but it could become really idle later.
Definition at line 4138 of file wifi-phy.cc.
References m_state.
Referenced by DoChannelSwitch(), DoFrequencySwitch(), and SetSleepMode().
Return the device this PHY is associated with.
Definition at line 737 of file wifi-phy.cc.
References m_device.
Referenced by ns3::WifiRemoteStationManager::DoGetCtsToSelfTxVector(), ns3::WifiRemoteStationManager::GetDataTxVector(), GetGreenfield(), ns3::WifiRemoteStationManager::GetGreenfieldSupported(), ns3::WifiRemoteStationManager::GetGuardInterval(), GetGuardInterval(), ns3::WifiRemoteStationManager::GetHeSupported(), ns3::WifiRemoteStationManager::GetHtSupported(), ns3::WifiRemoteStationManager::GetRtsTxVector(), GetShortGuardInterval(), ns3::WifiRemoteStationManager::GetShortGuardIntervalSupported(), ns3::WifiRemoteStationManager::GetVhtSupported(), SetGreenfield(), SetGuardInterval(), and SetShortGuardInterval().
|
static |
Return a WifiMode for DSSS at 11Mbps.
Definition at line 3198 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_UNDEFINED, and ns3::WIFI_MOD_CLASS_HR_DSSS.
Referenced by Configure80211b(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for DSSS at 1Mbps.
Definition at line 3159 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_UNDEFINED, and ns3::WIFI_MOD_CLASS_DSSS.
Referenced by Configure80211b(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPlcpHeaderMode().
|
static |
Return a WifiMode for DSSS at 2Mbps.
Definition at line 3171 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_UNDEFINED, and ns3::WIFI_MOD_CLASS_DSSS.
Referenced by Configure80211b(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPlcpHeaderMode().
|
static |
Return a WifiMode for DSSS at 5.5Mbps.
Definition at line 3186 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_UNDEFINED, and ns3::WIFI_MOD_CLASS_HR_DSSS.
Referenced by Configure80211b(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for ERP-OFDM at 12Mbps.
Definition at line 3237 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by Configure80211g(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for ERP-OFDM at 18Mbps.
Definition at line 3249 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by Configure80211g(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for ERP-OFDM at 24Mbps.
Definition at line 3261 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by Configure80211g(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for ERP-OFDM at 36Mbps.
Definition at line 3273 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by Configure80211g(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for ERP-OFDM at 48Mbps.
Definition at line 3285 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_2_3, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by Configure80211g(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for ERP-OFDM at 54Mbps.
Definition at line 3297 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by Configure80211g(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for ERP-OFDM at 6Mbps.
Definition at line 3213 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by Configure80211g(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPlcpHeaderMode().
|
static |
Return a WifiMode for ERP-OFDM at 9Mbps.
Definition at line 3225 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_ERP_OFDM.
Referenced by Configure80211g(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
uint16_t ns3::WifiPhy::GetFrequency | ( | void | ) | const |
Definition at line 1337 of file wifi-phy.cc.
References m_channelCenterFrequency.
Referenced by ns3::WifiRemoteStationManager::AddStationHeCapabilities(), ns3::MacLow::CalculateOverallTxTime(), ns3::MacLow::CalculateOverheadTxTime(), ns3::MacLow::CalculateTransmissionTime(), ns3::MacLow::CanTransmitNextCfFrame(), Configure80211ax(), Configure80211n(), ConfigureChannelForStandard(), ConfigureStandard(), DoFrequencySwitch(), SetChannelFrequencyTest::DoRun(), EndReceive(), ns3::MacLow::ForwardDown(), ns3::MacLow::GetAckDuration(), ns3::MacLow::GetBlockAckDuration(), ns3::SpectrumWifiPhy::GetCenterFrequencyForChannelWidth(), ns3::MacLow::GetCtsDuration(), ns3::RegularWifiMac::GetHeCapabilities(), ns3::SpectrumWifiPhy::GetRxSpectrumModel(), GetTypeId(), ns3::MacLow::IsWithinSizeAndTimeLimits(), SpectrumWifiPhyBasicTest::MakeSignal(), WifiPhyThresholdsTest::MakeWifiSignal(), ns3::MacLow::NotifyNav(), ns3::SpectrumWifiPhy::ResetSpectrumModel(), TestAmpduReception::SendAmpduWithThreeMpdus(), ns3::MacLow::SendCtsToSelf(), ns3::MacLow::SendDataAfterCts(), ns3::MacLow::SendDataPacket(), TestThresholdPreambleDetectionWithoutFrameCapture::SendPacket(), SendPacket(), TestThresholdPreambleDetectionWithFrameCapture::SendPacket(), TestSimpleFrameCaptureModel::SendPacket(), TestPhyHeadersReception::SendPacket(), ns3::MacLow::SendRtsForPacket(), SetFrequency(), ns3::MacLow::StartDataTxTimers(), and ns3::SpectrumWifiPhy::StartRx().
|
private |
Lookup frequency/width pair for channelNumber/standard pair.
channelNumber | The channel number to check |
standard | The WifiPhyStandard to check |
Definition at line 1447 of file wifi-phy.cc.
References f(), and m_channelToFrequencyWidth.
Referenced by ConfigureChannelForStandard(), and SetChannelNumber().
bool ns3::WifiPhy::GetGreenfield | ( | void | ) | const |
Return whether Greenfield is supported.
Definition at line 628 of file wifi-phy.cc.
References GetDevice(), ns3::WifiNetDevice::GetHtConfiguration(), and m_greenfield.
Referenced by GetTypeId().
Time ns3::WifiPhy::GetGuardInterval | ( | void | ) | const |
Definition at line 691 of file wifi-phy.cc.
References GetDevice(), ns3::WifiNetDevice::GetHeConfiguration(), and m_guardInterval.
Referenced by ns3::MeshWifiInterfaceMac::CheckSupportedRates(), ns3::MacLow::GetAckTxVector(), ns3::MacLow::GetBlockAckTxVector(), ns3::MacLow::GetCtsTxVector(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), GetTypeId(), and ns3::MeshWifiInterfaceMac::Receive().
|
static |
Return MCS 0 from HE MCS values.
Definition at line 3950 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetHePlcpHeaderMode().
|
static |
Return MCS 1 from HE MCS values.
Definition at line 3958 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 10 from HE MCS values.
Definition at line 4030 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 11 from HE MCS values.
Definition at line 4038 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 2 from HE MCS values.
Definition at line 3966 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 3 from HE MCS values.
Definition at line 3974 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 4 from HE MCS values.
Definition at line 3982 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 5 from HE MCS values.
Definition at line 3990 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 6 from HE MCS values.
Definition at line 3998 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 7 from HE MCS values.
Definition at line 4006 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 8 from HE MCS values.
Definition at line 4014 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 9 from HE MCS values.
Definition at line 4022 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HE.
Referenced by Configure80211ax(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Definition at line 1754 of file wifi-phy.cc.
References GetHeMcs0().
Referenced by ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer().
|
static |
Return MCS 0 from HT MCS values.
Definition at line 3609 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetHtPlcpHeaderMode().
|
static |
Return MCS 1 from HT MCS values.
Definition at line 3617 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 10 from HT MCS values.
Definition at line 3689 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 11 from HT MCS values.
Definition at line 3697 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 12 from HT MCS values.
Definition at line 3705 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 13 from HT MCS values.
Definition at line 3713 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 14 from HT MCS values.
Definition at line 3721 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 15 from HT MCS values.
Definition at line 3729 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 16 from HT MCS values.
Definition at line 3737 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 17 from HT MCS values.
Definition at line 3745 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 18 from HT MCS values.
Definition at line 3753 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 19 from HT MCS values.
Definition at line 3761 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 2 from HT MCS values.
Definition at line 3625 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 20 from HT MCS values.
Definition at line 3769 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 21 from HT MCS values.
Definition at line 3777 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPayloadDuration().
|
static |
Return MCS 22 from HT MCS values.
Definition at line 3785 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPayloadDuration().
|
static |
Return MCS 23 from HT MCS values.
Definition at line 3793 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPayloadDuration().
|
static |
Return MCS 24 from HT MCS values.
Definition at line 3801 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 25 from HT MCS values.
Definition at line 3809 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 26 from HT MCS values.
Definition at line 3817 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 27 from HT MCS values.
Definition at line 3825 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 28 from HT MCS values.
Definition at line 3833 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPayloadDuration().
|
static |
Return MCS 29 from HT MCS values.
Definition at line 3841 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPayloadDuration().
|
static |
Return MCS 3 from HT MCS values.
Definition at line 3633 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 30 from HT MCS values.
Definition at line 3849 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPayloadDuration().
|
static |
Return MCS 31 from HT MCS values.
Definition at line 3857 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPayloadDuration().
|
static |
Return MCS 4 from HT MCS values.
Definition at line 3641 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 5 from HT MCS values.
Definition at line 3649 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 6 from HT MCS values.
Definition at line 3657 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 7 from HT MCS values.
Definition at line 3665 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 8 from HT MCS values.
Definition at line 3673 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 9 from HT MCS values.
Definition at line 3681 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_HT.
Referenced by ConfigureHtDeviceMcsSet(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Definition at line 1742 of file wifi-phy.cc.
References GetHtMcs0().
Referenced by ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer().
Time ns3::WifiPhy::GetLastRxStartTime | ( | void | ) | const |
Return the start time of the last received packet.
Definition at line 4144 of file wifi-phy.cc.
References m_state.
Referenced by ns3::MacLow::NavCounterResetCtsMissed().
uint8_t ns3::WifiPhy::GetMaxSupportedRxSpatialStreams | ( | void | ) | const |
Definition at line 1408 of file wifi-phy.cc.
References m_rxSpatialStreams.
Referenced by ns3::ApWifiMac::GetHeOperation(), GetTypeId(), ns3::RegularWifiMac::GetVhtCapabilities(), ns3::ApWifiMac::GetVhtOperation(), and StartReceiveHeader().
uint8_t ns3::WifiPhy::GetMaxSupportedTxSpatialStreams | ( | void | ) | const |
Definition at line 1390 of file wifi-phy.cc.
References m_txSpatialStreams.
Referenced by ns3::WifiRemoteStationManager::AddStationHeCapabilities(), ns3::WifiRemoteStationManager::AddStationVhtCapabilities(), ConfigureHtDeviceMcsSet(), ns3::IdealWifiManager::DoInitialize(), ns3::RegularWifiMac::GetHeCapabilities(), ns3::RegularWifiMac::GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::WifiRemoteStationManager::GetMaxNumberOfTransmitStreams(), GetTypeId(), ns3::RegularWifiMac::GetVhtCapabilities(), and SendPacket().
WifiMode ns3::WifiPhy::GetMcs | ( | uint8_t | mcs | ) | const |
The WifiPhy::GetMcs() method is used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception MCS indexes that this WifiPhy(-derived class) can support - a set of MCS indexes which we call the DeviceMcsSet, and which is stored as WifiPhy::m_deviceMcsSet.
mcs | index in array of supported MCS |
Definition at line 4090 of file wifi-phy.cc.
References m_deviceMcsSet.
Referenced by ns3::WifiRemoteStationManager::AddAllSupportedMcs(), ns3::WifiRemoteStationManager::AddStationHeCapabilities(), ns3::WifiRemoteStationManager::AddStationHtCapabilities(), ns3::WifiRemoteStationManager::AddStationVhtCapabilities(), ns3::IdealWifiManager::DoInitialize(), ns3::MacLow::GetControlAnswerMode(), ns3::RegularWifiMac::GetHeCapabilities(), ns3::RegularWifiMac::GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::RegularWifiMac::GetVhtCapabilities(), IsMcsSupported(), ns3::ApWifiMac::Receive(), StartReceivePreamble(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
Ptr< MobilityModel > ns3::WifiPhy::GetMobility | ( | void | ) | const |
Return the mobility model this PHY is associated with.
This method will return either the mobility model that has been explicitly set by a call to YansWifiPhy::SetMobility(), or else will return the mobility model (if any) that has been aggregated to the node.
Definition at line 749 of file wifi-phy.cc.
References m_device, and m_mobility.
Referenced by ns3::WifiSpectrumPhyInterface::GetMobility(), and ns3::YansWifiChannel::Send().
WifiMode ns3::WifiPhy::GetMode | ( | uint8_t | mode | ) | const |
The WifiPhy::GetNModes() and WifiPhy::GetMode() methods are used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception modes that this WifiPhy(-derived class) can support - a set of WifiMode objects which we call the DeviceRateSet, and which is stored as WifiPhy::m_deviceRateSet.
It is important to note that the DeviceRateSet is a superset (not necessarily proper) of the OperationalRateSet (which is logically, if not actually, a property of the associated WifiRemoteStationManager), which itself is a superset (again, not necessarily proper) of the BSSBasicRateSet.
mode | index in array of supported modes |
Definition at line 4078 of file wifi-phy.cc.
References m_deviceRateSet.
Referenced by ns3::WifiRemoteStationManager::AddAllSupportedModes(), ns3::IdealWifiManager::DoInitialize(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::MacLow::GetControlAnswerMode(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), IsModeSupported(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), StartReceivePreamble(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
uint8_t ns3::WifiPhy::GetNBssMembershipSelectors | ( | void | ) | const |
The WifiPhy::NBssMembershipSelectors() method is used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception modes that this WifiPhy(-derived class) can support - a set of WifiMode objects which we call the BssMembershipSelectorSet, and which is stored as WifiPhy::m_bssMembershipSelectorSet.
Definition at line 1414 of file wifi-phy.cc.
References m_bssMembershipSelectorSet.
Referenced by ns3::StaWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), ns3::StaWifiMac::Receive(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
uint8_t ns3::WifiPhy::GetNMcs | ( | void | ) | const |
The WifiPhy::GetNMcs() method is used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception MCS indexes that this WifiPhy(-derived class) can support - a set of MCS indexes which we call the DeviceMcsSet, and which is stored as WifiPhy::m_deviceMcsSet.
Definition at line 4084 of file wifi-phy.cc.
References m_deviceMcsSet.
Referenced by ns3::WifiRemoteStationManager::AddAllSupportedMcs(), ns3::WifiRemoteStationManager::AddStationHeCapabilities(), ns3::WifiRemoteStationManager::AddStationHtCapabilities(), ns3::WifiRemoteStationManager::AddStationVhtCapabilities(), ns3::IdealWifiManager::DoInitialize(), ns3::MacLow::GetControlAnswerMode(), ns3::RegularWifiMac::GetHeCapabilities(), ns3::RegularWifiMac::GetHtCapabilities(), ns3::ApWifiMac::GetHtOperation(), ns3::RegularWifiMac::GetVhtCapabilities(), IsMcsSupported(), ns3::ApWifiMac::Receive(), StartReceivePreamble(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), and ns3::StaWifiMac::UpdateApInfoFromBeacon().
uint8_t ns3::WifiPhy::GetNModes | ( | void | ) | const |
The WifiPhy::GetNModes() and WifiPhy::GetMode() methods are used (e.g., by a WifiRemoteStationManager) to determine the set of transmission/reception modes that this WifiPhy(-derived class) can support - a set of WifiMode objects which we call the DeviceRateSet, and which is stored as WifiPhy::m_deviceRateSet.
It is important to note that the DeviceRateSet is a superset (not necessarily proper) of the OperationalRateSet (which is logically, if not actually, a property of the associated WifiRemoteStationManager), which itself is a superset (again, not necessarily proper) of the BSSBasicRateSet.
Definition at line 4072 of file wifi-phy.cc.
References m_deviceRateSet.
Referenced by ns3::WifiRemoteStationManager::AddAllSupportedModes(), ns3::IdealWifiManager::DoInitialize(), ns3::MeshWifiInterfaceMac::ForwardDown(), ns3::MacLow::GetControlAnswerMode(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), ns3::StaWifiMac::GetSupportedRates(), ns3::ApWifiMac::GetSupportedRates(), IsModeSupported(), ns3::ApWifiMac::Receive(), ns3::MeshWifiInterfaceMac::Receive(), StartReceivePreamble(), ns3::StaWifiMac::UpdateApInfoFromAssocResp(), ns3::StaWifiMac::UpdateApInfoFromBeacon(), and ns3::StaWifiMac::UpdateApInfoFromProbeResp().
uint8_t ns3::WifiPhy::GetNTxPower | ( | void | ) | const |
Return the number of available transmission power levels.
Definition at line 580 of file wifi-phy.cc.
References m_nTxPower.
uint8_t ns3::WifiPhy::GetNumberOfAntennas | ( | void | ) | const |
Definition at line 1371 of file wifi-phy.cc.
References m_numberOfAntennas.
Referenced by ns3::WifiRemoteStationManager::GetNumberOfAntennas(), GetTypeId(), SetErrorRateModel(), SetMaxSupportedRxSpatialStreams(), SetMaxSupportedTxSpatialStreams(), and SetRxNoiseFigure().
|
static |
Return a WifiMode for OFDM at 12Mbps.
Definition at line 3336 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211a(), ConfigureHolland(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 12Mbps with 10MHz channel spacing.
Definition at line 3459 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_10Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 12Mbps with 5MHz channel spacing.
Definition at line 3582 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_2_3, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_5Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 13.5Mbps with 5MHz channel spacing.
Definition at line 3594 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_5Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 18Mbps.
Definition at line 3348 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211a(), ConfigureHolland(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 18Mbps with 10MHz channel spacing.
Definition at line 3471 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_10Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 1.5Mbps with 5MHz channel spacing.
Definition at line 3510 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_5Mhz(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPlcpHeaderMode().
|
static |
Return a WifiMode for OFDM at 24Mbps.
Definition at line 3360 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211a(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 24Mbps with 10MHz channel spacing.
Definition at line 3483 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_2_3, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_10Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 27Mbps with 10MHz channel spacing.
Definition at line 3495 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_10Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 2.25Mbps with 5MHz channel spacing.
Definition at line 3522 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_5Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 36Mbps.
Definition at line 3372 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211a(), ConfigureHolland(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 3Mbps with 10MHz channel spacing.
Definition at line 3411 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_10Mhz(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPlcpHeaderMode().
|
static |
Return a WifiMode for OFDM at 3Mbps with 5MHz channel spacing.
Definition at line 3534 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_5Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 48Mbps.
Definition at line 3384 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_2_3, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211a(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 4.5Mbps with 10MHz channel spacing.
Definition at line 3423 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_10Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 4.5Mbps with 5MHz channel spacing.
Definition at line 3546 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_5Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 54Mbps.
Definition at line 3396 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211a(), ConfigureHolland(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 6Mbps.
Definition at line 3312 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211a(), ConfigureHolland(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetPlcpHeaderMode().
|
static |
Return a WifiMode for OFDM at 6Mbps with 10MHz channel spacing.
Definition at line 3435 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_10Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 6Mbps with 5MHz channel spacing.
Definition at line 3558 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_1_2, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_5Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 9Mbps.
Definition at line 3324 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211a(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 9Mbps with 10MHz channel spacing.
Definition at line 3447 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_10Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return a WifiMode for OFDM at 9Mbps with 5MHz channel spacing.
Definition at line 3570 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMode(), ns3::WIFI_CODE_RATE_3_4, and ns3::WIFI_MOD_CLASS_OFDM.
Referenced by Configure80211_5Mhz(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
Time ns3::WifiPhy::GetPayloadDuration | ( | uint32_t | size, |
WifiTxVector | txVector, | ||
uint16_t | frequency | ||
) |
size | the number of bytes in the packet to send |
txVector | the TXVECTOR used for the transmission of this packet |
frequency | the channel center frequency (MHz) |
Definition at line 2045 of file wifi-phy.cc.
References ns3::NORMAL_MPDU.
Referenced by CalculateTxDuration(), and EndReceive().
Time ns3::WifiPhy::GetPayloadDuration | ( | uint32_t | size, |
WifiTxVector | txVector, | ||
uint16_t | frequency, | ||
MpduType | mpdutype, | ||
uint8_t | incFlag | ||
) |
size | the number of bytes in the packet to send |
txVector | the TXVECTOR used for the transmission of this packet |
frequency | the channel center frequency (MHz) |
mpdutype | the type of the MPDU as defined in WifiPhy::MpduType. |
incFlag | this flag is used to indicate that the static variables need to be update or not. This function is called a couple of times for the same packet so static variables should not be increased each time |
Definition at line 2051 of file wifi-phy.cc.
References ns3::FemtoSeconds(), ns3::FIRST_MPDU_IN_AGGREGATE, ns3::WifiTxVector::GetChannelWidth(), ns3::WifiMode::GetDataRate(), ns3::Time::GetFemtoSeconds(), ns3::WifiTxVector::GetGuardInterval(), GetHtMcs21(), GetHtMcs22(), GetHtMcs23(), GetHtMcs28(), GetHtMcs29(), GetHtMcs30(), GetHtMcs31(), ns3::WifiMode::GetMcsValue(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), ns3::Time::GetNanoSeconds(), ns3::WifiTxVector::GetNss(), ns3::Is2_4Ghz(), ns3::WifiTxVector::IsStbc(), ns3::LAST_MPDU_IN_AGGREGATE, m_totalAmpduNumSymbols, m_totalAmpduSize, ns3::MicroSeconds(), ns3::MIDDLE_MPDU_IN_AGGREGATE, ns3::NanoSeconds(), ns3::NORMAL_MPDU, NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::Seconds(), ns3::SINGLE_MPDU, ns3::WIFI_MOD_CLASS_DSSS, ns3::WIFI_MOD_CLASS_ERP_OFDM, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HR_DSSS, ns3::WIFI_MOD_CLASS_HT, ns3::WIFI_MOD_CLASS_OFDM, and ns3::WIFI_MOD_CLASS_VHT.
|
static |
txVector | the transmission parameters used for this packet |
Definition at line 1924 of file wifi-phy.cc.
References ns3::WifiTxVector::GetChannelWidth(), ns3::WifiMode::GetDataRate(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), ns3::WifiTxVector::GetPreambleType(), ns3::MicroSeconds(), NS_FATAL_ERROR, ns3::WIFI_MOD_CLASS_DSSS, ns3::WIFI_MOD_CLASS_ERP_OFDM, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HR_DSSS, ns3::WIFI_MOD_CLASS_HT, ns3::WIFI_MOD_CLASS_OFDM, ns3::WIFI_MOD_CLASS_VHT, ns3::WIFI_PREAMBLE_HT_GF, ns3::WIFI_PREAMBLE_HT_MF, and ns3::WIFI_PREAMBLE_SHORT.
Referenced by ns3::InterferenceHelper::CalculateLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculatePayloadPer(), CalculatePlcpPreambleAndHeaderDuration(), ContinueReceiveHeader(), and StartReceiveHeader().
|
static |
txVector | the transmission parameters used for this packet |
Definition at line 1878 of file wifi-phy.cc.
References ns3::WifiTxVector::GetChannelWidth(), GetDsssRate1Mbps(), GetDsssRate2Mbps(), GetErpOfdmRate6Mbps(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), GetOfdmRate1_5MbpsBW5MHz(), GetOfdmRate3MbpsBW10MHz(), GetOfdmRate6Mbps(), ns3::WifiTxVector::GetPreambleType(), NS_FATAL_ERROR, ns3::WIFI_MOD_CLASS_DSSS, ns3::WIFI_MOD_CLASS_ERP_OFDM, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HR_DSSS, ns3::WIFI_MOD_CLASS_HT, ns3::WIFI_MOD_CLASS_OFDM, ns3::WIFI_MOD_CLASS_VHT, and ns3::WIFI_PREAMBLE_LONG.
Referenced by ns3::InterferenceHelper::CalculateLegacyPhyHeaderPer(), and ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer().
|
static |
preamble | the type of preamble |
Definition at line 1815 of file wifi-phy.cc.
References ns3::MicroSeconds(), ns3::WIFI_PREAMBLE_HT_GF, and ns3::WIFI_PREAMBLE_HT_MF.
Referenced by ns3::InterferenceHelper::CalculateLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculatePayloadPer(), and CalculatePlcpPreambleAndHeaderDuration().
|
static |
txVector | the transmission parameters used for this packet |
Definition at line 1995 of file wifi-phy.cc.
References ns3::WifiTxVector::GetChannelWidth(), ns3::WifiMode::GetDataRate(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), ns3::WifiTxVector::GetPreambleType(), ns3::MicroSeconds(), NS_FATAL_ERROR, ns3::WIFI_MOD_CLASS_DSSS, ns3::WIFI_MOD_CLASS_ERP_OFDM, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HR_DSSS, ns3::WIFI_MOD_CLASS_HT, ns3::WIFI_MOD_CLASS_OFDM, ns3::WIFI_MOD_CLASS_VHT, and ns3::WIFI_PREAMBLE_SHORT.
Referenced by ns3::InterferenceHelper::CalculateLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculatePayloadPer(), CalculatePlcpPreambleAndHeaderDuration(), ContinueReceiveHeader(), and StartReceiveHeader().
|
static |
preamble | the type of preamble |
Definition at line 1830 of file wifi-phy.cc.
References ns3::MicroSeconds(), ns3::WIFI_PREAMBLE_HE_MU, ns3::WIFI_PREAMBLE_HE_SU, ns3::WIFI_PREAMBLE_VHT_MU, and ns3::WIFI_PREAMBLE_VHT_SU.
Referenced by ns3::InterferenceHelper::CalculateLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculatePayloadPer(), and CalculatePlcpPreambleAndHeaderDuration().
|
static |
preamble | the type of preamble |
Definition at line 1847 of file wifi-phy.cc.
References ns3::MicroSeconds(), ns3::WIFI_PREAMBLE_HE_MU, ns3::WIFI_PREAMBLE_HE_SU, ns3::WIFI_PREAMBLE_VHT_MU, and ns3::WIFI_PREAMBLE_VHT_SU.
Referenced by ns3::InterferenceHelper::CalculateLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculatePayloadPer(), and CalculatePlcpPreambleAndHeaderDuration().
|
static |
preamble | the type of preamble |
Definition at line 1864 of file wifi-phy.cc.
References ns3::MicroSeconds(), ns3::WIFI_PREAMBLE_HE_MU, and ns3::WIFI_PREAMBLE_VHT_MU.
Referenced by ns3::InterferenceHelper::CalculateLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculatePayloadPer(), and CalculatePlcpPreambleAndHeaderDuration().
|
static |
txVector | the transmission parameters used for this packet |
Definition at line 1766 of file wifi-phy.cc.
References ns3::WifiTxVector::GetNess(), ns3::WifiTxVector::GetNss(), ns3::WifiTxVector::GetPreambleType(), ns3::MicroSeconds(), ns3::WIFI_PREAMBLE_HE_MU, ns3::WIFI_PREAMBLE_HE_SU, ns3::WIFI_PREAMBLE_HT_GF, ns3::WIFI_PREAMBLE_HT_MF, ns3::WIFI_PREAMBLE_VHT_MU, and ns3::WIFI_PREAMBLE_VHT_SU.
Referenced by ns3::InterferenceHelper::CalculateLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer(), ns3::InterferenceHelper::CalculatePayloadPer(), and CalculatePlcpPreambleAndHeaderDuration().
double ns3::WifiPhy::GetPowerDbm | ( | uint8_t | power | ) | const |
Get the power of the given power level in dBm.
In SpectrumWifiPhy implementation, the power levels are equally spaced (in dBm).
power | the power level |
Definition at line 794 of file wifi-phy.cc.
References m_nTxPower, m_txPowerBaseDbm, m_txPowerEndDbm, NS_ASSERT, and NS_ASSERT_MSG().
Referenced by ns3::ParfWifiManager::CheckInit(), ns3::AparfWifiManager::CheckInit(), ns3::RrpaaWifiManager::CheckInit(), ns3::ParfWifiManager::DoGetDataTxVector(), ns3::AparfWifiManager::DoGetDataTxVector(), ns3::RrpaaWifiManager::DoGetDataTxVector(), GetTxPowerForTransmission(), SendPacket(), and ns3::YansWifiPhy::StartTx().
|
static |
Definition at line 1760 of file wifi-phy.cc.
References ns3::MicroSeconds().
Referenced by StartReceiveHeader(), and StartRx().
|
private |
Get the reception status for the provided MPDU and notify.
mpdu | the arriving MPDU |
event | the corresponding event of the first time the packet arrives (also storing packet and TxVector information) |
relativeMpduStart | the relative start time of the MPDU within the A-MPDU. 0 for normal MPDUs |
mpduDuration | the duration of the MPDU |
Definition at line 3107 of file wifi-phy.cc.
References ns3::InterferenceHelper::CalculatePayloadSnrPer(), ns3::Packet::Copy(), ns3::ERRONEOUS_FRAME, ns3::Time::GetNanoSeconds(), ns3::Packet::GetSize(), ns3::UniformRandomVariable::GetValue(), m_interference, m_postReceptionErrorModel, m_random, NotifyRxDrop(), NotifyRxEnd(), NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::RatioToDb(), ns3::SignalNoiseDbm::signal, ns3::Packet::ToString(), and ns3::WToDbm().
Referenced by EndReceive().
double ns3::WifiPhy::GetRxGain | ( | void | ) | const |
Return the reception gain (dB).
Definition at line 606 of file wifi-phy.cc.
References m_rxGainDb.
Referenced by GetTypeId(), and ns3::SpectrumWifiPhy::StartRx().
double ns3::WifiPhy::GetRxSensitivity | ( | void | ) | const |
Return the receive sensitivity threshold (dBm).
Definition at line 520 of file wifi-phy.cc.
References m_rxSensitivityW, and ns3::WToDbm().
Referenced by GetTypeId(), and ns3::SpectrumWifiPhy::StartRx().
bool ns3::WifiPhy::GetShortGuardInterval | ( | void | ) | const |
Return whether short guard interval is supported.
Definition at line 659 of file wifi-phy.cc.
References GetDevice(), ns3::WifiNetDevice::GetHtConfiguration(), and m_shortGuardInterval.
Referenced by ns3::MeshWifiInterfaceMac::CheckSupportedRates(), ns3::MacLow::GetAckTxVector(), ns3::MacLow::GetBlockAckTxVector(), ns3::MacLow::GetCtsTxVector(), ns3::MeshWifiInterfaceMac::GetSupportedRates(), GetTypeId(), and ns3::MeshWifiInterfaceMac::Receive().
bool ns3::WifiPhy::GetShortPlcpPreambleSupported | ( | void | ) | const |
Return whether short PLCP preamble is supported.
Definition at line 713 of file wifi-phy.cc.
References m_shortPreamble.
Referenced by ns3::StaWifiMac::GetCapabilities(), ns3::ApWifiMac::GetShortPreambleEnabled(), and GetTypeId().
WifiPhyStandard ns3::WifiPhy::GetStandard | ( | void | ) | const |
Get the configured Wi-Fi standard.
Definition at line 1274 of file wifi-phy.cc.
References m_standard.
Referenced by ns3::SpectrumWifiPhy::GetBandBandwidth(), InitializeFrequencyChannelNumber(), and SetChannelNumber().
|
static |
txVector | the transmission parameters used for this packet |
Definition at line 1989 of file wifi-phy.cc.
References ns3::MicroSeconds().
Ptr< WifiPhyStateHelper > ns3::WifiPhy::GetState | ( | void | ) | const |
Return the WifiPhyStateHelper of this PHY.
Definition at line 443 of file wifi-phy.cc.
References m_state.
Referenced by WifiPhyThresholdsTest::DoSetup().
std::vector< uint16_t > ns3::WifiPhy::GetSupportedChannelWidthSet | ( | void | ) | const |
Definition at line 1441 of file wifi-phy.cc.
References m_supportedChannelWidthSet.
double ns3::WifiPhy::GetTxGain | ( | void | ) | const |
Return the transmission gain (dB).
Definition at line 593 of file wifi-phy.cc.
References m_txGainDb.
Referenced by GetTypeId(), SendPacket(), ns3::YansWifiPhy::StartTx(), and ns3::SpectrumWifiPhy::StartTx().
double ns3::WifiPhy::GetTxPowerEnd | ( | void | ) | const |
Return the maximum available transmission power level (dBm).
Definition at line 567 of file wifi-phy.cc.
References m_txPowerEndDbm.
Referenced by GetTypeId().
double ns3::WifiPhy::GetTxPowerForTransmission | ( | WifiTxVector | txVector | ) | const |
Compute the transmit power (in dBm) for the next transmission.
txVector | the TXVECTOR |
Definition at line 4202 of file wifi-phy.cc.
References ns3::WifiTxVector::GetNss(), GetPowerDbm(), ns3::WifiTxVector::GetTxPowerLevel(), m_powerRestricted, m_txPowerMaxMimo, m_txPowerMaxSiso, min, and NS_LOG_FUNCTION.
Referenced by SendPacket(), ns3::YansWifiPhy::StartTx(), and ns3::SpectrumWifiPhy::StartTx().
double ns3::WifiPhy::GetTxPowerStart | ( | void | ) | const |
Return the minimum available transmission power level (dBm).
Definition at line 554 of file wifi-phy.cc.
References m_txPowerBaseDbm.
Referenced by GetTypeId().
|
static |
Get the type ID.
Definition at line 162 of file wifi-phy.cc.
References ns3::TypeId::DEPRECATED, GetCcaEdThreshold(), GetChannelNumber(), GetChannelWidth(), GetFrequency(), GetGreenfield(), GetGuardInterval(), GetMaxSupportedRxSpatialStreams(), GetMaxSupportedTxSpatialStreams(), GetNumberOfAntennas(), GetRxGain(), GetRxSensitivity(), GetShortGuardInterval(), GetShortPlcpPreambleSupported(), GetTxGain(), GetTxPowerEnd(), GetTxPowerStart(), m_channelSwitchDelay, m_frameCaptureModel, m_nTxPower, m_phyEndOfHePreambleTrace, m_phyMonitorSniffRxTrace, m_phyMonitorSniffTxTrace, m_phyRxBeginTrace, m_phyRxDropTrace, m_phyRxEndTrace, m_phyTxBeginTrace, m_phyTxDropTrace, m_phyTxEndTrace, m_postReceptionErrorModel, m_preambleDetectionModel, m_state, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakeDoubleAccessor(), ns3::MakePointerAccessor(), ns3::MakeTimeAccessor(), ns3::MakeTimeChecker(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), ns3::MicroSeconds(), ns3::NanoSeconds(), SetCcaEdThreshold(), SetChannelNumber(), SetChannelWidth(), SetEdThreshold(), SetFrequency(), SetGreenfield(), SetGuardInterval(), SetMaxSupportedRxSpatialStreams(), SetMaxSupportedTxSpatialStreams(), SetNumberOfAntennas(), ns3::TypeId::SetParent(), SetRxGain(), SetRxNoiseFigure(), SetRxSensitivity(), SetShortGuardInterval(), SetShortPlcpPreambleSupported(), SetTxGain(), SetTxPowerEnd(), and SetTxPowerStart().
|
static |
Return MCS 0 from VHT MCS values.
Definition at line 3868 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), anonymous_namespace{wifi-phy.cc}::Constructor::Constructor(), and GetVhtPlcpHeaderMode().
|
static |
Return MCS 1 from VHT MCS values.
Definition at line 3876 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 2 from VHT MCS values.
Definition at line 3884 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 3 from VHT MCS values.
Definition at line 3892 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 4 from VHT MCS values.
Definition at line 3900 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 5 from VHT MCS values.
Definition at line 3908 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 6 from VHT MCS values.
Definition at line 3916 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 7 from VHT MCS values.
Definition at line 3924 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 8 from VHT MCS values.
Definition at line 3932 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Return MCS 9 from VHT MCS values.
Definition at line 3940 of file wifi-phy.cc.
References ns3::WifiModeFactory::CreateWifiMcs(), and ns3::WIFI_MOD_CLASS_VHT.
Referenced by Configure80211ac(), and anonymous_namespace{wifi-phy.cc}::Constructor::Constructor().
|
static |
Definition at line 1748 of file wifi-phy.cc.
References GetVhtMcs0().
Referenced by ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderPer().
|
private |
post-construction setting of frequency and/or channel number
This method exists to handle the fact that two attribute values, Frequency and ChannelNumber, are coupled. The initialization of these values needs to be deferred until after attribute construction time, to avoid static initialization order issues. This method is typically called either when ConfigureStandard () is called or when DoInitialize () is called.
Definition at line 479 of file wifi-phy.cc.
References GetChannelNumber(), GetStandard(), m_frequencyChannelNumberInitialized, m_initialChannelNumber, m_initialFrequency, NS_ASSERT_MSG(), NS_FATAL_ERROR, NS_LOG_FUNCTION, SetChannelNumber(), SetFrequency(), and ns3::WIFI_PHY_STANDARD_UNSPECIFIED.
Referenced by ConfigureStandard(), and DoInitialize().
bool ns3::WifiPhy::IsMcsSupported | ( | WifiMode | mcs | ) | const |
Check if the given WifiMode is supported by the PHY.
mcs | the wifi mode to check |
Definition at line 4059 of file wifi-phy.cc.
References GetMcs(), and GetNMcs().
Referenced by StartReceivePayload().
bool ns3::WifiPhy::IsModeSupported | ( | WifiMode | mode | ) | const |
Check if the given WifiMode is supported by the PHY.
mode | the wifi mode to check |
Definition at line 4046 of file wifi-phy.cc.
References GetMode(), and GetNModes().
Referenced by StartReceivePayload().
bool ns3::WifiPhy::IsStateCcaBusy | ( | void | ) | const |
Definition at line 4096 of file wifi-phy.cc.
References m_state.
bool ns3::WifiPhy::IsStateIdle | ( | void | ) | const |
Definition at line 4102 of file wifi-phy.cc.
References m_state.
bool ns3::WifiPhy::IsStateOff | ( | void | ) | const |
Definition at line 4132 of file wifi-phy.cc.
References m_state.
Referenced by ns3::MacLow::StartTransmission().
bool ns3::WifiPhy::IsStateRx | ( | void | ) | const |
Definition at line 4108 of file wifi-phy.cc.
References m_state.
Referenced by ContinueReceiveHeader(), ns3::MacLow::SendBlockAckAfterAmpdu(), StartReceiveHeader(), and StartReceivePayload().
bool ns3::WifiPhy::IsStateSleep | ( | void | ) | const |
Definition at line 4126 of file wifi-phy.cc.
References m_state.
bool ns3::WifiPhy::IsStateSwitching | ( | void | ) | const |
Definition at line 4120 of file wifi-phy.cc.
References m_state.
Referenced by DoChannelSwitch(), and DoFrequencySwitch().
bool ns3::WifiPhy::IsStateTx | ( | void | ) | const |
Definition at line 4114 of file wifi-phy.cc.
References m_state.
Referenced by ns3::MacLow::SendBlockAckAfterAmpdu(), and ns3::MacLow::StartTransmission().
|
private |
Eventually switch to CCA busy.
Definition at line 2976 of file wifi-phy.cc.
References ns3::InterferenceHelper::GetEnergyDuration(), ns3::Time::IsZero(), m_ccaEdThresholdW, m_interference, and m_state.
Referenced by StartReceiveHeader(), and StartReceivePreamble().
void ns3::WifiPhy::NotifyChannelAccessRequested | ( | void | ) |
Notify the PHY that an access to the channel was requested.
This is typically called by the channel access manager to to notify the PHY about an ongoing transmission. The PHY will use this information to determine whether it should use power restriction as imposed by OBSS_PD SR.
Definition at line 3150 of file wifi-phy.cc.
References m_channelAccessRequested, and NS_LOG_FUNCTION.
Referenced by ns3::ChannelAccessManager::RequestAccess().
void ns3::WifiPhy::NotifyEndOfHePreamble | ( | HePreambleParameters | params | ) |
Public method used to fire a EndOfHePreamble trace once both HE SIG fields have been received, as well as training fields.
params | the HE preamble parameters |
Definition at line 2510 of file wifi-phy.cc.
References m_phyEndOfHePreambleTrace.
Referenced by StartReceivePayload().
void ns3::WifiPhy::NotifyMonitorSniffRx | ( | Ptr< const Packet > | packet, |
uint16_t | channelFreqMhz, | ||
WifiTxVector | txVector, | ||
SignalNoiseDbm | signalNoise, | ||
std::vector< bool > | statusPerMpdu | ||
) |
Public method used to fire a MonitorSniffer trace for a wifi packet being received.
Implemented for encapsulation purposes. This method will extract all MPDUs if packet is an A-MPDU and will fire tracedCallback. The A-MPDU reference number (RX side) is set within the method. It must be a different value for each A-MPDU but the same for each subframe within one A-MPDU.
packet | the packet being received |
channelFreqMhz | the frequency in MHz at which the packet is received. Note that in real devices this is normally the frequency to which the receiver is tuned, and this can be different than the frequency at which the packet was originally transmitted. This is because it is possible to have the receiver tuned on a given channel and still to be able to receive packets on a nearby channel. |
txVector | the TXVECTOR that holds rx parameters |
signalNoise | signal power and noise power in dBm (noise power includes the noise figure) |
statusPerMpdu | reception status per MPDU |
Definition at line 2452 of file wifi-phy.cc.
References ns3::FIRST_MPDU_IN_AGGREGATE, ns3::WifiTxVector::IsAggregation(), ns3::LAST_MPDU_IN_AGGREGATE, m_phyMonitorSniffRxTrace, m_rxMpduReferenceNumber, ns3::MIDDLE_MPDU_IN_AGGREGATE, ns3::MpduInfo::mpduRefNumber, ns3::NORMAL_MPDU, NS_ABORT_MSG_IF, ns3::MpduAggregator::PeekAmpduSubframes(), ns3::SINGLE_MPDU, and ns3::MpduInfo::type.
Referenced by EndReceive().
void ns3::WifiPhy::NotifyMonitorSniffTx | ( | Ptr< const Packet > | packet, |
uint16_t | channelFreqMhz, | ||
WifiTxVector | txVector | ||
) |
Public method used to fire a MonitorSniffer trace for a wifi packet being transmitted.
Implemented for encapsulation purposes. This method will extract all MPDUs if packet is an A-MPDU and will fire tracedCallback. The A-MPDU reference number (RX side) is set within the method. It must be a different value for each A-MPDU but the same for each subframe within one A-MPDU.
packet | the packet being transmitted |
channelFreqMhz | the frequency in MHz at which the packet is transmitted. |
txVector | the TXVECTOR that holds tx parameters |
Definition at line 2484 of file wifi-phy.cc.
References ns3::FIRST_MPDU_IN_AGGREGATE, ns3::WifiTxVector::IsAggregation(), ns3::LAST_MPDU_IN_AGGREGATE, m_phyMonitorSniffTxTrace, m_txMpduReferenceNumber, ns3::MIDDLE_MPDU_IN_AGGREGATE, ns3::MpduInfo::mpduRefNumber, ns3::NORMAL_MPDU, ns3::MpduAggregator::PeekAmpduSubframes(), ns3::SINGLE_MPDU, and ns3::MpduInfo::type.
Referenced by SendPacket().
Public method used to fire a PhyRxBegin trace.
Implemented for encapsulation purposes.
packet | the packet being received |
Definition at line 2401 of file wifi-phy.cc.
References ns3::IsAmpdu(), m_phyRxBeginTrace, and ns3::MpduAggregator::PeekMpdus().
Referenced by StartReceiveHeader().
void ns3::WifiPhy::NotifyRxDrop | ( | Ptr< const Packet > | packet, |
WifiPhyRxfailureReason | reason | ||
) |
Public method used to fire a PhyRxDrop trace.
Implemented for encapsulation purposes.
packet | the packet that was dropped |
reason | the reason the packet was dropped |
Definition at line 2435 of file wifi-phy.cc.
References ns3::IsAmpdu(), m_phyRxDropTrace, and ns3::MpduAggregator::PeekMpdus().
Referenced by AbortCurrentReception(), GetReceptionStatus(), StartReceiveHeader(), StartReceivePayload(), StartReceivePreamble(), and StartRx().
Public method used to fire a PhyRxEnd trace.
Implemented for encapsulation purposes.
packet | the packet received |
Definition at line 2418 of file wifi-phy.cc.
References ns3::IsAmpdu(), m_phyRxEndTrace, and ns3::MpduAggregator::PeekMpdus().
Referenced by GetReceptionStatus().
Public method used to fire a PhyTxBegin trace.
Implemented for encapsulation purposes.
packet | the packet being transmitted |
txPowerW | the transmit power in Watts |
Definition at line 2350 of file wifi-phy.cc.
References ns3::IsAmpdu(), m_phyTxBeginTrace, and ns3::MpduAggregator::PeekMpdus().
Referenced by SendPacket().
Public method used to fire a PhyTxDrop trace.
Implemented for encapsulation purposes.
packet | the packet that was failed to transmitted |
Definition at line 2384 of file wifi-phy.cc.
References ns3::IsAmpdu(), m_phyTxDropTrace, and ns3::MpduAggregator::PeekMpdus().
Referenced by SendPacket().
Public method used to fire a PhyTxEnd trace.
Implemented for encapsulation purposes.
packet | the packet that was transmitted |
Definition at line 2367 of file wifi-phy.cc.
References ns3::IsAmpdu(), m_phyTxEndTrace, and ns3::MpduAggregator::PeekMpdus().
void ns3::WifiPhy::RegisterListener | ( | WifiPhyListener * | listener | ) |
listener | the new listener |
Add the input listener to the list of objects to be notified of PHY-level events.
Definition at line 461 of file wifi-phy.cc.
References m_state.
Referenced by SpectrumWifiPhyListenerTest::DoSetup().
void ns3::WifiPhy::ResetCca | ( | bool | powerRestricted, |
double | txPowerMaxSiso = 0 , |
||
double | txPowerMaxMimo = 0 |
||
) |
Reset PHY to IDLE, with some potential TX power restrictions for the next transmission.
powerRestricted | flag whether the transmit power is restricted for the next transmission |
txPowerMaxSiso | the SISO transmit power retriction for the next transmission |
txPowerMaxMimo | the MIMO transmit power retriction for the next transmission |
Definition at line 4190 of file wifi-phy.cc.
References AbortCurrentReception(), EndReceiveInterBss(), m_currentEvent, m_powerRestricted, m_txPowerMaxMimo, m_txPowerMaxSiso, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_FUNCTION, ns3::OBSS_PD_CCA_RESET, and ns3::Simulator::Schedule().
void ns3::WifiPhy::ResumeFromOff | ( | void | ) |
Resume from off mode.
Definition at line 1711 of file wifi-phy.cc.
References CCA_BUSY, ns3::InterferenceHelper::GetEnergyDuration(), IDLE, m_ccaEdThresholdW, m_interference, m_state, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, OFF, RX, SLEEP, SWITCHING, and TX.
Referenced by ns3::WifiRadioEnergyModelHelper::DoInstall().
void ns3::WifiPhy::ResumeFromSleep | ( | void | ) |
Resume from sleep mode.
Definition at line 1681 of file wifi-phy.cc.
References CCA_BUSY, ns3::InterferenceHelper::GetEnergyDuration(), IDLE, m_ccaEdThresholdW, m_interference, m_state, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, RX, SLEEP, SWITCHING, and TX.
void ns3::WifiPhy::SendPacket | ( | Ptr< const Packet > | packet, |
WifiTxVector | txVector | ||
) |
packet | the packet to send |
txVector | the TXVECTOR that has tx parameters such as mode, the transmission mode to use to send this packet, and txPowerLevel, a power level to use to send this packet. The real transmission power is calculated as txPowerMin + txPowerLevel * (txPowerMax - txPowerMin) / nTxLevels |
Definition at line 2516 of file wifi-phy.cc.
References ns3::Packet::AddHeader(), ns3::Packet::AddPacketTag(), CalculatePlcpPreambleAndHeaderDuration(), CalculateTxDuration(), ns3::EventId::Cancel(), ns3::Packet::Copy(), ns3::DbmToW(), ns3::WifiTxVector::GetBssColor(), ns3::WifiTxVector::GetChannelWidth(), GetChannelWidth(), ns3::WifiMode::GetDataRate(), GetFrequency(), ns3::WifiTxVector::GetGuardInterval(), GetMaxSupportedTxSpatialStreams(), ns3::WifiMode::GetMcsValue(), ns3::Time::GetMicroSeconds(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), ns3::Time::GetNanoSeconds(), ns3::WifiTxVector::GetNss(), GetPowerDbm(), ns3::WifiTxVector::GetPreambleType(), ns3::Packet::GetSize(), GetTxGain(), GetTxPowerForTransmission(), ns3::WifiTxVector::GetTxPowerLevel(), ns3::Is2_4Ghz(), ns3::WifiTxVector::IsAggregation(), ns3::EventId::IsRunning(), ns3::Time::IsStrictlyPositive(), m_channelAccessRequested, m_endPlcpRxEvent, m_endPreambleDetectionEvent, m_endRxEvent, m_interference, m_powerRestricted, m_state, m_wifiRadioEnergyModel, NotifyMonitorSniffTx(), ns3::InterferenceHelper::NotifyRxEnd(), NotifyTxBegin(), NotifyTxDrop(), NS_ASSERT, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_FUNCTION, OFF, ns3::Packet::RemovePacketTag(), ns3::HtSigHeader::SetAggregation(), ns3::HeSigHeader::SetBssColor(), ns3::HtSigHeader::SetChannelWidth(), ns3::VhtSigHeader::SetChannelWidth(), ns3::HeSigHeader::SetChannelWidth(), ns3::HeSigHeader::SetGuardIntervalAndLtfSize(), ns3::HtSigHeader::SetHtLength(), ns3::DsssSigHeader::SetLength(), ns3::LSigHeader::SetLength(), ns3::HtSigHeader::SetMcs(), ns3::HeSigHeader::SetMcs(), ns3::VhtSigHeader::SetMuFlag(), ns3::HeSigHeader::SetMuFlag(), ns3::VhtSigHeader::SetNStreams(), ns3::HeSigHeader::SetNStreams(), ns3::DsssSigHeader::SetRate(), ns3::LSigHeader::SetRate(), ns3::HtSigHeader::SetShortGuardInterval(), ns3::VhtSigHeader::SetShortGuardInterval(), ns3::VhtSigHeader::SetShortGuardIntervalDisambiguation(), ns3::VhtSigHeader::SetSuMcs(), StartTx(), TX, ns3::WIFI_MOD_CLASS_DSSS, ns3::WIFI_MOD_CLASS_ERP_OFDM, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HR_DSSS, ns3::WIFI_MOD_CLASS_HT, ns3::WIFI_MOD_CLASS_OFDM, ns3::WIFI_MOD_CLASS_VHT, ns3::WIFI_PREAMBLE_HE_MU, ns3::WIFI_PREAMBLE_HE_SU, ns3::WIFI_PREAMBLE_HT_GF, and ns3::WIFI_PREAMBLE_VHT_MU.
Referenced by ns3::MacLow::ForwardDown().
void ns3::WifiPhy::SetCapabilitiesChangedCallback | ( | Callback< void > | callback | ) |
callback | the callback to invoke when PHY capabilities have changed. |
Definition at line 473 of file wifi-phy.cc.
References m_capabilitiesChangedCallback.
Referenced by ns3::StaWifiMac::SetWifiPhy().
void ns3::WifiPhy::SetCcaEdThreshold | ( | double | threshold | ) |
Sets the CCA threshold (dBm).
The energy of a received signal should be higher than this threshold to allow the PHY layer to declare CCA BUSY state.
threshold | the CCA threshold in dBm |
Definition at line 526 of file wifi-phy.cc.
References ns3::DbmToW(), m_ccaEdThresholdW, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
|
virtual |
Set channel number.
Channel center frequency = Channel starting frequency + 5 MHz * (nch - 1)
where Starting channel frequency is standard-dependent, as defined in (Section 18.3.8.4.2 "Channel numbering"; IEEE Std 802.11-2012). This method may fail to take action if the Phy model determines that the channel number cannot be switched for some reason (e.g. sleep state)
id | the channel number |
Reimplemented in ns3::SpectrumWifiPhy.
Definition at line 1455 of file wifi-phy.cc.
References DoChannelSwitch(), f(), GetChannelNumber(), GetFrequencyWidthForChannelNumberStandard(), GetStandard(), m_channelCenterFrequency, m_channelNumber, m_initialChannelNumber, m_isConstructed, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_FUNCTION, SetChannelWidth(), and ns3::WIFI_PHY_STANDARD_UNSPECIFIED.
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), Bug2831TestCase::ChangeSupportedChannelWidth(), ConfigureChannelForStandard(), DoChannelSwitch(), Bug2831TestCase::DoRun(), GetTypeId(), InitializeFrequencyChannelNumber(), ns3::SpectrumWifiPhy::SetChannelNumber(), InterferenceHelperSequenceTest::SwitchCh(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
virtual |
channelwidth | channel width |
Reimplemented in ns3::SpectrumWifiPhy.
Definition at line 1343 of file wifi-phy.cc.
References AddSupportedChannelWidth(), ns3::Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::IsNull(), m_capabilitiesChangedCallback, m_channelWidth, NS_ASSERT_MSG(), and NS_LOG_FUNCTION.
Referenced by Bug2831TestCase::ChangeSupportedChannelWidth(), ConfigureChannelForStandard(), ConfigureDefaultsForStandard(), Bug2831TestCase::DoRun(), GetTypeId(), SetChannelNumber(), and ns3::SpectrumWifiPhy::SetChannelWidth().
Sets the device this PHY is associated with.
device | the device this PHY is associated with |
Definition at line 719 of file wifi-phy.cc.
References m_device, m_greenfield, m_guardInterval, and m_shortGuardInterval.
Referenced by AmpduAggregationTest::DoRun(), TwoLevelAggregationTest::DoRun(), Bug2831TestCase::DoRun(), and HeAggregationTest::DoRunSubTest().
void ns3::WifiPhy::SetEdThreshold | ( | double | threshold | ) |
Sets the energy detection threshold (dBm).
The energy of a received signal should be higher than this threshold (dbm) to allow the PHY layer to detect the signal.
threshold | the energy detection threshold in dBm |
Definition at line 507 of file wifi-phy.cc.
References SetRxSensitivity().
Referenced by GetTypeId().
void ns3::WifiPhy::SetErrorRateModel | ( | const Ptr< ErrorRateModel > | rate | ) |
Sets the error rate model.
rate | the error rate model |
Definition at line 762 of file wifi-phy.cc.
References GetNumberOfAntennas(), m_interference, ns3::InterferenceHelper::SetErrorRateModel(), and ns3::InterferenceHelper::SetNumberOfReceiveAntennas().
Referenced by Bug2831TestCase::DoRun(), SpectrumWifiPhyBasicTest::DoSetup(), TestThresholdPreambleDetectionWithoutFrameCapture::DoSetup(), WifiPhyThresholdsTest::DoSetup(), TestThresholdPreambleDetectionWithFrameCapture::DoSetup(), TestSimpleFrameCaptureModel::DoSetup(), TestPhyHeadersReception::DoSetup(), TestAmpduReception::DoSetup(), PsrExperiment::Run(), InterferenceExperiment::Run(), and CollisionExperiment::Run().
void ns3::WifiPhy::SetFrameCaptureModel | ( | const Ptr< FrameCaptureModel > | frameCaptureModel | ) |
Sets the frame capture model.
frameCaptureModel | the frame capture model |
Definition at line 776 of file wifi-phy.cc.
References m_frameCaptureModel.
Referenced by TestThresholdPreambleDetectionWithFrameCapture::DoSetup(), TestSimpleFrameCaptureModel::DoSetup(), TestAmpduReception::DoSetup(), and InterferenceExperiment::Run().
|
virtual |
freq | the operating center frequency (MHz) on this node. |
Reimplemented in ns3::SpectrumWifiPhy.
Definition at line 1280 of file wifi-phy.cc.
References DoFrequencySwitch(), FindChannelNumberForFrequencyWidth(), GetChannelWidth(), GetFrequency(), m_channelCenterFrequency, m_channelNumber, m_initialFrequency, m_isConstructed, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ConfigureChannelForStandard(), ConfigureDefaultsForStandard(), DoFrequencySwitch(), GetTypeId(), InitializeFrequencyChannelNumber(), and ns3::SpectrumWifiPhy::SetFrequency().
void ns3::WifiPhy::SetGreenfield | ( | bool | greenfield | ) |
Enable or disable Greenfield support.
greenfield | Enable or disable Greenfield |
Definition at line 612 of file wifi-phy.cc.
References GetDevice(), ns3::WifiNetDevice::GetHtConfiguration(), m_greenfield, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiPhy::SetGuardInterval | ( | Time | guardInterval | ) |
guardInterval | the supported HE guard interval |
Definition at line 674 of file wifi-phy.cc.
References GetDevice(), ns3::WifiNetDevice::GetHeConfiguration(), m_guardInterval, ns3::NanoSeconds(), NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiPhy::SetMaxSupportedRxSpatialStreams | ( | uint8_t | streams | ) |
streams | the maximum number of supported RX spatial streams. |
Definition at line 1396 of file wifi-phy.cc.
References GetNumberOfAntennas(), ns3::Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::IsNull(), m_capabilitiesChangedCallback, m_rxSpatialStreams, and NS_ASSERT.
Referenced by GetTypeId().
void ns3::WifiPhy::SetMaxSupportedTxSpatialStreams | ( | uint8_t | streams | ) |
streams | the maximum number of supported TX spatial streams. |
Definition at line 1377 of file wifi-phy.cc.
References ConfigureHtDeviceMcsSet(), GetNumberOfAntennas(), ns3::Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::IsNull(), m_capabilitiesChangedCallback, m_txSpatialStreams, and NS_ASSERT.
Referenced by GetTypeId().
void ns3::WifiPhy::SetMobility | ( | const Ptr< MobilityModel > | mobility | ) |
assign a mobility model to this device
This method allows a user to specify a mobility model that should be associated with this physical layer. Calling this method is optional and only necessary if the user wants to override the mobility model that is aggregated to the node.
mobility | the mobility model this PHY is associated with |
Definition at line 743 of file wifi-phy.cc.
References m_mobility, and third::mobility.
Referenced by Bug2831TestCase::DoRun(), PsrExperiment::Run(), InterferenceExperiment::Run(), CollisionExperiment::Run(), and ns3::WifiSpectrumPhyInterface::SetMobility().
void ns3::WifiPhy::SetNTxPower | ( | uint8_t | n | ) |
Sets the number of transmission power levels available between the minimum level and the maximum level.
Transmission power levels are equally separated (in dBm) with the minimum and the maximum included.
n | the number of available levels |
Definition at line 573 of file wifi-phy.cc.
References m_nTxPower, sample-rng-plot::n, and NS_LOG_FUNCTION.
void ns3::WifiPhy::SetNumberOfAntennas | ( | uint8_t | antennas | ) |
antennas | the number of antennas on this node. |
Definition at line 1363 of file wifi-phy.cc.
References m_interference, m_numberOfAntennas, NS_ASSERT_MSG(), and ns3::InterferenceHelper::SetNumberOfReceiveAntennas().
Referenced by GetTypeId().
void ns3::WifiPhy::SetOffMode | ( | void | ) |
Put in off mode.
Definition at line 1669 of file wifi-phy.cc.
References ns3::EventId::Cancel(), m_channelAccessRequested, m_endPlcpRxEvent, m_endPreambleDetectionEvent, m_endRxEvent, m_powerRestricted, m_state, and NS_LOG_FUNCTION.
Referenced by ns3::WifiRadioEnergyModelHelper::DoInstall().
void ns3::WifiPhy::SetPostReceptionErrorModel | ( | const Ptr< ErrorModel > | em | ) |
Attach a receive ErrorModel to the WifiPhy.
The WifiPhy may optionally include an ErrorModel in the packet receive chain. The error model is additive to any modulation-based error model based on SNR, and is typically used to force specific packet losses or for testing purposes.
em | Ptr to the ErrorModel. |
Definition at line 769 of file wifi-phy.cc.
References m_postReceptionErrorModel, and NS_LOG_FUNCTION.
void ns3::WifiPhy::SetPreambleDetectionModel | ( | const Ptr< PreambleDetectionModel > | preambleDetectionModel | ) |
Sets the preamble detection model.
preambleDetectionModel | the preamble detection model |
Definition at line 782 of file wifi-phy.cc.
References m_preambleDetectionModel.
Referenced by TestThresholdPreambleDetectionWithoutFrameCapture::DoSetup(), TestThresholdPreambleDetectionWithFrameCapture::DoSetup(), TestSimpleFrameCaptureModel::DoSetup(), and TestAmpduReception::DoSetup().
void ns3::WifiPhy::SetReceiveErrorCallback | ( | RxErrorCallback | callback | ) |
callback | the callback to invoke upon erroneous packet reception. |
Definition at line 455 of file wifi-phy.cc.
References m_state.
Referenced by SpectrumWifiPhyBasicTest::DoSetup(), TestThresholdPreambleDetectionWithoutFrameCapture::DoSetup(), WifiPhyThresholdsTest::DoSetup(), TestThresholdPreambleDetectionWithFrameCapture::DoSetup(), TestAmpduReception::DoSetup(), ns3::MacLow::ResetPhy(), and ns3::MacLow::SetPhy().
void ns3::WifiPhy::SetReceiveOkCallback | ( | RxOkCallback | callback | ) |
callback | the callback to invoke upon successful packet reception. |
Definition at line 449 of file wifi-phy.cc.
References m_state.
Referenced by SpectrumWifiPhyBasicTest::DoSetup(), TestThresholdPreambleDetectionWithoutFrameCapture::DoSetup(), WifiPhyThresholdsTest::DoSetup(), TestThresholdPreambleDetectionWithFrameCapture::DoSetup(), TestSimpleFrameCaptureModel::DoSetup(), TestAmpduReception::DoSetup(), ns3::MacLow::ResetPhy(), and ns3::MacLow::SetPhy().
void ns3::WifiPhy::SetRxGain | ( | double | gain | ) |
Sets the reception gain (dB).
gain | the reception gain in dB |
Definition at line 599 of file wifi-phy.cc.
References m_rxGainDb, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiPhy::SetRxNoiseFigure | ( | double | noiseFigureDb | ) |
Sets the RX loss (dB) in the Signal-to-Noise-Ratio due to non-idealities in the receiver.
noiseFigureDb | noise figure in dB |
Definition at line 539 of file wifi-phy.cc.
References ns3::DbToRatio(), GetNumberOfAntennas(), m_interference, NS_LOG_FUNCTION, ns3::InterferenceHelper::SetNoiseFigure(), and ns3::InterferenceHelper::SetNumberOfReceiveAntennas().
Referenced by GetTypeId().
void ns3::WifiPhy::SetRxSensitivity | ( | double | threshold | ) |
Sets the receive sensitivity threshold (dBm).
The energy of a received signal should be higher than this threshold to allow the PHY layer to detect the signal.
threshold | the receive sensitivity threshold in dBm |
Definition at line 513 of file wifi-phy.cc.
References ns3::DbmToW(), m_rxSensitivityW, and NS_LOG_FUNCTION.
Referenced by GetTypeId(), and SetEdThreshold().
void ns3::WifiPhy::SetShortGuardInterval | ( | bool | shortGuardInterval | ) |
Enable or disable support for HT/VHT short guard interval.
shortGuardInterval | Enable or disable support for short guard interval |
Definition at line 643 of file wifi-phy.cc.
References GetDevice(), ns3::WifiNetDevice::GetHtConfiguration(), m_shortGuardInterval, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiPhy::SetShortPlcpPreambleSupported | ( | bool | preamble | ) |
Enable or disable short PLCP preamble.
preamble | sets whether short PLCP preamble is supported or not |
Definition at line 706 of file wifi-phy.cc.
References m_shortPreamble, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiPhy::SetSleepMode | ( | void | ) |
Put in sleep mode.
Definition at line 1635 of file wifi-phy.cc.
References CCA_BUSY, GetDelayUntilIdle(), IDLE, m_channelAccessRequested, m_powerRestricted, m_state, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, RX, ns3::Simulator::Schedule(), SLEEP, SWITCHING, and TX.
void ns3::WifiPhy::SetTxGain | ( | double | gain | ) |
Sets the transmission gain (dB).
gain | the transmission gain in dB |
Definition at line 586 of file wifi-phy.cc.
References m_txGainDb, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
void ns3::WifiPhy::SetTxPowerEnd | ( | double | end | ) |
Sets the maximum available transmission power level (dBm).
end | the maximum transmission power level (dBm) |
Definition at line 560 of file wifi-phy.cc.
References m_txPowerEndDbm, and NS_LOG_FUNCTION.
Referenced by GetTypeId(), and InterferenceExperiment::Run().
void ns3::WifiPhy::SetTxPowerStart | ( | double | start | ) |
Sets the minimum available transmission power level (dBm).
start | the minimum transmission power level (dBm) |
Definition at line 547 of file wifi-phy.cc.
References m_txPowerBaseDbm, NS_LOG_FUNCTION, and visualizer.core::start().
Referenced by GetTypeId(), and InterferenceExperiment::Run().
void ns3::WifiPhy::SetWifiRadioEnergyModel | ( | const Ptr< WifiRadioEnergyModel > | wifiRadioEnergyModel | ) |
Sets the wifi radio energy model.
wifiRadioEnergyModel | the wifi radio energy model |
Definition at line 788 of file wifi-phy.cc.
References m_wifiRadioEnergyModel.
Referenced by ns3::WifiRadioEnergyModelHelper::DoInstall().
Start receiving the PHY header of a packet (i.e.
after the end of receiving the preamble).
event | the corresponding event of the first time the packet arrives (also storing packet and TxVector information) |
rxDuration | the duration needed for the reception of the header and payload of the packet |
Definition at line 2668 of file wifi-phy.cc.
References ns3::InterferenceHelper::CalculateLegacyPhyHeaderSnrPer(), CalculatePlcpPreambleAndHeaderDuration(), ContinueReceiveHeader(), GetMaxSupportedRxSpatialStreams(), ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), ns3::WifiTxVector::GetNss(), GetPlcpHeaderDuration(), GetPlcpPreambleDuration(), GetPreambleDetectionDuration(), ns3::WifiTxVector::GetPreambleType(), ns3::EventId::IsExpired(), IsStateRx(), m_channelWidth, m_endPlcpRxEvent, m_interference, m_preambleDetectionModel, m_state, m_timeLastPreambleDetected, MaybeCcaBusyDuration(), NotifyRxBegin(), NotifyRxDrop(), ns3::InterferenceHelper::NotifyRxEnd(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::PREAMBLE_DETECT_FAILURE, ns3::RatioToDb(), ns3::Simulator::Schedule(), ns3::InterferenceHelper::SnrPer::snr, StartReceivePayload(), ns3::UNSUPPORTED_SETTINGS, ns3::WIFI_MOD_CLASS_HT, and ns3::WIFI_PREAMBLE_HT_GF.
Referenced by StartRx().
Start receiving the payload of a packet (i.e.
the first bit of the packet has arrived).
event | the corresponding event of the first time the packet arrives (also storing packet and TxVector information) |
Definition at line 2991 of file wifi-phy.cc.
References ns3::HePreambleParameters::bssColor, ns3::InterferenceHelper::CalculateNonLegacyPhyHeaderSnrPer(), CalculatePlcpPreambleAndHeaderDuration(), EndReceive(), ns3::WifiMode::GetModulationClass(), ns3::UniformRandomVariable::GetValue(), ns3::EventId::IsExpired(), IsMcsSupported(), IsModeSupported(), IsStateRx(), m_endPlcpRxEvent, m_endRxEvent, m_interference, m_random, NotifyEndOfHePreamble(), NotifyRxDrop(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::InterferenceHelper::SnrPer::per, ns3::HePreambleParameters::rssiW, ns3::Simulator::Schedule(), ns3::SIG_A_FAILURE, ns3::UNSUPPORTED_SETTINGS, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HT, and ns3::WIFI_MOD_CLASS_VHT.
Referenced by ContinueReceiveHeader(), and StartReceiveHeader().
Start receiving the PHY preamble of a packet (i.e.
the first bit of the preamble has arrived).
packet | the arriving packet |
rxPowerW | the receive power in W |
rxDuration | the duration needed for the reception of the packet |
Definition at line 2744 of file wifi-phy.cc.
References AbortCurrentReception(), ns3::InterferenceHelper::Add(), CCA_BUSY, ns3::FRAME_CAPTURE_PACKET_SWITCH, ns3::HtSigHeader::GetAggregation(), ns3::HeSigHeader::GetBssColor(), ns3::HtSigHeader::GetChannelWidth(), ns3::VhtSigHeader::GetChannelWidth(), ns3::HeSigHeader::GetChannelWidth(), GetChannelWidth(), ns3::WifiMode::GetDataRate(), ns3::WifiPhyTag::GetFrameComplete(), ns3::HeSigHeader::GetGuardInterval(), ns3::HtSigHeader::GetMcs(), ns3::HeSigHeader::GetMcs(), GetMcs(), ns3::WifiMode::GetMcsValue(), ns3::WifiTxVector::GetMode(), GetMode(), ns3::WifiTxVector::GetModeInitialized(), ns3::WifiPhyTag::GetModulation(), ns3::WifiMode::GetModulationClass(), GetNMcs(), GetNModes(), ns3::VhtSigHeader::GetNStreams(), ns3::HeSigHeader::GetNStreams(), ns3::WifiPhyTag::GetPreambleType(), ns3::DsssSigHeader::GetRate(), ns3::LSigHeader::GetRate(), ns3::HtSigHeader::GetShortGuardInterval(), ns3::VhtSigHeader::GetShortGuardInterval(), ns3::VhtSigHeader::GetSuMcs(), IDLE, ns3::IsAmpdu(), m_currentEvent, m_frameCaptureModel, m_interference, m_state, m_timeLastPreambleDetected, MaybeCcaBusyDuration(), ns3::NOT_ALLOWED, NotifyRxDrop(), ns3::Simulator::Now(), NS_ASSERT, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_FUNCTION, OFF, ns3::Packet::RemoveHeader(), ns3::Packet::RemovePacketTag(), RX, ns3::WifiTxVector::SetAggregation(), ns3::WifiTxVector::SetBssColor(), ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetGuardInterval(), ns3::WifiTxVector::SetMode(), ns3::VhtSigHeader::SetMuFlag(), ns3::HeSigHeader::SetMuFlag(), ns3::WifiTxVector::SetNss(), ns3::WifiTxVector::SetPreambleType(), SLEEP, StartRx(), SWITCHING, TX, ns3::UNSUPPORTED_SETTINGS, ns3::WIFI_MOD_CLASS_DSSS, ns3::WIFI_MOD_CLASS_HE, ns3::WIFI_MOD_CLASS_HR_DSSS, ns3::WIFI_MOD_CLASS_HT, ns3::WIFI_MOD_CLASS_VHT, ns3::WIFI_PREAMBLE_HE_MU, ns3::WIFI_PREAMBLE_HT_GF, and ns3::WIFI_PREAMBLE_VHT_MU.
Referenced by ns3::SpectrumWifiPhy::StartRx().
Starting receiving the packet after having detected the medium is idle or after a reception switch.
event | the corresponding event of the first time the packet arrives (also storing packet and TxVector information) |
rxPowerW | the receive power in W |
rxDuration | the duration needed for the reception of the packet |
Definition at line 4223 of file wifi-phy.cc.
References ns3::EventId::Cancel(), GetPreambleDetectionDuration(), ns3::EventId::IsRunning(), m_currentEvent, m_endPreambleDetectionEvent, m_frameCaptureModel, m_interference, ns3::NOT_ALLOWED, NotifyRxDrop(), ns3::InterferenceHelper::NotifyRxEnd(), ns3::InterferenceHelper::NotifyRxStart(), NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::PREAMBLE_DETECTION_PACKET_SWITCH, ns3::Simulator::Schedule(), and StartReceiveHeader().
Referenced by StartReceivePreamble().
|
pure virtual |
packet | the packet to send |
txVector | the TXVECTOR that has tx parameters such as mode, the transmission mode to use to send this packet, and txPowerLevel, a power level to use to send this packet. The real transmission power is calculated as txPowerMin + txPowerLevel * (txPowerMax - txPowerMin) / nTxLevels |
txDuration | duration of the transmission. |
Implemented in ns3::SpectrumWifiPhy, and ns3::YansWifiPhy.
Referenced by SendPacket().
|
protected |
Check if Phy state should move to CCA busy state based on current state of interference tracker.
In this model, CCA becomes busy when the aggregation of all signals as tracked by the InterferenceHelper class is higher than the CcaEdThreshold
Definition at line 4150 of file wifi-phy.cc.
References ns3::Time::As(), ns3::InterferenceHelper::GetEnergyDuration(), ns3::Time::IsZero(), m_ccaEdThresholdW, m_interference, m_state, NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::Time::S.
Referenced by ns3::SpectrumWifiPhy::StartRx().
void ns3::WifiPhy::UnregisterListener | ( | WifiPhyListener * | listener | ) |
listener | the listener to be unregistered |
Remove the input listener from the list of objects to be notified of PHY-level events.
Definition at line 467 of file wifi-phy.cc.
References m_state.
|
private |
the BSS membership selector set
Definition at line 1873 of file wifi-phy.h.
Referenced by Configure80211ac(), Configure80211ax(), Configure80211n(), ConfigureHtDeviceMcsSet(), GetBssMembershipSelector(), and GetNBssMembershipSelectors().
|
private |
Callback when PHY capabilities changed.
Definition at line 1926 of file wifi-phy.h.
Referenced by SetCapabilitiesChangedCallback(), SetChannelWidth(), SetMaxSupportedRxSpatialStreams(), and SetMaxSupportedTxSpatialStreams().
|
private |
Clear channel assessment (CCA) threshold in watts.
Definition at line 1883 of file wifi-phy.h.
Referenced by GetCcaEdThreshold(), MaybeCcaBusyDuration(), ResumeFromOff(), ResumeFromSleep(), SetCcaEdThreshold(), and SwitchMaybeToCcaBusy().
|
private |
Definition at line 1893 of file wifi-phy.h.
Referenced by DoChannelSwitch(), DoFrequencySwitch(), EndReceiveInterBss(), NotifyChannelAccessRequested(), SendPacket(), SetOffMode(), and SetSleepMode().
|
private |
Center frequency in MHz.
Definition at line 1877 of file wifi-phy.h.
Referenced by GetFrequency(), SetChannelNumber(), and SetFrequency().
|
private |
Operating channel number.
Definition at line 1909 of file wifi-phy.h.
Referenced by GetChannelNumber(), SetChannelNumber(), and SetFrequency().
|
private |
Time required to switch between channel.
Definition at line 1912 of file wifi-phy.h.
Referenced by GetChannelSwitchDelay(), and GetTypeId().
|
staticprivate |
the channel to frequency width map
This table maintains the mapping of valid ChannelNumber to Frequency/ChannelWidth pairs.
If you want to make a channel applicable to all standards, then you may use the WIFI_PHY_STANDARD_UNSPECIFIED standard to represent this, as a wildcard. If you want to limit the configuration of a particular channel/frequency/width to a particular standard(s), then you can specify one or more such bindings.
Definition at line 1906 of file wifi-phy.h.
Referenced by DefineChannelNumber(), FindChannelNumberForFrequencyWidth(), and GetFrequencyWidthForChannelNumberStandard().
|
private |
Channel width.
Definition at line 1880 of file wifi-phy.h.
Referenced by GetChannelWidth(), SetChannelWidth(), and StartReceiveHeader().
Hold the current event.
Definition at line 1919 of file wifi-phy.h.
Referenced by AbortCurrentReception(), EndReceive(), ResetCca(), StartReceivePreamble(), and StartRx().
Pointer to the device.
Definition at line 1916 of file wifi-phy.h.
Referenced by DoDispose(), GetDevice(), GetMobility(), and SetDevice().
|
private |
the device MCS set
Definition at line 1871 of file wifi-phy.h.
Referenced by Configure80211ac(), Configure80211ax(), ConfigureHtDeviceMcsSet(), DoDispose(), GetMcs(), and GetNMcs().
|
private |
This vector holds the set of transmission modes that this WifiPhy(-derived class) can support.
In conversation we call this the DeviceRateSet (not a term you'll find in the standard), and it is a superset of standard-defined parameters such as the OperationalRateSet, and the BSSBasicRateSet (which, themselves, have a superset/subset relationship).
Mandatory rates relevant to this WifiPhy can be found by iterating over this vector looking for WifiMode objects for which WifiMode::IsMandatory() is true.
A quick note is appropriate here (well, here is as good a place as any I can find)...
In the standard there is no text that explicitly precludes production of a device that does not support some rates that are mandatory (according to the standard) for PHYs that the device happens to fully or partially support.
This approach is taken by some devices which choose to only support, for example, 6 and 9 Mbps ERP-OFDM rates for cost and power consumption reasons (i.e., these devices don't need to be designed for and waste current on the increased linearity requirement of higher-order constellations when 6 and 9 Mbps more than meet their data requirements). The wording of the standard allows such devices to have an OperationalRateSet which includes 6 and 9 Mbps ERP-OFDM rates, despite 12 and 24 Mbps being "mandatory" rates for the ERP-OFDM PHY.
Now this doesn't actually have any impact on code, yet. It is, however, something that we need to keep in mind for the future. Basically, the key point is that we can't be making assumptions like "the Operational Rate Set will contain all the mandatory rates".
Definition at line 1870 of file wifi-phy.h.
Referenced by Configure80211_10Mhz(), Configure80211_5Mhz(), Configure80211a(), Configure80211b(), Configure80211g(), ConfigureHolland(), DoDispose(), GetMode(), and GetNModes().
|
protected |
the end of PLCP receive event
Definition at line 1618 of file wifi-phy.h.
Referenced by AbortCurrentReception(), ContinueReceiveHeader(), DoChannelSwitch(), DoDispose(), DoFrequencySwitch(), SendPacket(), SetOffMode(), StartReceiveHeader(), and StartReceivePayload().
|
protected |
the end of preamble detection event
Definition at line 1619 of file wifi-phy.h.
Referenced by AbortCurrentReception(), DoChannelSwitch(), DoDispose(), DoFrequencySwitch(), SendPacket(), SetOffMode(), and StartRx().
|
protected |
the end of receive event
Definition at line 1617 of file wifi-phy.h.
Referenced by AbortCurrentReception(), DoChannelSwitch(), DoDispose(), DoFrequencySwitch(), SendPacket(), SetOffMode(), and StartReceivePayload().
|
private |
Frame capture model.
Definition at line 1920 of file wifi-phy.h.
Referenced by GetTypeId(), SetFrameCaptureModel(), StartReceivePreamble(), and StartRx().
|
private |
Store initialization state.
Definition at line 1879 of file wifi-phy.h.
Referenced by ConfigureStandard(), DoInitialize(), and InitializeFrequencyChannelNumber().
|
private |
Flag if GreenField format is supported (deprecated)
Definition at line 1895 of file wifi-phy.h.
Referenced by GetGreenfield(), SetDevice(), and SetGreenfield().
|
private |
Supported HE guard interval (deprecated)
Definition at line 1899 of file wifi-phy.h.
Referenced by GetGuardInterval(), SetDevice(), and SetGuardInterval().
|
private |
Initial channel number.
Definition at line 1910 of file wifi-phy.h.
Referenced by InitializeFrequencyChannelNumber(), and SetChannelNumber().
|
private |
Store frequency until initialization.
Definition at line 1878 of file wifi-phy.h.
Referenced by InitializeFrequencyChannelNumber(), and SetFrequency().
|
protected |
Pointer to InterferenceHelper.
Definition at line 1610 of file wifi-phy.h.
Referenced by AbortCurrentReception(), CalculateSnr(), ContinueReceiveHeader(), DoChannelSwitch(), DoFrequencySwitch(), EndReceive(), GetReceptionStatus(), MaybeCcaBusyDuration(), ResumeFromOff(), ResumeFromSleep(), SendPacket(), SetErrorRateModel(), SetNumberOfAntennas(), SetRxNoiseFigure(), StartReceiveHeader(), StartReceivePayload(), StartReceivePreamble(), ns3::SpectrumWifiPhy::StartRx(), StartRx(), and SwitchMaybeToCcaBusy().
|
private |
true when ready to set frequency
Definition at line 1876 of file wifi-phy.h.
Referenced by ConfigureStandard(), DoInitialize(), SetChannelNumber(), and SetFrequency().
|
private |
Pointer to the mobility model.
Definition at line 1917 of file wifi-phy.h.
Referenced by DoDispose(), GetMobility(), and SetMobility().
|
private |
Number of available transmission power levels.
Definition at line 1888 of file wifi-phy.h.
Referenced by GetNTxPower(), GetPowerDbm(), GetTypeId(), and SetNTxPower().
|
private |
Number of transmitters.
Definition at line 1901 of file wifi-phy.h.
Referenced by GetNumberOfAntennas(), and SetNumberOfAntennas().
|
private |
A trace source that indiates the end of both HE SIG fields as well as training fields for received 802.11ax packets.
Definition at line 1832 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyEndOfHePreamble().
|
private |
A trace source that emulates a wifi device in monitor mode sniffing a packet being received.
As a reference with the real world, firing this trace corresponds in the madwifi driver to calling the function ieee80211_input_monitor()
Definition at line 1811 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyMonitorSniffRx().
|
private |
A trace source that emulates a wifi device in monitor mode sniffing a packet being transmitted.
As a reference with the real world, firing this trace corresponds in the madwifi driver to calling the function ieee80211_input_monitor()
Definition at line 1825 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyMonitorSniffTx().
|
private |
The trace source fired when a packet begins the reception process from the medium.
Definition at line 1782 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyRxBegin().
|
private |
The trace source fired when the phy layer drops a packet it has received.
Definition at line 1797 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyRxDrop().
|
private |
The trace source fired when a packet ends the reception process from the medium.
Definition at line 1790 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyRxEnd().
|
private |
The trace source fired when a packet begins the transmission process on the medium.
Definition at line 1758 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyTxBegin().
|
private |
The trace source fired when the phy layer drops a packet as it tries to transmit it.
Definition at line 1774 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyTxDrop().
|
private |
The trace source fired when a packet ends the transmission process on the medium.
Definition at line 1766 of file wifi-phy.h.
Referenced by GetTypeId(), and NotifyTxEnd().
|
private |
Error model for receive packet events.
Definition at line 1923 of file wifi-phy.h.
Referenced by DoDispose(), GetReceptionStatus(), GetTypeId(), and SetPostReceptionErrorModel().
|
private |
Flag whether transmit power is retricted by OBSS PD SR.
Definition at line 1890 of file wifi-phy.h.
Referenced by DoChannelSwitch(), DoFrequencySwitch(), EndReceiveInterBss(), GetTxPowerForTransmission(), ResetCca(), SendPacket(), SetOffMode(), and SetSleepMode().
|
private |
Preamble detection model.
Definition at line 1921 of file wifi-phy.h.
Referenced by GetTypeId(), SetPreambleDetectionModel(), and StartReceiveHeader().
|
protected |
Provides uniform random variables.
Definition at line 1611 of file wifi-phy.h.
Referenced by AssignStreams(), ContinueReceiveHeader(), GetReceptionStatus(), StartReceivePayload(), and WifiPhy().
|
private |
Reception gain (dB)
Definition at line 1885 of file wifi-phy.h.
Referenced by GetRxGain(), and SetRxGain().
|
protected |
A-MPDU reference number to identify all received subframes belonging to the same received A-MPDU.
Definition at line 1615 of file wifi-phy.h.
Referenced by NotifyMonitorSniffRx().
|
private |
Receive sensitivity threshold in watts.
Definition at line 1882 of file wifi-phy.h.
Referenced by GetRxSensitivity(), and SetRxSensitivity().
|
private |
Number of supported RX spatial streams.
Definition at line 1903 of file wifi-phy.h.
Referenced by GetMaxSupportedRxSpatialStreams(), and SetMaxSupportedRxSpatialStreams().
|
private |
Flag if HT/VHT short guard interval is supported (deprecated)
Definition at line 1896 of file wifi-phy.h.
Referenced by GetShortGuardInterval(), SetDevice(), and SetShortGuardInterval().
|
private |
Flag if short PLCP preamble is supported.
Definition at line 1897 of file wifi-phy.h.
Referenced by GetShortPlcpPreambleSupported(), and SetShortPlcpPreambleSupported().
|
private |
WifiPhyStandard.
Definition at line 1875 of file wifi-phy.h.
Referenced by ConfigureStandard(), and GetStandard().
|
protected |
Pointer to WifiPhyStateHelper.
Definition at line 1612 of file wifi-phy.h.
Referenced by AbortCurrentReception(), DoChannelSwitch(), DoDispose(), DoFrequencySwitch(), EndReceive(), GetDelayUntilIdle(), GetLastRxStartTime(), GetState(), GetTypeId(), IsStateCcaBusy(), IsStateIdle(), IsStateOff(), IsStateRx(), IsStateSleep(), IsStateSwitching(), IsStateTx(), MaybeCcaBusyDuration(), RegisterListener(), ResumeFromOff(), ResumeFromSleep(), SendPacket(), SetOffMode(), SetReceiveErrorCallback(), SetReceiveOkCallback(), SetSleepMode(), StartReceiveHeader(), StartReceivePreamble(), SwitchMaybeToCcaBusy(), UnregisterListener(), and WifiPhy().
|
private |
Supported channel width.
Definition at line 1908 of file wifi-phy.h.
Referenced by AddSupportedChannelWidth(), and GetSupportedChannelWidthSet().
|
private |
Record the time the last preamble was detected.
Definition at line 1924 of file wifi-phy.h.
Referenced by StartReceiveHeader(), and StartReceivePreamble().
|
private |
Number of symbols previously transmitted for the MPDUs in an A-MPDU, used for the computation of the number of symbols needed for the last MPDU in the A-MPDU.
Definition at line 1914 of file wifi-phy.h.
Referenced by GetPayloadDuration().
|
private |
Total size of the previously transmitted MPDUs in an A-MPDU, used for the computation of the number of symbols needed for the last MPDU in the A-MPDU.
Definition at line 1913 of file wifi-phy.h.
Referenced by GetPayloadDuration().
|
private |
Transmission gain (dB)
Definition at line 1884 of file wifi-phy.h.
Referenced by GetTxGain(), and SetTxGain().
|
protected |
A-MPDU reference number to identify all transmitted subframes belonging to the same received A-MPDU.
Definition at line 1614 of file wifi-phy.h.
Referenced by NotifyMonitorSniffTx().
|
private |
Minimum transmission power (dBm)
Definition at line 1886 of file wifi-phy.h.
Referenced by GetPowerDbm(), GetTxPowerStart(), and SetTxPowerStart().
|
private |
Maximum transmission power (dBm)
Definition at line 1887 of file wifi-phy.h.
Referenced by GetPowerDbm(), GetTxPowerEnd(), and SetTxPowerEnd().
|
private |
MIMO maximum transmit power due to OBSS PD SR power restriction.
Definition at line 1892 of file wifi-phy.h.
Referenced by GetTxPowerForTransmission(), and ResetCca().
|
private |
SISO maximum transmit power due to OBSS PD SR power restriction.
Definition at line 1891 of file wifi-phy.h.
Referenced by GetTxPowerForTransmission(), and ResetCca().
|
private |
Number of supported TX spatial streams.
Definition at line 1902 of file wifi-phy.h.
Referenced by GetMaxSupportedTxSpatialStreams(), and SetMaxSupportedTxSpatialStreams().
|
private |
Wifi radio energy model.
Definition at line 1922 of file wifi-phy.h.
Referenced by DoDispose(), SendPacket(), and SetWifiRadioEnergyModel().