A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
eht-phy.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 DERONNE SOFTWARE ENGINEERING
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Sébastien Deronne <sebastien.deronne@gmail.com>
18 */
19
20#include "eht-phy.h"
21
22#include "eht-ppdu.h"
23
24#include "ns3/interference-helper.h"
25#include "ns3/wifi-phy.h"
26#include "ns3/wifi-psdu.h"
27#include "ns3/wifi-utils.h"
28
29#undef NS_LOG_APPEND_CONTEXT
30#define NS_LOG_APPEND_CONTEXT WIFI_PHY_NS_LOG_APPEND_CONTEXT(m_wifiPhy)
31
32namespace ns3
33{
34
36
37/*******************************************************
38 * EHT PHY (P802.11be/D1.5)
39 *******************************************************/
40
41// clang-format off
42
45 WIFI_PPDU_FIELD_NON_HT_HEADER, // L-SIG + RL-SIG
46 WIFI_PPDU_FIELD_U_SIG, // U-SIG
47 WIFI_PPDU_FIELD_EHT_SIG, // EHT-SIG
48 WIFI_PPDU_FIELD_TRAINING, // EHT-STF + EHT-LTFs
51 WIFI_PPDU_FIELD_NON_HT_HEADER, // L-SIG + RL-SIG
52 WIFI_PPDU_FIELD_U_SIG, // U-SIG
53 WIFI_PPDU_FIELD_TRAINING, // EHT-STF + EHT-LTFs
55};
56
57// clang-format on
58
59EhtPhy::EhtPhy(bool buildModeList /* = true */)
60 : HePhy(false) // don't add HE modes to list
61{
62 NS_LOG_FUNCTION(this << buildModeList);
66 if (buildModeList)
67 {
69 }
70}
71
73{
74 NS_LOG_FUNCTION(this);
75}
76
77void
79{
80 NS_LOG_FUNCTION(this);
81 NS_ASSERT(m_modeList.empty());
83 for (uint8_t index = 0; index <= m_maxSupportedMcsIndexPerSs; ++index)
84 {
85 NS_LOG_LOGIC("Add EhtMcs" << +index << " to list");
86 m_modeList.emplace_back(CreateEhtMcs(index));
87 }
88}
89
91EhtPhy::GetSigMode(WifiPpduField field, const WifiTxVector& txVector) const
92{
93 switch (field)
94 {
96 return GetSigAMode(); // U-SIG is similar to SIG-A
98 return GetSigBMode(txVector); // EHT-SIG is similar to SIG-B
99 default:
100 return HePhy::GetSigMode(field, txVector);
101 }
102}
103
105EhtPhy::GetSigBMode(const WifiTxVector& txVector) const
106{
107 if (txVector.IsDlMu())
108 {
109 return HePhy::GetSigBMode(txVector);
110 }
111 // we get here in case of EHT SU transmission
112 // TODO fix the MCS used for EHT-SIG
113 auto smallestMcs = std::min<uint8_t>(5, txVector.GetMode().GetMcsValue());
114 return VhtPhy::GetVhtMcs(smallestMcs);
115}
116
117Time
118EhtPhy::GetDuration(WifiPpduField field, const WifiTxVector& txVector) const
119{
120 switch (field)
121 {
123 return GetSigADuration(txVector.GetPreambleType()); // U-SIG is similar to SIG-A
125 return GetSigBDuration(txVector); // EHT-SIG is similar to SIG-B
127 [[fallthrough]];
129 return NanoSeconds(0);
130 default:
131 return HePhy::GetDuration(field, txVector);
132 }
133}
134
136EhtPhy::GetSigBSize(const WifiTxVector& txVector) const
137{
138 if (ns3::IsDlMu(txVector.GetPreambleType()) && ns3::IsEht(txVector.GetPreambleType()))
139 {
141 txVector.GetChannelWidth(),
142 txVector.GetRuAllocation(
144 txVector.GetEhtPpduType(),
145 txVector.IsSigBCompression(),
146 txVector.IsSigBCompression() ? txVector.GetHeMuUserInfoMap().size() : 0);
147 }
148 return HePhy::GetSigBSize(txVector);
149}
150
151Time
153{
154 Time duration = GetDuration(WIFI_PPDU_FIELD_PREAMBLE, txVector) +
157 return duration;
158}
159
160Time
162{
163 Time duration = GetDuration(WIFI_PPDU_FIELD_PREAMBLE, txVector) +
167 return duration;
168}
169
172{
173 return m_ehtPpduFormats;
174}
175
177EhtPhy::BuildPpdu(const WifiConstPsduMap& psdus, const WifiTxVector& txVector, Time ppduDuration)
178{
179 NS_LOG_FUNCTION(this << psdus << txVector << ppduDuration);
180 return Create<EhtPpdu>(psdus,
181 txVector,
183 ppduDuration,
184 ObtainNextUid(txVector),
186}
187
190{
191 NS_LOG_FUNCTION(this << field << *event);
192 switch (field)
193 {
195 [[fallthrough]];
197 return EndReceiveSig(event, field);
198 default:
199 return HePhy::DoEndReceiveField(field, event);
200 }
201}
202
205{
206 NS_LOG_FUNCTION(this << *event << status << field);
207 switch (field)
208 {
210 return ProcessSigA(event, status); // U-SIG is similar to SIG-A
212 return ProcessSigB(event, status); // EHT-SIG is similar to SIG-B
213 default:
214 return HePhy::ProcessSig(event, status, field);
215 }
216 return status;
217}
218
221{
222 switch (field)
223 {
225 return U_SIG_FAILURE;
227 return EHT_SIG_FAILURE;
228 default:
229 return HePhy::GetFailureReason(field);
230 }
231}
232
233void
235{
236 for (uint8_t i = 0; i <= 13; ++i)
237 {
238 GetEhtMcs(i);
239 }
240}
241
243EhtPhy::GetEhtMcs(uint8_t index)
244{
245#define CASE(x) \
246 case x: \
247 return GetEhtMcs##x();
248
249 switch (index)
250 {
251 CASE(0)
252 CASE(1)
253 CASE(2)
254 CASE(3)
255 CASE(4)
256 CASE(5)
257 CASE(6)
258 CASE(7)
259 CASE(8)
260 CASE(9)
261 CASE(10)
262 CASE(11)
263 CASE(12)
264 CASE(13)
265 default:
266 NS_ABORT_MSG("Inexistent index (" << +index << ") requested for EHT");
267 return WifiMode();
268 }
269#undef CASE
270}
271
272#define GET_EHT_MCS(x) \
273 WifiMode EhtPhy::GetEhtMcs##x() \
274 { \
275 static WifiMode mcs = CreateEhtMcs(x); \
276 return mcs; \
277 }
278
289GET_EHT_MCS(10)
290GET_EHT_MCS(11)
291GET_EHT_MCS(12)
292GET_EHT_MCS(13)
293#undef GET_EHT_MCS
294
295WifiMode
297{
298 NS_ASSERT_MSG(index <= 13, "EhtMcs index must be <= 13!");
299 return WifiModeFactory::CreateWifiMcs("EhtMcs" + std::to_string(index),
300 index,
302 false,
309}
310
312EhtPhy::GetCodeRate(uint8_t mcsValue)
313{
314 switch (mcsValue)
315 {
316 case 12:
317 return WIFI_CODE_RATE_3_4;
318 case 13:
319 return WIFI_CODE_RATE_5_6;
320 default:
321 return HePhy::GetCodeRate(mcsValue);
322 }
323}
324
325uint16_t
327{
328 switch (mcsValue)
329 {
330 case 12:
331 [[fallthrough]];
332 case 13:
333 return 4096;
334 default:
335 return HePhy::GetConstellationSize(mcsValue);
336 }
337}
338
339uint64_t
340EhtPhy::GetPhyRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
341{
342 WifiCodeRate codeRate = GetCodeRate(mcsValue);
343 uint64_t dataRate = GetDataRate(mcsValue, channelWidth, guardInterval, nss);
344 return HtPhy::CalculatePhyRate(codeRate, dataRate);
345}
346
347uint64_t
348EhtPhy::GetPhyRateFromTxVector(const WifiTxVector& txVector, uint16_t staId /* = SU_STA_ID */)
349{
350 uint16_t bw = txVector.GetChannelWidth();
351 if (txVector.IsMu())
352 {
353 bw = HeRu::GetBandwidth(txVector.GetRu(staId).GetRuType());
354 }
355 return EhtPhy::GetPhyRate(txVector.GetMode(staId).GetMcsValue(),
356 bw,
357 txVector.GetGuardInterval(),
358 txVector.GetNss(staId));
359}
360
361uint64_t
362EhtPhy::GetDataRateFromTxVector(const WifiTxVector& txVector, uint16_t staId /* = SU_STA_ID */)
363{
364 uint16_t bw = txVector.GetChannelWidth();
365 if (txVector.IsMu())
366 {
367 bw = HeRu::GetBandwidth(txVector.GetRu(staId).GetRuType());
368 }
369 return EhtPhy::GetDataRate(txVector.GetMode(staId).GetMcsValue(),
370 bw,
371 txVector.GetGuardInterval(),
372 txVector.GetNss(staId));
373}
374
375uint64_t
376EhtPhy::GetDataRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
377{
378 NS_ASSERT(guardInterval == 800 || guardInterval == 1600 || guardInterval == 3200);
379 NS_ASSERT(nss <= 8);
381 GetUsableSubcarriers(channelWidth),
382 static_cast<uint16_t>(log2(GetConstellationSize(mcsValue))),
384 nss);
385}
386
387uint64_t
389{
390 WifiCodeRate codeRate = GetCodeRate(mcsValue);
391 uint16_t constellationSize = GetConstellationSize(mcsValue);
392 return CalculateNonHtReferenceRate(codeRate, constellationSize);
393}
394
395uint64_t
396EhtPhy::CalculateNonHtReferenceRate(WifiCodeRate codeRate, uint16_t constellationSize)
397{
398 uint64_t dataRate;
399 switch (constellationSize)
400 {
401 case 4096:
402 if (codeRate == WIFI_CODE_RATE_3_4 || codeRate == WIFI_CODE_RATE_5_6)
403 {
404 dataRate = 54000000;
405 }
406 else
407 {
408 NS_FATAL_ERROR("Trying to get reference rate for a MCS with wrong combination of "
409 "coding rate and modulation");
410 }
411 break;
412 default:
413 dataRate = HePhy::CalculateNonHtReferenceRate(codeRate, constellationSize);
414 }
415 return dataRate;
416}
417
418} // namespace ns3
419
420namespace
421{
422
427{
428 public:
430 {
433 }
435
436} // namespace
Constructor class for EHT modes.
Definition: eht-phy.cc:427
static const PpduFormats m_ehtPpduFormats
EHT PPDU formats.
Definition: eht-phy.h:292
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: eht-phy.cc:396
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: eht-phy.cc:204
static WifiCodeRate GetCodeRate(uint8_t mcsValue)
Return the coding rate corresponding to the supplied EHT MCS index.
Definition: eht-phy.cc:312
WifiMode GetSigMode(WifiPpduField field, const WifiTxVector &txVector) const override
Get the WifiMode for the SIG field specified by the PPDU field.
Definition: eht-phy.cc:91
static uint16_t GetConstellationSize(uint8_t mcsValue)
Return the constellation size corresponding to the supplied EHT MCS index.
Definition: eht-phy.cc:326
WifiPhyRxfailureReason GetFailureReason(WifiPpduField field) const override
Get the failure reason corresponding to the unsuccessful processing of a given PPDU field.
Definition: eht-phy.cc:220
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: eht-phy.cc:348
static WifiMode GetEhtMcs(uint8_t index)
Return the EHT MCS corresponding to the provided index.
Definition: eht-phy.cc:243
void BuildModeList() override
Build mode list.
Definition: eht-phy.cc:78
static void InitializeModes()
Initialize all EHT modes.
Definition: eht-phy.cc:234
static WifiMode CreateEhtMcs(uint8_t index)
Create and return the EHT MCS corresponding to the provided index.
Definition: eht-phy.cc:296
const PpduFormats & GetPpduFormats() const override
Return the PPDU formats of the PHY.
Definition: eht-phy.cc:171
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: eht-phy.cc:362
~EhtPhy() override
Destructor for EHT PHY.
Definition: eht-phy.cc:72
uint32_t GetSigBSize(const WifiTxVector &txVector) const override
Definition: eht-phy.cc:136
Time CalculateNonHeDurationForHeTb(const WifiTxVector &txVector) const override
Definition: eht-phy.cc:152
EhtPhy(bool buildModeList=true)
Constructor for EHT PHY.
Definition: eht-phy.cc:59
Ptr< WifiPpdu > BuildPpdu(const WifiConstPsduMap &psdus, const WifiTxVector &txVector, Time ppduDuration) override
Build amendment-specific PPDU.
Definition: eht-phy.cc:177
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: eht-phy.cc:388
Time GetDuration(WifiPpduField field, const WifiTxVector &txVector) const override
Get the duration of the PPDU field (or group of fields) used by this entity for the given transmissio...
Definition: eht-phy.cc:118
static uint64_t GetDataRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
Return the data rate corresponding to the supplied EHT MCS index, channel width, guard interval,...
Definition: eht-phy.cc:376
Time CalculateNonHeDurationForHeMu(const WifiTxVector &txVector) const override
Definition: eht-phy.cc:161
static uint64_t GetPhyRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
Return the PHY rate corresponding to the supplied EHT MCS index, channel width, guard interval,...
Definition: eht-phy.cc:340
WifiMode GetSigBMode(const WifiTxVector &txVector) const override
Definition: eht-phy.cc:105
PhyFieldRxStatus DoEndReceiveField(WifiPpduField field, Ptr< Event > event) override
End receiving a given field, perform amendment-specific actions, and provide the status of the recept...
Definition: eht-phy.cc:189
static uint32_t GetEhtSigFieldSize(uint16_t channelWidth, const std::vector< uint8_t > &ruAllocation, uint8_t ehtPpduType, bool compression, std::size_t numMuMimoUsers)
Get variable length EHT-SIG field size.
Definition: eht-ppdu.cc:203
PHY entity for HE (11ax)
Definition: he-phy.h:68
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:731
Time GetSigBDuration(const WifiTxVector &txVector) const override
Definition: he-phy.cc:239
virtual uint32_t GetSigBSize(const WifiTxVector &txVector) const
Definition: he-phy.cc:223
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:1728
static WifiCodeRate GetCodeRate(uint8_t mcsValue)
Return the coding rate corresponding to the supplied HE MCS index.
Definition: he-phy.cc:1616
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:593
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:120
uint64_t ObtainNextUid(const WifiTxVector &txVector) override
Obtain the next UID for the PPDU to transmit.
Definition: he-phy.cc:1275
static bool IsAllowed(const WifiTxVector &txVector)
Check whether the combination in TXVECTOR is allowed.
Definition: he-phy.cc:1751
static Time GetSymbolDuration(Time guardInterval)
Definition: he-phy.cc:1714
WifiMode GetSigBMode(const WifiTxVector &txVector) const override
Definition: he-phy.cc:149
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:610
WifiMode GetSigAMode() const override
Definition: he-phy.cc:143
Time GetSigADuration(WifiPreamble preamble) const override
Definition: he-phy.cc:215
static uint16_t GetConstellationSize(uint8_t mcsValue)
Return the constellation size corresponding to the supplied HE MCS index.
Definition: he-phy.cc:1630
@ PSD_NON_HE_PORTION
Non-HE portion of an HE PPDU.
Definition: he-ppdu.h:116
RuType GetRuType() const
Get the RU type.
Definition: he-ru.cc:454
static uint16_t GetBandwidth(RuType ruType)
Get the approximate bandwidth occupied by a RU.
Definition: he-ru.cc:763
static uint64_t CalculatePhyRate(WifiCodeRate codeRate, uint64_t dataRate)
Return the PHY rate corresponding to the supplied code rate and data rate.
Definition: ht-phy.cc:660
uint8_t m_bssMembershipSelector
the BSS membership selector
Definition: ht-phy.h:561
PhyFieldRxStatus DoEndReceiveField(WifiPpduField field, Ptr< Event > event) override
End receiving a given field, perform amendment-specific actions, and provide the status of the recept...
Definition: ht-phy.cc:393
uint8_t m_maxMcsIndexPerSs
the maximum MCS index per spatial stream as defined by the standard
Definition: ht-phy.h:559
Time GetDuration(WifiPpduField field, const WifiTxVector &txVector) const override
Get the duration of the PPDU field (or group of fields) used by this entity for the given transmissio...
Definition: ht-phy.cc:213
static uint64_t CalculateDataRate(Time symbolDuration, uint16_t usableSubCarriers, uint16_t numberOfBitsPerSubcarrier, double codingRate, uint8_t nss)
Calculates data rate from the supplied parameters.
Definition: ht-phy.cc:708
static double GetCodeRatio(WifiCodeRate codeRate)
Convert WifiCodeRate to a ratio, e.g., code ratio of WIFI_CODE_RATE_1_2 is 0.5.
Definition: ht-phy.cc:675
uint8_t m_maxSupportedMcsIndexPerSs
the maximum supported MCS index per spatial stream
Definition: ht-phy.h:560
static uint16_t GetUsableSubcarriers()
Definition: ofdm-phy.cc:634
Ptr< WifiPhy > m_wifiPhy
Pointer to the owning WifiPhy.
Definition: phy-entity.h:981
std::map< WifiPreamble, std::vector< WifiPpduField > > PpduFormats
A map of PPDU field elements per preamble type.
Definition: phy-entity.h:561
std::list< WifiMode > m_modeList
the list of supported modes
Definition: phy-entity.h:985
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
PhyFieldRxStatus EndReceiveSig(Ptr< Event > event, WifiPpduField field)
End receiving the SIG-A or SIG-B, perform VHT-specific actions, and provide the status of the recepti...
Definition: vht-phy.cc:277
static WifiMode GetVhtMcs(uint8_t index)
Return the VHT MCS corresponding to the provided index.
Definition: vht-phy.cc:345
virtual WifiPhyRxfailureReason GetFailureReason(WifiPpduField field) const
Get the failure reason corresponding to the unsuccessful processing of a given PPDU field.
Definition: vht-phy.cc:302
static WifiMode CreateWifiMcs(std::string uniqueName, uint8_t mcsValue, WifiModulationClass modClass, bool isMandatory, CodeRateCallback codeRateCallback, ConstellationSizeCallback constellationSizeCallback, PhyRateCallback phyRateCallback, DataRateCallback dataRateCallback, NonHtReferenceRateCallback nonHtReferenceRateCallback, AllowedCallback isAllowedCallback)
Definition: wifi-mode.cc:318
represent a single transmission mode
Definition: wifi-mode.h:51
uint8_t GetMcsValue() const
Definition: wifi-mode.cc:163
static void AddStaticPhyEntity(WifiModulationClass modulation, Ptr< PhyEntity > phyEntity)
Add the PHY entity to the map of implemented PHY entities for the given modulation class.
Definition: wifi-phy.cc:771
const WifiPhyOperatingChannel & GetOperatingChannel() const
Get a const reference to the operating channel.
Definition: wifi-phy.cc:1051
uint8_t GetPrimaryChannelIndex(uint16_t primaryChannelWidth) const
If the operating channel width is a multiple of 20 MHz, return the index of the primary channel of th...
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
uint16_t GetGuardInterval() const
bool IsSigBCompression() const
Indicate whether the Common field is present in the HE-SIG-B field.
const RuAllocation & GetRuAllocation(uint8_t p20Index) const
Get RU_ALLOCATION field.
WifiMode GetMode(uint16_t staId=SU_STA_ID) const
If this TX vector is associated with an SU PPDU, return the selected payload transmission mode.
WifiPreamble GetPreambleType() const
HeRu::RuSpec GetRu(uint16_t staId) const
Get the RU specification for the STA-ID.
bool IsDlMu() const
const HeMuUserInfoMap & GetHeMuUserInfoMap() const
Get a const reference to the map HE MU user-specific transmission information indexed by STA-ID.
uint8_t GetEhtPpduType() const
Get the EHT_PPDU_TYPE parameter.
uint8_t GetNss(uint16_t staId=SU_STA_ID) const
If this TX vector is associated with an SU PPDU, return the number of spatial streams.
uint16_t GetChannelWidth() const
#define GET_EHT_MCS(x)
Definition: eht-phy.cc:272
#define CASE(x)
Declaration of ns3::EhtPhy class.
#define EHT_PHY
This defines the BSS membership value for EHT PHY.
Definition: eht-phy.h:37
Declaration of ns3::EhtPpdu class.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Definition: assert.h:66
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Definition: assert.h:86
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
Definition: fatal-error.h:179
#define NS_ABORT_MSG(msg)
Unconditional abnormal program termination with a message.
Definition: abort.h:49
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Definition: log.h:282
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
auto MakeBoundCallback(R(*fnPtr)(Args...), BArgs &&... bargs)
Make Callbacks with varying number of bound arguments.
Definition: callback.h:765
Time NanoSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1362
WifiPhyRxfailureReason
Enumeration of the possible reception failure reasons.
WifiPpduField
The type of PPDU field (grouped for convenience)
@ U_SIG_FAILURE
@ EHT_SIG_FAILURE
@ WIFI_PREAMBLE_EHT_TB
@ WIFI_PREAMBLE_EHT_MU
@ WIFI_MOD_CLASS_EHT
EHT (Clause 36)
@ WIFI_PPDU_FIELD_SIG_B
SIG-B field.
@ WIFI_PPDU_FIELD_TRAINING
STF + LTF fields (excluding those in preamble for HT-GF)
@ WIFI_PPDU_FIELD_NON_HT_HEADER
PHY header field for DSSS or ERP, short PHY header field for HR/DSSS or ERP, field not present for HT...
@ WIFI_PPDU_FIELD_EHT_SIG
EHT-SIG field.
@ WIFI_PPDU_FIELD_PREAMBLE
SYNC + SFD fields for DSSS or ERP, shortSYNC + shortSFD fields for HR/DSSS or ERP,...
@ WIFI_PPDU_FIELD_U_SIG
U-SIG field.
@ WIFI_PPDU_FIELD_DATA
data field
@ WIFI_PPDU_FIELD_SIG_A
SIG-A field.
class anonymous_namespace{eht-phy.cc}::ConstructorEht g_constructor_eht
the constructor for EHT modes
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.
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...
Definition: callback.h:704
bool IsEht(WifiPreamble preamble)
Return true if a preamble corresponds to an EHT transmission.
bool IsDlMu(WifiPreamble preamble)
Return true if a preamble corresponds to a downlink multi-user transmission.
WifiCodeRate
These constants define the various convolutional coding rates used for the OFDM transmission modes in...
@ WIFI_CODE_RATE_3_4
3/4 coding rate
@ WIFI_CODE_RATE_5_6
5/6 coding rate
Status of the reception of the PPDU field.
Definition: phy-entity.h:112