A Discrete-Event Network Simulator
API
he-phy.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2020 Orange Labs
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Authors: Rediet <getachew.redieteab@orange.com>
19 * S├ębastien Deronne <sebastien.deronne@gmail.com> (for logic ported from wifi-phy and spectrum-wifi-phy)
20 */
21
22#ifndef HE_PHY_H
23#define HE_PHY_H
24
25#include "ns3/vht-phy.h"
26#include "ns3/wifi-phy-band.h"
27#include "ns3/callback.h"
28
36namespace ns3 {
37
38class ObssPdAlgorithm;
39
43#define HE_PHY 122
44
49{
50 double rssiW;
51 uint8_t bssColor;
52};
53
62class HePhy : public VhtPhy
63{
64public:
71
78 HePhy (bool buildModeList = true);
82 virtual ~HePhy ();
83
84 WifiMode GetSigMode (WifiPpduField field, const WifiTxVector& txVector) const override;
85 WifiMode GetSigAMode (void) const override;
86 WifiMode GetSigBMode (const WifiTxVector& txVector) const override;
87 const PpduFormats & GetPpduFormats (void) const override;
88 Time GetLSigDuration (WifiPreamble preamble) const override;
89 Time GetTrainingDuration (const WifiTxVector& txVector,
90 uint8_t nDataLtf,
91 uint8_t nExtensionLtf = 0) const override;
92 Time GetSigADuration (WifiPreamble preamble) const override;
93 Time GetSigBDuration (const WifiTxVector& txVector) const override;
95 const WifiTxVector& txVector,
96 Time ppduDuration) override;
100 Time rxDuration) override;
101 void CancelAllEvents (void) override;
102 uint16_t GetStaId (const Ptr<const WifiPpdu> ppdu) const override;
103 uint16_t GetMeasurementChannelWidth (const Ptr<const WifiPpdu> ppdu) const override;
104 void StartTx (Ptr<const WifiPpdu> ppdu, const WifiTxVector& txVector) override;
105 Time CalculateTxDuration (WifiConstPsduMap psduMap, const WifiTxVector& txVector, WifiPhyBand band) const override;
106 void SwitchMaybeToCcaBusy (const Ptr<const WifiPpdu> ppdu) override;
107 double GetCcaThreshold (const Ptr<const WifiPpdu> ppdu, WifiChannelListType channelType) const override;
108 void NotifyCcaBusy (const Ptr<const WifiPpdu> ppdu, Time duration, WifiChannelListType channelType) override;
109
113 uint8_t GetBssColor (void) const;
114
126 static std::pair<uint16_t, Time> ConvertHeTbPpduDurationToLSigLength (Time ppduDuration,
127 const WifiTxVector& txVector,
128 WifiPhyBand band);
136 static Time ConvertLSigLengthToHeTbPpduDuration (uint16_t length, const WifiTxVector& txVector, WifiPhyBand band);
142 Time CalculateNonOfdmaDurationForHeTb (const WifiTxVector& txVector) const;
143
149 Time CalculateNonOfdmaDurationForHeMu (const WifiTxVector& txVector) const;
150
160 WifiSpectrumBand GetRuBandForTx (const WifiTxVector& txVector, uint16_t staId) const;
170 WifiSpectrumBand GetRuBandForRx (const WifiTxVector& txVector, uint16_t staId) const;
179 WifiSpectrumBand GetNonOfdmaBand (const WifiTxVector& txVector, uint16_t staId) const;
186 uint16_t GetNonOfdmaWidth (HeRu::RuSpec ru) const;
187
191 uint64_t GetCurrentHeTbPpduUid (void) const;
192
200 void SetTrigVector (const WifiTxVector& trigVector, Time validity);
201
211 uint16_t GetCenterFrequencyForNonOfdmaPart (const WifiTxVector& txVector, uint16_t staId) const;
212
218 void SetObssPdAlgorithm (const Ptr<ObssPdAlgorithm> algorithm);
219
226
235
239 static void InitializeModes (void);
247 static WifiMode GetHeMcs (uint8_t index);
248
254 static WifiMode GetHeMcs0 (void);
260 static WifiMode GetHeMcs1 (void);
266 static WifiMode GetHeMcs2 (void);
272 static WifiMode GetHeMcs3 (void);
278 static WifiMode GetHeMcs4 (void);
284 static WifiMode GetHeMcs5 (void);
290 static WifiMode GetHeMcs6 (void);
296 static WifiMode GetHeMcs7 (void);
302 static WifiMode GetHeMcs8 (void);
308 static WifiMode GetHeMcs9 (void);
314 static WifiMode GetHeMcs10 (void);
320 static WifiMode GetHeMcs11 (void);
321
330 static WifiCodeRate GetCodeRate (uint8_t mcsValue);
339 static uint16_t GetConstellationSize (uint8_t mcsValue);
353 static uint64_t GetPhyRate (uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss);
362 static uint64_t GetPhyRateFromTxVector (const WifiTxVector& txVector, uint16_t staId = SU_STA_ID);
371 static uint64_t GetDataRateFromTxVector (const WifiTxVector& txVector, uint16_t staId = SU_STA_ID);
384 static uint64_t GetDataRate (uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss);
393 static uint64_t GetNonHtReferenceRate (uint8_t mcsValue);
401 static bool IsAllowed (const WifiTxVector& txVector);
402
403protected:
406 bool IsConfigSupported (Ptr<const WifiPpdu> ppdu) const override;
407 Time DoStartReceivePayload (Ptr<Event> event) override;
408 std::pair<uint16_t, WifiSpectrumBand> GetChannelWidthAndBand (const WifiTxVector& txVector, uint16_t staId) const override;
409 void RxPayloadSucceeded (Ptr<const WifiPsdu> psdu, RxSignalInfo rxSignalInfo,
410 const WifiTxVector& txVector, uint16_t staId,
411 const std::vector<bool>& statusPerMpdu) override;
412 void RxPayloadFailed (Ptr<const WifiPsdu> psdu, double snr, const WifiTxVector& txVector) override;
413 void DoEndReceivePayload (Ptr<const WifiPpdu> ppdu) override;
414 void DoResetReceive (Ptr<Event> event) override;
415 void DoAbortCurrentReception (WifiPhyRxfailureReason reason) override;
416 uint64_t ObtainNextUid (const WifiTxVector& txVector) override;
417 Ptr<SpectrumValue> GetTxPowerSpectralDensity (double txPowerW, Ptr<const WifiPpdu> ppdu, const WifiTxVector& txVector) const override;
418 uint32_t GetMaxPsduSize (void) const override;
419 WifiConstPsduMap GetWifiConstPsduMap (Ptr<const WifiPsdu> psdu, const WifiTxVector& txVector) const override;
420
430
440
448
462 static uint64_t CalculateNonHtReferenceRate (WifiCodeRate codeRate, uint16_t constellationSize);
463
468 static uint16_t GetUsableSubcarriers (uint16_t channelWidth);
469
474 static Time GetSymbolDuration (Time guardInterval);
475
478
479 std::map <uint16_t /* STA-ID */, EventId> m_beginOfdmaPayloadRxEvents;
480
484
485private:
486 void BuildModeList (void) override;
487 uint8_t GetNumberBccEncoders (const WifiTxVector& txVector) const override;
488 Time GetSymbolDuration (const WifiTxVector& txVector) const override;
489
497 void NotifyCcaBusy (Time duration, WifiChannelListType channelType, const std::vector<Time>& per20MHzDurations);
498
509 std::vector<Time> GetPer20MHzDurations (const Ptr<const WifiPpdu> ppdu);
510
519 static WifiMode CreateHeMcs (uint8_t index);
520
531 static Time GetValidPpduDuration (Time ppduDuration, const WifiTxVector& txVector,
532 WifiPhyBand band);
533
535
536 std::size_t m_rxHeTbPpdus;
538 std::vector<Time> m_lastPer20MHzDurations;
539}; //class HePhy
540
541} //namespace ns3
542
543#endif /* HE_PHY_H */
An identifier for simulation events.
Definition: event-id.h:54
PHY entity for HE (11ax)
Definition: he-phy.h:63
Ptr< SpectrumValue > GetTxPowerSpectralDensity(double txPowerW, Ptr< const WifiPpdu > ppdu, const WifiTxVector &txVector) const override
Definition: he-phy.cc:1189
const PpduFormats & GetPpduFormats(void) const override
Return the PPDU formats of the PHY.
Definition: he-phy.cc:171
static WifiMode GetHeMcs10(void)
Return MCS 10 from HE MCS values.
Time GetLSigDuration(WifiPreamble preamble) const override
Definition: he-phy.cc:177
static Time ConvertLSigLengthToHeTbPpduDuration(uint16_t length, const WifiTxVector &txVector, WifiPhyBand band)
Definition: he-phy.cc:291
void StartReceiveOfdmaPayload(Ptr< Event > event)
Start receiving the PSDU (i.e.
Definition: he-phy.cc:867
WifiMode GetSigAMode(void) const override
Definition: he-phy.cc:132
static WifiMode GetHeMcs5(void)
Return MCS 5 from HE MCS values.
Ptr< Event > DoGetEvent(Ptr< const WifiPpdu > ppdu, RxPowerWattPerChannelBand &rxPowersW) override
Get the event corresponding to the incoming PPDU.
Definition: he-phy.cc:441
static WifiMode GetHeMcs4(void)
Return MCS 4 from HE MCS values.
WifiSpectrumBand GetNonOfdmaBand(const WifiTxVector &txVector, uint16_t staId) const
Get the band used to transmit the non-OFDMA part of an HE TB PPDU.
Definition: he-phy.cc:954
void SetObssPdAlgorithm(const Ptr< ObssPdAlgorithm > algorithm)
Sets the OBSS-PD algorithm.
Definition: he-phy.cc:656
static WifiMode GetHeMcs3(void)
Return MCS 3 from HE MCS values.
void DoAbortCurrentReception(WifiPhyRxfailureReason reason) override
Perform amendment-specific actions before aborting the current reception.
Definition: he-phy.cc:408
static WifiMode GetHeMcs8(void)
Return MCS 8 from HE MCS values.
Time CalculateTxDuration(WifiConstPsduMap psduMap, const WifiTxVector &txVector, WifiPhyBand band) const override
Definition: he-phy.cc:1326
std::pair< uint16_t, WifiSpectrumBand > GetChannelWidthAndBand(const WifiTxVector &txVector, uint16_t staId) const override
Get the channel width and band to use (will be overloaded by child classes).
Definition: he-phy.cc:906
uint8_t GetBssColor(void) const
Definition: he-phy.cc:528
virtual PhyFieldRxStatus ProcessSigB(Ptr< Event > event, PhyFieldRxStatus status)
Process SIG-B, perform amendment-specific actions, and provide an updated status of the reception.
Definition: he-phy.cc:677
Time GetSigBDuration(const WifiTxVector &txVector) const override
Definition: he-phy.cc:209
static WifiMode CreateHeMcs(uint8_t index)
Create and return the HE MCS corresponding to the provided index.
Definition: he-phy.cc:1414
static WifiMode GetHeMcs(uint8_t index)
Return the HE MCS corresponding to the provided index.
Definition: he-phy.cc:1364
WifiConstPsduMap GetWifiConstPsduMap(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) const override
Get a WifiConstPsduMap from a PSDU and the TXVECTOR to use to send the PSDU.
Definition: he-phy.cc:1569
uint16_t GetNonOfdmaWidth(HeRu::RuSpec ru) const
Get the width in MHz of the non-OFDMA portion of an HE TB PPDU.
Definition: he-phy.cc:974
void BuildModeList(void) override
Build mode list.
Definition: he-phy.cc:97
static uint64_t CalculateNonHtReferenceRate(WifiCodeRate codeRate, uint16_t constellationSize)
Return the rate (in bps) of the non-HT Reference Rate which corresponds to the supplied code rate and...
Definition: he-phy.cc:1541
std::map< uint16_t, EventId > m_beginOfdmaPayloadRxEvents
the beginning of the OFDMA payload reception events (indexed by STA-ID)
Definition: he-phy.h:479
void SetEndOfHeSigACallback(EndOfHeSigACallback callback)
Set a callback for a end of HE-SIG-A.
Definition: he-phy.cc:662
Time m_trigVectorExpirationTime
expiration time of the TRIGVECTOR
Definition: he-phy.h:483
uint64_t GetCurrentHeTbPpduUid(void) const
Definition: he-phy.cc:986
uint64_t m_previouslyTxPpduUid
UID of the previously sent PPDU, used by AP to recognize response HE TB PPDUs.
Definition: he-phy.h:476
static WifiCodeRate GetCodeRate(uint8_t mcsValue)
Return the coding rate corresponding to the supplied HE MCS index.
Definition: he-phy.cc:1430
PhyFieldRxStatus ProcessSig(Ptr< Event > event, PhyFieldRxStatus status, WifiPpduField field) override
Process SIG-A or SIG-B, perform amendment-specific actions, and provide an updated status of the rece...
Definition: he-phy.cc:561
WifiSpectrumBand GetRuBandForRx(const WifiTxVector &txVector, uint16_t staId) const
Get the band in the RX spectrum associated with the RU used by the PSDU transmitted to/by a given STA...
Definition: he-phy.cc:937
EndOfHeSigACallback m_endOfHeSigACallback
end of HE-SIG-A callback
Definition: he-phy.h:481
Ptr< const WifiPsdu > GetAddressedPsduInPpdu(Ptr< const WifiPpdu > ppdu) const override
Get the PSDU addressed to that PHY in a PPDU (useful for MU PPDU).
Definition: he-phy.cc:516
WifiMode GetSigMode(WifiPpduField field, const WifiTxVector &txVector) const override
Get the WifiMode for the SIG field specified by the PPDU field.
Definition: he-phy.cc:110
uint64_t ObtainNextUid(const WifiTxVector &txVector) override
Obtain the next UID for the PPDU to transmit.
Definition: he-phy.cc:1169
uint32_t GetMaxPsduSize(void) const override
Get the maximum PSDU size in bytes.
Definition: he-phy.cc:1583
WifiTxVector m_trigVector
the TRIGVECTOR
Definition: he-phy.h:482
Callback< void, HeSigAParameters > EndOfHeSigACallback
Callback upon end of HE-SIG-A.
Definition: he-phy.h:70
static uint64_t GetPhyRateFromTxVector(const WifiTxVector &txVector, uint16_t staId=SU_STA_ID)
Return the PHY rate corresponding to the supplied TXVECTOR for the STA-ID.
Definition: he-phy.cc:1465
void CancelAllEvents(void) override
Cancel and clear all running events.
Definition: he-phy.cc:396
Ptr< ObssPdAlgorithm > m_obssPdAlgorithm
OBSS-PD algorithm.
Definition: he-phy.h:537
static WifiMode GetHeMcs0(void)
Return MCS 0 from HE MCS values.
uint16_t GetCenterFrequencyForNonOfdmaPart(const WifiTxVector &txVector, uint16_t staId) const
Get the center frequency of the non-OFDMA part of the current TxVector for the given STA-ID.
Definition: he-phy.cc:1278
static void InitializeModes(void)
Initialize all HE modes.
Definition: he-phy.cc:1355
Time CalculateNonOfdmaDurationForHeTb(const WifiTxVector &txVector) const
Definition: he-phy.cc:302
static Time GetValidPpduDuration(Time ppduDuration, const WifiTxVector &txVector, WifiPhyBand band)
Given a PPDU duration value, the TXVECTOR used to transmit the PPDU and the PHY band,...
Definition: he-phy.cc:267
uint8_t GetNumberBccEncoders(const WifiTxVector &txVector) const override
Definition: he-phy.cc:323
static WifiMode GetHeMcs6(void)
Return MCS 6 from HE MCS values.
static bool IsAllowed(const WifiTxVector &txVector)
Check whether the combination in TXVECTOR is allowed.
Definition: he-phy.cc:1563
std::size_t m_rxHeTbPpdus
Number of successfully received HE TB PPDUS.
Definition: he-phy.h:536
static WifiMode GetHeMcs2(void)
Return MCS 2 from HE MCS values.
static WifiMode GetHeMcs7(void)
Return MCS 7 from HE MCS values.
static WifiMode GetHeMcs1(void)
Return MCS 1 from HE MCS values.
static WifiMode GetHeMcs9(void)
Return MCS 9 from HE MCS values.
Ptr< WifiPpdu > BuildPpdu(const WifiConstPsduMap &psdus, const WifiTxVector &txVector, Time ppduDuration) override
Build amendment-specific PPDU.
Definition: he-phy.cc:345
void NotifyEndOfHeSigA(HeSigAParameters params)
Fire a EndOfHeSigA callback (if connected) once HE-SIG-A field has been received.
Definition: he-phy.cc:668
static uint64_t GetDataRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
Return the data rate corresponding to the supplied HE MCS index, channel width, guard interval,...
Definition: he-phy.cc:1493
Time CalculateNonOfdmaDurationForHeMu(const WifiTxVector &txVector) const
Definition: he-phy.cc:312
void RxPayloadSucceeded(Ptr< const WifiPsdu > psdu, RxSignalInfo rxSignalInfo, const WifiTxVector &txVector, uint16_t staId, const std::vector< bool > &statusPerMpdu) override
Perform amendment-specific actions when the payload is successfully received.
Definition: he-phy.cc:798
static uint64_t GetPhyRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
Return the PHY rate corresponding to the supplied HE MCS index, channel width, guard interval,...
Definition: he-phy.cc:1457
uint64_t m_currentMuPpduUid
UID of the HE MU or HE TB PPDU being received.
Definition: he-phy.h:477
virtual ~HePhy()
Destructor for HE PHY.
Definition: he-phy.cc:91
void StartTx(Ptr< const WifiPpdu > ppdu, const WifiTxVector &txVector) override
This function is called by SpectrumWifiPhy to send the PPDU while performing amendment-specific actio...
Definition: he-phy.cc:1300
static const PpduFormats m_hePpduFormats
HE PPDU formats.
Definition: he-phy.h:534
static uint64_t GetDataRateFromTxVector(const WifiTxVector &txVector, uint16_t staId=SU_STA_ID)
Return the data rate corresponding to the supplied TXVECTOR for the STA-ID.
Definition: he-phy.cc:1479
std::vector< Time > GetPer20MHzDurations(const Ptr< const WifiPpdu > ppdu)
Compute the per-20 MHz CCA durations vector that indicates for how long each 20 MHz subchannel (corre...
Definition: he-phy.cc:1083
void RxPayloadFailed(Ptr< const WifiPsdu > psdu, double snr, const WifiTxVector &txVector) override
Perform amendment-specific actions when the payload is unsuccessfully received.
Definition: he-phy.cc:815
double GetCcaThreshold(const Ptr< const WifiPpdu > ppdu, WifiChannelListType channelType) const override
Return the CCA threshold in dBm for a given channel type.
Definition: he-phy.cc:1010
HePhy(bool buildModeList=true)
Constructor for HE PHY.
Definition: he-phy.cc:73
bool IsConfigSupported(Ptr< const WifiPpdu > ppdu) const override
Checks if the signaled configuration (excluding bandwidth) is supported by the PHY.
Definition: he-phy.cc:695
uint16_t GetStaId(const Ptr< const WifiPpdu > ppdu) const override
Return the STA ID that has been assigned to the station this PHY belongs to.
Definition: he-phy.cc:543
static Time GetSymbolDuration(Time guardInterval)
Definition: he-phy.cc:1527
void SetTrigVector(const WifiTxVector &trigVector, Time validity)
Set the TRIGVECTOR and the associated expiration time.
Definition: he-phy.cc:337
static std::pair< uint16_t, Time > ConvertHeTbPpduDurationToLSigLength(Time ppduDuration, const WifiTxVector &txVector, WifiPhyBand band)
Compute the L-SIG length value corresponding to the given HE TB PPDU duration.
Definition: he-phy.cc:278
static uint64_t GetNonHtReferenceRate(uint8_t mcsValue)
Calculate the rate in bps of the non-HT Reference Rate corresponding to the supplied HE MCS index.
Definition: he-phy.cc:1533
WifiSpectrumBand GetRuBandForTx(const WifiTxVector &txVector, uint16_t staId) const
Get the band in the TX spectrum associated with the RU used by the PSDU transmitted to/by a given STA...
Definition: he-phy.cc:920
WifiMode GetSigBMode(const WifiTxVector &txVector) const override
Definition: he-phy.cc:138
void SwitchMaybeToCcaBusy(const Ptr< const WifiPpdu > ppdu) override
Check if PHY state should move to CCA busy state based on current state of interference tracker.
Definition: he-phy.cc:1040
Time DoStartReceivePayload(Ptr< Event > event) override
Start receiving the PSDU (i.e.
Definition: he-phy.cc:728
void StartReceivePreamble(Ptr< const WifiPpdu > ppdu, RxPowerWattPerChannelBand &rxPowersW, Time rxDuration) override
Start receiving the PHY preamble of a PPDU (i.e.
Definition: he-phy.cc:356
virtual PhyFieldRxStatus ProcessSigA(Ptr< Event > event, PhyFieldRxStatus status)
Process SIG-A, perform amendment-specific actions, and provide an updated status of the reception.
Definition: he-phy.cc:578
void DoEndReceivePayload(Ptr< const WifiPpdu > ppdu) override
Perform amendment-specific actions at the end of the reception of the payload.
Definition: he-phy.cc:826
void DoResetReceive(Ptr< Event > event) override
Perform amendment-specific actions before resetting PHY at the end of the PPDU under reception after ...
Definition: he-phy.cc:426
static WifiMode GetHeMcs11(void)
Return MCS 11 from HE MCS values.
Time GetSigADuration(WifiPreamble preamble) const override
Definition: he-phy.cc:203
Time GetTrainingDuration(const WifiTxVector &txVector, uint8_t nDataLtf, uint8_t nExtensionLtf=0) const override
Definition: he-phy.cc:183
std::vector< Time > m_lastPer20MHzDurations
Hold the last per-20 MHz CCA durations vector.
Definition: he-phy.h:538
void NotifyCcaBusy(const Ptr< const WifiPpdu > ppdu, Time duration, WifiChannelListType channelType) override
Notify PHY state helper to switch to CCA busy state,.
Definition: he-phy.cc:1066
uint16_t GetMeasurementChannelWidth(const Ptr< const WifiPpdu > ppdu) const override
Return the channel width used to measure the RSSI.
Definition: he-phy.cc:992
static uint16_t GetConstellationSize(uint8_t mcsValue)
Return the constellation size corresponding to the supplied HE MCS index.
Definition: he-phy.cc:1444
RU Specification.
Definition: he-ru.h:68
static uint16_t GetUsableSubcarriers(void)
Definition: ofdm-phy.cc:585
std::map< WifiPreamble, std::vector< WifiPpduField > > PpduFormats
A map of PPDU field elements per preamble type.
Definition: phy-entity.h:489
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:104
PHY entity for VHT (11ac)
Definition: vht-phy.h:49
represent a single transmission mode
Definition: wifi-mode.h:48
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
WifiPhyRxfailureReason
Enumeration of the possible reception failure reasons.
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
WifiPhyBand
Identifies the PHY band.
Definition: wifi-phy-band.h:33
WifiChannelListType
Enumeration of the possible channel-list parameter elements defined in Table 8-5 of IEEE 802....
WifiPpduField
The type of PPDU field (grouped for convenience)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::unordered_map< uint16_t, Ptr< const WifiPsdu > > WifiConstPsduMap
Map of const PSDUs indexed by STA-ID.
std::pair< uint32_t, uint32_t > WifiSpectrumBand
typedef for a pair of start and stop sub-band indexes
std::map< WifiSpectrumBand, double > RxPowerWattPerChannelBand
A map of the received power (Watts) for each band.
Definition: phy-entity.h:77
uint16_t WifiCodeRate
These constants define the various convolutional coding rates used for the OFDM transmission modes in...
Parameters for received HE-SIG-A for OBSS_PD based SR.
Definition: he-phy.h:49
uint8_t bssColor
BSS color.
Definition: he-phy.h:51
double rssiW
RSSI in W.
Definition: he-phy.h:50
Status of the reception of the PPDU field.
Definition: phy-entity.h:113
RxSignalInfo structure containing info on the received signal.
Definition: phy-entity.h:69
#define SU_STA_ID
Definition: wifi-mode.h:32