A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ht-capabilities.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2013
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Authors: Ghada Badawy <gbadawy@rim.com>
7 * Sébastien Deronne <sebastien.deronne@gmail.com>
8 */
9
10#include "ht-capabilities.h"
11
12namespace ns3
13{
14
16 : m_ldpc(0),
17 m_supportedChannelWidth(0),
18 m_smPowerSave(0),
19 m_greenField(0),
20 m_shortGuardInterval20(0),
21 m_shortGuardInterval40(0),
22 m_txStbc(0),
23 m_rxStbc(0),
24 m_htDelayedBlockAck(0),
25 m_maxAmsduLength(0),
26 m_dssMode40(0),
27 m_psmpSupport(0),
28 m_fortyMhzIntolerant(0),
29 m_lsigProtectionSupport(0),
30 m_maxAmpduLengthExponent(0),
31 m_minMpduStartSpace(0),
32 m_ampduReserved(0),
33 m_reservedMcsSet1(0),
34 m_rxHighestSupportedDataRate(0),
35 m_reservedMcsSet2(0),
36 m_txMcsSetDefined(0),
37 m_txRxMcsSetUnequal(0),
38 m_txMaxNSpatialStreams(0),
39 m_txUnequalModulation(0),
40 m_reservedMcsSet3(0),
41 m_pco(0),
42 m_pcoTransitionTime(0),
43 m_reservedExtendedCapabilities(0),
44 m_mcsFeedback(0),
45 m_htcSupport(0),
46 m_reverseDirectionResponder(0),
47 m_reservedExtendedCapabilities2(0),
48 m_implicitRxBfCapable(0),
49 m_rxStaggeredSoundingCapable(0),
50 m_txStaggeredSoundingCapable(0),
51 m_rxNdpCapable(0),
52 m_txNdpCapable(0),
53 m_implicitTxBfCapable(0),
54 m_calibration(0),
55 m_explicitCsiTxBfCapable(0),
56 m_explicitNoncompressedSteeringCapable(0),
57 m_explicitCompressedSteeringCapable(0),
58 m_explicitTxBfCsiFeedback(0),
59 m_explicitNoncompressedBfFeedbackCapable(0),
60 m_explicitCompressedBfFeedbackCapable(0),
61 m_minimalGrouping(0),
62 m_csiNBfAntennasSupported(0),
63 m_noncompressedSteeringNBfAntennasSupported(0),
64 m_compressedSteeringNBfAntennasSupported(0),
65 m_csiMaxNRowsBfSupported(0),
66 m_channelEstimationCapability(0),
67 m_reservedTxBf(0),
68 m_antennaSelectionCapability(0),
69 m_explicitCsiFeedbackBasedTxASelCapable(0),
70 m_antennaIndicesFeedbackBasedTxASelCapable(0),
71 m_explicitCsiFeedbackCapable(0),
72 m_antennaIndicesFeedbackCapable(0),
73 m_rxASelCapable(0),
74 m_txSoundingPpdusCapable(0),
75 m_reservedASel(0)
76{
77 for (uint8_t i = 0; i < MAX_SUPPORTED_MCS; i++)
78 {
79 m_rxMcsBitmask[i] = 0;
80 }
81}
82
88
89void
90HtCapabilities::Print(std::ostream& os) const
91{
92 os << "HT Capabilities=" << bool(GetLdpc()) << "|" << bool(GetSupportedChannelWidth()) << "|"
93 << bool(GetShortGuardInterval20()) << "|";
94 for (uint8_t i = 0; i < MAX_SUPPORTED_MCS; i++)
95 {
96 os << IsSupportedMcs(i) << " ";
97 }
98}
99
100void
102{
103 m_ldpc = ldpc;
104}
105
106void
107HtCapabilities::SetSupportedChannelWidth(uint8_t supportedChannelWidth)
108{
109 m_supportedChannelWidth = supportedChannelWidth;
110}
111
112void
114{
115 m_shortGuardInterval20 = shortGuardInterval;
116}
117
118void
120{
121 m_shortGuardInterval40 = shortGuardInterval;
122}
123
124void
125HtCapabilities::SetMaxAmsduLength(uint16_t maxAmsduLength)
126{
127 NS_ABORT_MSG_IF(maxAmsduLength != 3839 && maxAmsduLength != 7935,
128 "Invalid A-MSDU Max Length value");
129 m_maxAmsduLength = (maxAmsduLength == 3839 ? 0 : 1);
130}
131
132void
134{
135 m_lsigProtectionSupport = lSigProtection;
136}
137
138void
140{
141 for (uint8_t i = 0; i <= 3; i++)
142 {
143 if ((1UL << (13 + i)) - 1 == maxAmpduLength)
144 {
146 return;
147 }
148 }
149 NS_ABORT_MSG("Invalid A-MPDU Max Length value");
150}
151
152void
154{
155 m_rxMcsBitmask[index] = 1;
156}
157
158void
160{
161 m_rxHighestSupportedDataRate = maxSupportedRate;
162}
163
164void
166{
167 m_txMcsSetDefined = txMcsSetDefined;
168}
169
170void
171HtCapabilities::SetTxRxMcsSetUnequal(uint8_t txRxMcsSetUnequal)
172{
173 m_txRxMcsSetUnequal = txRxMcsSetUnequal;
174}
175
176void
177HtCapabilities::SetTxMaxNSpatialStreams(uint8_t maxTxSpatialStreams)
178{
179 m_txMaxNSpatialStreams = maxTxSpatialStreams - 1; // 0 for 1 SS, 1 for 2 SSs, etc
180}
181
182void
183HtCapabilities::SetTxUnequalModulation(uint8_t txUnequalModulation)
184{
185 m_txUnequalModulation = txUnequalModulation;
186}
187
188uint8_t
190{
191 return m_ldpc;
192}
193
194uint8_t
199
200uint8_t
205
206uint16_t
208{
209 if (m_maxAmsduLength == 0)
210 {
211 return 3839;
212 }
213 return 7935;
214}
215
218{
219 return (1UL << (13 + m_maxAmpduLengthExponent)) - 1;
220}
221
222bool
224{
225 return m_rxMcsBitmask[mcs] == 1;
226}
227
228uint8_t
230{
231 for (uint8_t nRx = 2; nRx <= 4; nRx++)
232 {
233 uint8_t maxMcs = (7 * nRx) + (nRx - 1);
234
235 for (uint8_t mcs = (nRx - 1) * 8; mcs <= maxMcs; mcs++)
236 {
237 if (!IsSupportedMcs(mcs))
238 {
239 return (nRx - 1);
240 }
241 }
242 }
243 return 4;
244}
245
246uint16_t
248{
249 return 26;
250}
251
252uint16_t
254{
255 uint16_t val = 0;
256 val |= m_ldpc & 0x01;
257 val |= (m_supportedChannelWidth & 0x01) << 1;
258 val |= (m_smPowerSave & 0x03) << 2;
259 val |= (m_greenField & 0x01) << 4;
260 val |= (m_shortGuardInterval20 & 0x01) << 5;
261 val |= (m_shortGuardInterval40 & 0x01) << 6;
262 val |= (m_txStbc & 0x01) << 7;
263 val |= (m_rxStbc & 0x03) << 8;
264 val |= (m_htDelayedBlockAck & 0x01) << 10;
265 val |= (m_maxAmsduLength & 0x01) << 11;
266 val |= (m_dssMode40 & 0x01) << 12;
267 val |= (m_psmpSupport & 0x01) << 13;
268 val |= (m_fortyMhzIntolerant & 0x01) << 14;
269 val |= (m_lsigProtectionSupport & 0x01) << 15;
270 return val;
271}
272
273void
275{
276 m_ldpc = ctrl & 0x01;
277 m_supportedChannelWidth = (ctrl >> 1) & 0x01;
278 m_smPowerSave = (ctrl >> 2) & 0x03;
279 m_greenField = (ctrl >> 4) & 0x01;
280 m_shortGuardInterval20 = (ctrl >> 5) & 0x01;
281 m_shortGuardInterval40 = (ctrl >> 6) & 0x01;
282 m_txStbc = (ctrl >> 7) & 0x01;
283 m_rxStbc = (ctrl >> 8) & 0x03;
284 m_htDelayedBlockAck = (ctrl >> 10) & 0x01;
285 m_maxAmsduLength = (ctrl >> 11) & 0x01;
286 m_dssMode40 = (ctrl >> 12) & 0x01;
287 m_psmpSupport = (ctrl >> 13) & 0x01;
288 m_fortyMhzIntolerant = (ctrl >> 14) & 0x01;
289 m_lsigProtectionSupport = (ctrl >> 15) & 0x01;
290}
291
292void
294{
295 m_maxAmpduLengthExponent = ctrl & 0x03;
296 m_minMpduStartSpace = (ctrl >> 2) & 0x1b;
297 m_ampduReserved = (ctrl >> 5) & 0xe0;
298}
299
300uint8_t
302{
303 uint8_t val = 0;
304 val |= m_maxAmpduLengthExponent & 0x03;
305 val |= (m_minMpduStartSpace & 0x1b) << 2;
306 val |= (m_ampduReserved & 0xe0) << 5;
307 return val;
308}
309
310void
311HtCapabilities::SetSupportedMcsSet(uint64_t ctrl1, uint64_t ctrl2)
312{
313 for (uint64_t i = 0; i < 77; i++)
314 {
315 if (i < 64)
316 {
317 m_rxMcsBitmask[i] = (ctrl1 >> i) & 0x01;
318 }
319 else
320 {
321 m_rxMcsBitmask[i] = (ctrl2 >> (i - 64)) & 0x01;
322 }
323 }
324 m_reservedMcsSet1 = (ctrl2 >> 13) & 0x07;
325 m_rxHighestSupportedDataRate = (ctrl2 >> 16) & 0x03ff;
326 m_reservedMcsSet2 = (ctrl2 >> 26) & 0x3f;
327 m_txMcsSetDefined = (ctrl2 >> 32) & 0x01;
328 m_txRxMcsSetUnequal = (ctrl2 >> 33) & 0x01;
329 m_txMaxNSpatialStreams = (ctrl2 >> 34) & 0x03;
330 m_txUnequalModulation = (ctrl2 >> 36) & 0x01;
331 m_reservedMcsSet3 = (ctrl2 >> 37) & 0x07ffffff;
332}
333
334uint64_t
336{
337 uint64_t val = 0;
338 for (uint64_t i = 63; i > 0; i--)
339 {
340 val = (val << 1) | (m_rxMcsBitmask[i] & 0x01);
341 }
342 val = (val << 1) | (m_rxMcsBitmask[0] & 0x01);
343 return val;
344}
345
346uint64_t
348{
349 uint64_t val = 0;
350 val = val | (m_reservedMcsSet3 & 0x07ffffff);
351 val = (val << 1) | (m_txUnequalModulation & 0x01);
352 val = (val << 2) | (m_txMaxNSpatialStreams & 0x03);
353 val = (val << 1) | (m_txRxMcsSetUnequal & 0x01);
354 val = (val << 1) | (m_txMcsSetDefined & 0x01);
355 val = (val << 6) | (m_reservedMcsSet2 & 0x3f);
356 val = (val << 10) | (m_rxHighestSupportedDataRate & 0x3ff);
357 val = (val << 3) | (m_reservedMcsSet1 & 0x07);
358
359 for (uint64_t i = 13; i > 0; i--)
360 {
361 val = (val << 1) | (m_rxMcsBitmask[i + 63] & 0x01);
362 }
363 return val;
364}
365
366uint16_t
368{
369 uint16_t val = 0;
370 val |= m_pco & 0x01;
371 val |= (m_pcoTransitionTime & 0x03) << 1;
372 val |= (m_reservedExtendedCapabilities & 0x1f) << 3;
373 val |= (m_mcsFeedback & 0x03) << 8;
374 val |= (m_htcSupport & 0x01) << 10;
375 val |= (m_reverseDirectionResponder & 0x01) << 11;
376 val |= (m_reservedExtendedCapabilities2 & 0x0f) << 12;
377 return val;
378}
379
380void
382{
383 m_pco = ctrl & 0x01;
384 m_pcoTransitionTime = (ctrl >> 1) & 0x03;
385 m_reservedExtendedCapabilities = (ctrl >> 3) & 0x1f;
386 m_mcsFeedback = (ctrl >> 8) & 0x03;
387 m_htcSupport = (ctrl >> 10) & 0x01;
388 m_reverseDirectionResponder = (ctrl >> 11) & 0x01;
389 m_reservedExtendedCapabilities2 = (ctrl >> 12) & 0x0f;
390}
391
394{
395 uint32_t val = 0;
396 val |= m_implicitRxBfCapable & 0x01;
397 val |= (m_rxStaggeredSoundingCapable & 0x01) << 1;
398 val |= (m_txStaggeredSoundingCapable & 0x01) << 2;
399 val |= (m_rxNdpCapable & 0x01) << 3;
400 val |= (m_txNdpCapable & 0x01) << 4;
401 val |= (m_implicitTxBfCapable & 0x01) << 5;
402 val |= (m_calibration & 0x03) << 6;
403 val |= (m_explicitCsiTxBfCapable & 0x01) << 8;
404 val |= (m_explicitNoncompressedSteeringCapable & 0x01) << 9;
405 val |= (m_explicitCompressedSteeringCapable & 0x01) << 10;
406 val |= (m_explicitTxBfCsiFeedback & 0x03) << 11;
407 val |= (m_explicitNoncompressedBfFeedbackCapable & 0x03) << 13;
408 val |= (m_explicitCompressedBfFeedbackCapable & 0x03) << 15;
409 val |= (m_minimalGrouping & 0x03) << 17;
410 val |= (m_csiNBfAntennasSupported & 0x03) << 19;
412 val |= (m_compressedSteeringNBfAntennasSupported & 0x03) << 23;
413 val |= (m_csiMaxNRowsBfSupported & 0x03) << 25;
414 val |= (m_channelEstimationCapability & 0x03) << 27;
415 val |= (m_reservedTxBf & 0x07) << 29;
416 return val;
417}
418
419void
421{
422 m_implicitRxBfCapable = ctrl & 0x01;
423 m_rxStaggeredSoundingCapable = (ctrl >> 1) & 0x01;
424 m_txStaggeredSoundingCapable = (ctrl >> 2) & 0x01;
425 m_rxNdpCapable = (ctrl >> 3) & 0x01;
426 m_txNdpCapable = (ctrl >> 4) & 0x01;
427 m_implicitTxBfCapable = (ctrl >> 5) & 0x01;
428 m_calibration = (ctrl >> 6) & 0x03;
429 m_explicitCsiTxBfCapable = (ctrl >> 8) & 0x01;
430 m_explicitNoncompressedSteeringCapable = (ctrl >> 9) & 0x01;
431 m_explicitCompressedSteeringCapable = (ctrl >> 10) & 0x01;
432 m_explicitTxBfCsiFeedback = (ctrl >> 11) & 0x03;
433 m_explicitNoncompressedBfFeedbackCapable = (ctrl >> 13) & 0x03;
434 m_explicitCompressedBfFeedbackCapable = (ctrl >> 15) & 0x03;
435 m_minimalGrouping = (ctrl >> 17) & 0x03;
436 m_csiNBfAntennasSupported = (ctrl >> 19) & 0x03;
438 m_compressedSteeringNBfAntennasSupported = (ctrl >> 23) & 0x03;
439 m_csiMaxNRowsBfSupported = (ctrl >> 25) & 0x03;
440 m_channelEstimationCapability = (ctrl >> 27) & 0x03;
441 m_reservedTxBf = (ctrl >> 29) & 0x07;
442}
443
444uint8_t
446{
447 uint8_t val = 0;
448 val |= m_antennaSelectionCapability & 0x01;
449 val |= (m_explicitCsiFeedbackBasedTxASelCapable & 0x01) << 1;
451 val |= (m_explicitCsiFeedbackCapable & 0x01) << 3;
452 val |= (m_antennaIndicesFeedbackCapable & 0x01) << 4;
453 val |= (m_rxASelCapable & 0x01) << 5;
454 val |= (m_txSoundingPpdusCapable & 0x01) << 6;
455 val |= (m_reservedASel & 0x01) << 7;
456 return val;
457}
458
459void
461{
462 m_antennaSelectionCapability = ctrl & 0x01;
463 m_explicitCsiFeedbackBasedTxASelCapable = (ctrl >> 1) & 0x01;
465 m_explicitCsiFeedbackCapable = (ctrl >> 3) & 0x01;
466 m_antennaIndicesFeedbackCapable = (ctrl >> 4) & 0x01;
467 m_rxASelCapable = (ctrl >> 5) & 0x01;
468 m_txSoundingPpdusCapable = (ctrl >> 6) & 0x01;
469 m_reservedASel = (ctrl >> 7) & 0x01;
470}
471
472void
474{
475 // write the corresponding value for each bit
476 start.WriteHtolsbU16(GetHtCapabilitiesInfo());
477 start.WriteU8(GetAmpduParameters());
478 start.WriteHtolsbU64(GetSupportedMcsSet1());
479 start.WriteHtolsbU64(GetSupportedMcsSet2());
480 start.WriteU16(GetExtendedHtCapabilities());
481 start.WriteU32(GetTxBfCapabilities());
482 start.WriteU8(GetAntennaSelectionCapabilities());
483}
484
485uint16_t
487{
488 Buffer::Iterator i = start;
489 uint16_t htinfo = i.ReadLsbtohU16();
490 uint8_t ampduparam = i.ReadU8();
491 uint64_t mcsset1 = i.ReadLsbtohU64();
492 uint64_t mcsset2 = i.ReadLsbtohU64();
493 uint16_t extendedcapabilities = i.ReadU16();
494 uint32_t txbfcapabilities = i.ReadU32();
495 uint8_t aselcapabilities = i.ReadU8();
496 SetHtCapabilitiesInfo(htinfo);
497 SetAmpduParameters(ampduparam);
498 SetSupportedMcsSet(mcsset1, mcsset2);
499 SetExtendedHtCapabilities(extendedcapabilities);
500 SetTxBfCapabilities(txbfcapabilities);
501 SetAntennaSelectionCapabilities(aselcapabilities);
502 return length;
503}
504
505} // namespace ns3
iterator in a Buffer instance
Definition buffer.h:89
uint16_t ReadLsbtohU16()
Definition buffer.cc:1053
uint64_t ReadLsbtohU64()
Definition buffer.cc:1083
uint32_t ReadU32()
Definition buffer.cc:955
uint16_t ReadU16()
Definition buffer.h:1024
uint8_t m_calibration
calibration
void SetLdpc(uint8_t ldpc)
Set the LDPC field.
uint8_t m_reservedExtendedCapabilities2
reserver extended capabilities 2
uint8_t m_htcSupport
HTC support.
uint8_t m_shortGuardInterval40
short guard interval 40 MHz
void SetTxRxMcsSetUnequal(uint8_t txRxMcsSetUnequal)
Set the transmit / receive MCS set unequal.
uint8_t m_shortGuardInterval20
short guard interval 20 MHz
uint16_t GetMaxAmsduLength() const
Return the maximum A-MSDU length.
void SetRxHighestSupportedDataRate(uint16_t maxSupportedRate)
Set the receive highest supported data rate.
uint16_t DeserializeInformationField(Buffer::Iterator start, uint16_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
void SetLSigProtectionSupport(uint8_t lSigProtection)
Set the LSIG protection support.
uint16_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
void SetMaxAmsduLength(uint16_t maxAmsduLength)
Set the maximum AMSDU length.
void SetExtendedHtCapabilities(uint16_t ctrl)
Set the Extended HT Capabilities field in the HT Capabilities information element.
void SetAmpduParameters(uint8_t ctrl)
Set the A-MPDU Parameters field in the HT Capabilities information element.
uint8_t GetSupportedChannelWidth() const
Return the supported channel width.
uint8_t GetRxHighestSupportedAntennas() const
Return the receive highest supported antennas.
uint8_t m_explicitCompressedBfFeedbackCapable
explicit compressed BF feedback capable
uint8_t m_compressedSteeringNBfAntennasSupported
compressed steering NBF antenna supported
void SetTxMaxNSpatialStreams(uint8_t maxTxSpatialStreams)
Set the transmit maximum N spatial streams.
uint8_t m_rxStaggeredSoundingCapable
receive staggered sounding capable
uint8_t m_reservedTxBf
reserved transmit BF
uint8_t m_txMcsSetDefined
transmit MCS set defined
uint8_t m_maxAmpduLengthExponent
maximum A-MPDU length
void Print(std::ostream &os) const override
Generate human-readable form of IE.
uint64_t GetSupportedMcsSet1() const
Return the first 64 bytes of the Supported MCS Set field in the HT Capabilities information element.
uint8_t m_txSoundingPpdusCapable
sounding PPDUS capable
void SetAntennaSelectionCapabilities(uint8_t ctrl)
Set the the Antenna Selection (ASEL) Capabilities field in the HT Capabilities information element.
void SetSupportedMcsSet(uint64_t ctrl1, uint64_t ctrl2)
Set the Supported MCS Set field in the HT Capabilities information element.
uint8_t m_dssMode40
DSS mode 40.
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
uint8_t m_minimalGrouping
minimal grouping
uint8_t m_minMpduStartSpace
minimum MPDU start space
uint8_t m_txRxMcsSetUnequal
transmit / receive MCS set unequal
void SetTxBfCapabilities(uint32_t ctrl)
Set the Transmit Beamforming (TxBF) Capabilities field in the HT Capabilities information element.
uint8_t m_txStaggeredSoundingCapable
transmit staggered sounding capable
uint8_t m_maxAmsduLength
maximum A-MSDU length
uint8_t m_implicitTxBfCapable
implicit transmit BF capable
uint8_t m_htDelayedBlockAck
HT delayed block ack.
void SetShortGuardInterval20(uint8_t shortGuardInterval)
Set the short guard interval 20 field.
uint8_t m_csiMaxNRowsBfSupported
CSI maximum number rows BF supported.
uint8_t m_explicitTxBfCsiFeedback
explicit transmit BF CSI feedback
uint8_t GetLdpc() const
Return LDPC.
uint8_t m_rxNdpCapable
receive NDP capable
uint8_t m_rxMcsBitmask[MAX_SUPPORTED_MCS]
receive MCS bitmask
void SetHtCapabilitiesInfo(uint16_t ctrl)
Set the HT Capabilities Info field in the HT Capabilities information element.
void SetTxUnequalModulation(uint8_t txUnequalModulation)
Set the transmit unequal modulation.
uint8_t m_reverseDirectionResponder
reverse direction responder
uint8_t m_txNdpCapable
transmit NDP capable
void SetTxMcsSetDefined(uint8_t txMcsSetDefined)
Set the transmit MCS set defined.
uint8_t m_txUnequalModulation
transmit unequal modulation
uint8_t m_reservedExtendedCapabilities
reserved extended capabilities
uint8_t m_lsigProtectionSupport
L-SIG protection support.
uint16_t GetHtCapabilitiesInfo() const
Return the HT Capabilities Info field in the HT Capabilities information element.
uint8_t GetAntennaSelectionCapabilities() const
Return the Antenna Selection (ASEL) Capabilities field in the HT Capabilities information element.
uint8_t m_explicitCsiFeedbackCapable
explicit CSI feedback capable
uint8_t m_txMaxNSpatialStreams
transmit maximum number spatial streams
uint8_t m_explicitNoncompressedBfFeedbackCapable
explicit non compressed BF feedback capable
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
uint8_t m_pcoTransitionTime
PCO transition time.
uint64_t GetSupportedMcsSet2() const
Return the last 64 bytes of the Supported MCS Set field in the HT Capabilities information element.
uint8_t m_reservedMcsSet2
reserved MCS set 2
uint32_t GetTxBfCapabilities() const
Return the Transmit Beamforming (TxBF) Capabilities field in the HT Capabilities information element.
uint8_t m_antennaIndicesFeedbackBasedTxASelCapable
antenna indices feedback based transmit antenna selection capable
uint8_t m_explicitNoncompressedSteeringCapable
explicit non compressed steering capable
void SetRxMcsBitmask(uint8_t index)
Set the receive MCS bitmask.
uint8_t m_implicitRxBfCapable
implicit receive BF capable
void SetSupportedChannelWidth(uint8_t supportedChannelWidth)
Set the supported channel width field.
bool IsSupportedMcs(uint8_t mcs) const
Return the is MCS supported flag.
uint8_t GetAmpduParameters() const
Return the A-MPDU Parameters field in the HT Capabilities information element.
uint8_t m_mcsFeedback
MCS feedback.
uint8_t m_fortyMhzIntolerant
40 MHz intolerant
uint8_t m_channelEstimationCapability
channel estimation capability
uint8_t m_rxASelCapable
receive antenna selection capable
uint16_t m_rxHighestSupportedDataRate
receive highest supported data rate
uint8_t m_csiNBfAntennasSupported
CSI NBF antenna supported.
uint8_t m_antennaSelectionCapability
antenna selection capability
uint8_t m_txStbc
transmit STBC
uint16_t GetExtendedHtCapabilities() const
Return the Extended HT Capabilities field in the HT Capabilities information element.
uint8_t m_ampduReserved
A-MPDU reserved.
uint8_t m_antennaIndicesFeedbackCapable
antenna indices feedback capable
uint8_t m_supportedChannelWidth
supported channel width
uint32_t m_reservedMcsSet3
reserved MCS set 3
uint8_t m_greenField
Greenfield.
uint32_t GetMaxAmpduLength() const
Return the maximum A-MPDU length.
uint8_t GetShortGuardInterval20() const
Return the short guard interval 20 value.
uint8_t m_noncompressedSteeringNBfAntennasSupported
non compressed steering NBF antenna supported
void SetMaxAmpduLength(uint32_t maxAmpduLength)
Set the maximum AMPDU length.
uint8_t m_explicitCsiFeedbackBasedTxASelCapable
explicit CSI feedback based transmit antenna selection capable
void SetShortGuardInterval40(uint8_t shortGuardInterval)
Set the short guard interval 40 field.
uint8_t m_psmpSupport
PSMP support.
uint8_t m_reservedMcsSet1
reserved MCS set 1
uint8_t m_explicitCsiTxBfCapable
explicit CSI transmit BF capable
uint8_t m_explicitCompressedSteeringCapable
explicit compressed steering capable
uint8_t m_reservedASel
reserved ASEL
uint8_t m_rxStbc
receive STBC
uint8_t m_smPowerSave
SM power save.
#define NS_ABORT_MSG(msg)
Unconditional abnormal program termination with a message.
Definition abort.h:38
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
Definition abort.h:97
#define MAX_SUPPORTED_MCS
This defines the maximum number of supported MCSs that a STA is allowed to have.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
#define IE_HT_CAPABILITIES