A Discrete-Event Network Simulator
API
ht-capabilities.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013
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  * Authors: Ghada Badawy <gbadawy@rim.com>
18  * Sébastien Deronne <sebastien.deronne@gmail.com>
19  */
20 
21 #include "ht-capabilities.h"
22 
23 namespace ns3
24 {
25 
27  : m_ldpc(0),
28  m_supportedChannelWidth(0),
29  m_smPowerSave(0),
30  m_greenField(0),
31  m_shortGuardInterval20(0),
32  m_shortGuardInterval40(0),
33  m_txStbc(0),
34  m_rxStbc(0),
35  m_htDelayedBlockAck(0),
36  m_maxAmsduLength(0),
37  m_dssMode40(0),
38  m_psmpSupport(0),
39  m_fortyMhzIntolerant(0),
40  m_lsigProtectionSupport(0),
41  m_maxAmpduLengthExponent(0),
42  m_minMpduStartSpace(0),
43  m_ampduReserved(0),
44  m_reservedMcsSet1(0),
45  m_rxHighestSupportedDataRate(0),
46  m_reservedMcsSet2(0),
47  m_txMcsSetDefined(0),
48  m_txRxMcsSetUnequal(0),
49  m_txMaxNSpatialStreams(0),
50  m_txUnequalModulation(0),
51  m_reservedMcsSet3(0),
52  m_pco(0),
53  m_pcoTransitionTime(0),
54  m_reservedExtendedCapabilities(0),
55  m_mcsFeedback(0),
56  m_htcSupport(0),
57  m_reverseDirectionResponder(0),
58  m_reservedExtendedCapabilities2(0),
59  m_implicitRxBfCapable(0),
60  m_rxStaggeredSoundingCapable(0),
61  m_txStaggeredSoundingCapable(0),
62  m_rxNdpCapable(0),
63  m_txNdpCapable(0),
64  m_implicitTxBfCapable(0),
65  m_calibration(0),
66  m_explicitCsiTxBfCapable(0),
67  m_explicitNoncompressedSteeringCapable(0),
68  m_explicitCompressedSteeringCapable(0),
69  m_explicitTxBfCsiFeedback(0),
70  m_explicitNoncompressedBfFeedbackCapable(0),
71  m_explicitCompressedBfFeedbackCapable(0),
72  m_minimalGrouping(0),
73  m_csiNBfAntennasSupported(0),
74  m_noncompressedSteeringNBfAntennasSupported(0),
75  m_compressedSteeringNBfAntennasSupported(0),
76  m_csiMaxNRowsBfSupported(0),
77  m_channelEstimationCapability(0),
78  m_reservedTxBf(0),
79  m_antennaSelectionCapability(0),
80  m_explicitCsiFeedbackBasedTxASelCapable(0),
81  m_antennaIndicesFeedbackBasedTxASelCapable(0),
82  m_explicitCsiFeedbackCapable(0),
83  m_antennaIndicesFeedbackCapable(0),
84  m_rxASelCapable(0),
85  m_txSoundingPpdusCapable(0),
86  m_reservedASel(0)
87 {
88  for (uint8_t i = 0; i < MAX_SUPPORTED_MCS; i++)
89  {
90  m_rxMcsBitmask[i] = 0;
91  }
92 }
93 
96 {
97  return IE_HT_CAPABILITIES;
98 }
99 
100 void
101 HtCapabilities::Print(std::ostream& os) const
102 {
103  os << "HT Capabilities=" << bool(GetLdpc()) << "|" << bool(GetSupportedChannelWidth()) << "|"
104  << bool(GetShortGuardInterval20()) << "|";
105  for (uint8_t i = 0; i < MAX_SUPPORTED_MCS; i++)
106  {
107  os << IsSupportedMcs(i) << " ";
108  }
109 }
110 
111 void
113 {
114  m_ldpc = ldpc;
115 }
116 
117 void
118 HtCapabilities::SetSupportedChannelWidth(uint8_t supportedChannelWidth)
119 {
120  m_supportedChannelWidth = supportedChannelWidth;
121 }
122 
123 void
124 HtCapabilities::SetShortGuardInterval20(uint8_t shortGuardInterval)
125 {
126  m_shortGuardInterval20 = shortGuardInterval;
127 }
128 
129 void
130 HtCapabilities::SetShortGuardInterval40(uint8_t shortGuardInterval)
131 {
132  m_shortGuardInterval40 = shortGuardInterval;
133 }
134 
135 void
136 HtCapabilities::SetMaxAmsduLength(uint16_t maxAmsduLength)
137 {
138  NS_ABORT_MSG_IF(maxAmsduLength != 3839 && maxAmsduLength != 7935,
139  "Invalid A-MSDU Max Length value");
140  m_maxAmsduLength = (maxAmsduLength == 3839 ? 0 : 1);
141 }
142 
143 void
145 {
146  m_lsigProtectionSupport = lSigProtection;
147 }
148 
149 void
150 HtCapabilities::SetMaxAmpduLength(uint32_t maxAmpduLength)
151 {
152  for (uint8_t i = 0; i <= 3; i++)
153  {
154  if ((1UL << (13 + i)) - 1 == maxAmpduLength)
155  {
157  return;
158  }
159  }
160  NS_ABORT_MSG("Invalid A-MPDU Max Length value");
161 }
162 
163 void
165 {
166  m_rxMcsBitmask[index] = 1;
167 }
168 
169 void
171 {
172  m_rxHighestSupportedDataRate = maxSupportedRate;
173 }
174 
175 void
176 HtCapabilities::SetTxMcsSetDefined(uint8_t txMcsSetDefined)
177 {
178  m_txMcsSetDefined = txMcsSetDefined;
179 }
180 
181 void
182 HtCapabilities::SetTxRxMcsSetUnequal(uint8_t txRxMcsSetUnequal)
183 {
184  m_txRxMcsSetUnequal = txRxMcsSetUnequal;
185 }
186 
187 void
188 HtCapabilities::SetTxMaxNSpatialStreams(uint8_t maxTxSpatialStreams)
189 {
190  m_txMaxNSpatialStreams = maxTxSpatialStreams - 1; // 0 for 1 SS, 1 for 2 SSs, etc
191 }
192 
193 void
194 HtCapabilities::SetTxUnequalModulation(uint8_t txUnequalModulation)
195 {
196  m_txUnequalModulation = txUnequalModulation;
197 }
198 
199 uint8_t
201 {
202  return m_ldpc;
203 }
204 
205 uint8_t
207 {
209 }
210 
211 uint8_t
213 {
214  return m_shortGuardInterval20;
215 }
216 
217 uint16_t
219 {
220  if (m_maxAmsduLength == 0)
221  {
222  return 3839;
223  }
224  return 7935;
225 }
226 
227 uint32_t
229 {
230  return (1UL << (13 + m_maxAmpduLengthExponent)) - 1;
231 }
232 
233 bool
235 {
236  return m_rxMcsBitmask[mcs] == 1;
237 }
238 
239 uint8_t
241 {
242  for (uint8_t nRx = 2; nRx <= 4; nRx++)
243  {
244  uint8_t maxMcs = (7 * nRx) + (nRx - 1);
245 
246  for (uint8_t mcs = (nRx - 1) * 8; mcs <= maxMcs; mcs++)
247  {
248  if (!IsSupportedMcs(mcs))
249  {
250  return (nRx - 1);
251  }
252  }
253  }
254  return 4;
255 }
256 
257 uint16_t
259 {
260  return 26;
261 }
262 
263 uint16_t
265 {
266  uint16_t val = 0;
267  val |= m_ldpc & 0x01;
268  val |= (m_supportedChannelWidth & 0x01) << 1;
269  val |= (m_smPowerSave & 0x03) << 2;
270  val |= (m_greenField & 0x01) << 4;
271  val |= (m_shortGuardInterval20 & 0x01) << 5;
272  val |= (m_shortGuardInterval40 & 0x01) << 6;
273  val |= (m_txStbc & 0x01) << 7;
274  val |= (m_rxStbc & 0x03) << 8;
275  val |= (m_htDelayedBlockAck & 0x01) << 10;
276  val |= (m_maxAmsduLength & 0x01) << 11;
277  val |= (m_dssMode40 & 0x01) << 12;
278  val |= (m_psmpSupport & 0x01) << 13;
279  val |= (m_fortyMhzIntolerant & 0x01) << 14;
280  val |= (m_lsigProtectionSupport & 0x01) << 15;
281  return val;
282 }
283 
284 void
286 {
287  m_ldpc = ctrl & 0x01;
288  m_supportedChannelWidth = (ctrl >> 1) & 0x01;
289  m_smPowerSave = (ctrl >> 2) & 0x03;
290  m_greenField = (ctrl >> 4) & 0x01;
291  m_shortGuardInterval20 = (ctrl >> 5) & 0x01;
292  m_shortGuardInterval40 = (ctrl >> 6) & 0x01;
293  m_txStbc = (ctrl >> 7) & 0x01;
294  m_rxStbc = (ctrl >> 8) & 0x03;
295  m_htDelayedBlockAck = (ctrl >> 10) & 0x01;
296  m_maxAmsduLength = (ctrl >> 11) & 0x01;
297  m_dssMode40 = (ctrl >> 12) & 0x01;
298  m_psmpSupport = (ctrl >> 13) & 0x01;
299  m_fortyMhzIntolerant = (ctrl >> 14) & 0x01;
300  m_lsigProtectionSupport = (ctrl >> 15) & 0x01;
301 }
302 
303 void
305 {
306  m_maxAmpduLengthExponent = ctrl & 0x03;
307  m_minMpduStartSpace = (ctrl >> 2) & 0x1b;
308  m_ampduReserved = (ctrl >> 5) & 0xe0;
309 }
310 
311 uint8_t
313 {
314  uint8_t val = 0;
315  val |= m_maxAmpduLengthExponent & 0x03;
316  val |= (m_minMpduStartSpace & 0x1b) << 2;
317  val |= (m_ampduReserved & 0xe0) << 5;
318  return val;
319 }
320 
321 void
322 HtCapabilities::SetSupportedMcsSet(uint64_t ctrl1, uint64_t ctrl2)
323 {
324  for (uint64_t i = 0; i < 77; i++)
325  {
326  if (i < 64)
327  {
328  m_rxMcsBitmask[i] = (ctrl1 >> i) & 0x01;
329  }
330  else
331  {
332  m_rxMcsBitmask[i] = (ctrl2 >> (i - 64)) & 0x01;
333  }
334  }
335  m_reservedMcsSet1 = (ctrl2 >> 13) & 0x07;
336  m_rxHighestSupportedDataRate = (ctrl2 >> 16) & 0x03ff;
337  m_reservedMcsSet2 = (ctrl2 >> 26) & 0x3f;
338  m_txMcsSetDefined = (ctrl2 >> 32) & 0x01;
339  m_txRxMcsSetUnequal = (ctrl2 >> 33) & 0x01;
340  m_txMaxNSpatialStreams = (ctrl2 >> 34) & 0x03;
341  m_txUnequalModulation = (ctrl2 >> 36) & 0x01;
342  m_reservedMcsSet3 = (ctrl2 >> 37) & 0x07ffffff;
343 }
344 
345 uint64_t
347 {
348  uint64_t val = 0;
349  for (uint64_t i = 63; i > 0; i--)
350  {
351  val = (val << 1) | (m_rxMcsBitmask[i] & 0x01);
352  }
353  val = (val << 1) | (m_rxMcsBitmask[0] & 0x01);
354  return val;
355 }
356 
357 uint64_t
359 {
360  uint64_t val = 0;
361  val = val | (m_reservedMcsSet3 & 0x07ffffff);
362  val = (val << 1) | (m_txUnequalModulation & 0x01);
363  val = (val << 2) | (m_txMaxNSpatialStreams & 0x03);
364  val = (val << 1) | (m_txRxMcsSetUnequal & 0x01);
365  val = (val << 1) | (m_txMcsSetDefined & 0x01);
366  val = (val << 6) | (m_reservedMcsSet2 & 0x3f);
367  val = (val << 10) | (m_rxHighestSupportedDataRate & 0x3ff);
368  val = (val << 3) | (m_reservedMcsSet1 & 0x07);
369 
370  for (uint64_t i = 13; i > 0; i--)
371  {
372  val = (val << 1) | (m_rxMcsBitmask[i + 63] & 0x01);
373  }
374  return val;
375 }
376 
377 uint16_t
379 {
380  uint16_t val = 0;
381  val |= m_pco & 0x01;
382  val |= (m_pcoTransitionTime & 0x03) << 1;
383  val |= (m_reservedExtendedCapabilities & 0x1f) << 3;
384  val |= (m_mcsFeedback & 0x03) << 8;
385  val |= (m_htcSupport & 0x01) << 10;
386  val |= (m_reverseDirectionResponder & 0x01) << 11;
387  val |= (m_reservedExtendedCapabilities2 & 0x0f) << 12;
388  return val;
389 }
390 
391 void
393 {
394  m_pco = ctrl & 0x01;
395  m_pcoTransitionTime = (ctrl >> 1) & 0x03;
396  m_reservedExtendedCapabilities = (ctrl >> 3) & 0x1f;
397  m_mcsFeedback = (ctrl >> 8) & 0x03;
398  m_htcSupport = (ctrl >> 10) & 0x01;
399  m_reverseDirectionResponder = (ctrl >> 11) & 0x01;
400  m_reservedExtendedCapabilities2 = (ctrl >> 12) & 0x0f;
401 }
402 
403 uint32_t
405 {
406  uint32_t val = 0;
407  val |= m_implicitRxBfCapable & 0x01;
408  val |= (m_rxStaggeredSoundingCapable & 0x01) << 1;
409  val |= (m_txStaggeredSoundingCapable & 0x01) << 2;
410  val |= (m_rxNdpCapable & 0x01) << 3;
411  val |= (m_txNdpCapable & 0x01) << 4;
412  val |= (m_implicitTxBfCapable & 0x01) << 5;
413  val |= (m_calibration & 0x03) << 6;
414  val |= (m_explicitCsiTxBfCapable & 0x01) << 8;
415  val |= (m_explicitNoncompressedSteeringCapable & 0x01) << 9;
416  val |= (m_explicitCompressedSteeringCapable & 0x01) << 10;
417  val |= (m_explicitTxBfCsiFeedback & 0x03) << 11;
418  val |= (m_explicitNoncompressedBfFeedbackCapable & 0x03) << 13;
419  val |= (m_explicitCompressedBfFeedbackCapable & 0x03) << 15;
420  val |= (m_minimalGrouping & 0x03) << 17;
421  val |= (m_csiNBfAntennasSupported & 0x03) << 19;
422  val |= (m_noncompressedSteeringNBfAntennasSupported & 0x03) << 21;
423  val |= (m_compressedSteeringNBfAntennasSupported & 0x03) << 23;
424  val |= (m_csiMaxNRowsBfSupported & 0x03) << 25;
425  val |= (m_channelEstimationCapability & 0x03) << 27;
426  val |= (m_reservedTxBf & 0x07) << 29;
427  return val;
428 }
429 
430 void
432 {
433  m_implicitRxBfCapable = ctrl & 0x01;
434  m_rxStaggeredSoundingCapable = (ctrl >> 1) & 0x01;
435  m_txStaggeredSoundingCapable = (ctrl >> 2) & 0x01;
436  m_rxNdpCapable = (ctrl >> 3) & 0x01;
437  m_txNdpCapable = (ctrl >> 4) & 0x01;
438  m_implicitTxBfCapable = (ctrl >> 5) & 0x01;
439  m_calibration = (ctrl >> 6) & 0x03;
440  m_explicitCsiTxBfCapable = (ctrl >> 8) & 0x01;
441  m_explicitNoncompressedSteeringCapable = (ctrl >> 9) & 0x01;
442  m_explicitCompressedSteeringCapable = (ctrl >> 10) & 0x01;
443  m_explicitTxBfCsiFeedback = (ctrl >> 11) & 0x03;
444  m_explicitNoncompressedBfFeedbackCapable = (ctrl >> 13) & 0x03;
445  m_explicitCompressedBfFeedbackCapable = (ctrl >> 15) & 0x03;
446  m_minimalGrouping = (ctrl >> 17) & 0x03;
447  m_csiNBfAntennasSupported = (ctrl >> 19) & 0x03;
448  m_noncompressedSteeringNBfAntennasSupported = (ctrl >> 21) & 0x03;
449  m_compressedSteeringNBfAntennasSupported = (ctrl >> 23) & 0x03;
450  m_csiMaxNRowsBfSupported = (ctrl >> 25) & 0x03;
451  m_channelEstimationCapability = (ctrl >> 27) & 0x03;
452  m_reservedTxBf = (ctrl >> 29) & 0x07;
453 }
454 
455 uint8_t
457 {
458  uint8_t val = 0;
459  val |= m_antennaSelectionCapability & 0x01;
460  val |= (m_explicitCsiFeedbackBasedTxASelCapable & 0x01) << 1;
461  val |= (m_antennaIndicesFeedbackBasedTxASelCapable & 0x01) << 2;
462  val |= (m_explicitCsiFeedbackCapable & 0x01) << 3;
463  val |= (m_antennaIndicesFeedbackCapable & 0x01) << 4;
464  val |= (m_rxASelCapable & 0x01) << 5;
465  val |= (m_txSoundingPpdusCapable & 0x01) << 6;
466  val |= (m_reservedASel & 0x01) << 7;
467  return val;
468 }
469 
470 void
472 {
473  m_antennaSelectionCapability = ctrl & 0x01;
474  m_explicitCsiFeedbackBasedTxASelCapable = (ctrl >> 1) & 0x01;
475  m_antennaIndicesFeedbackBasedTxASelCapable = (ctrl >> 2) & 0x01;
476  m_explicitCsiFeedbackCapable = (ctrl >> 3) & 0x01;
477  m_antennaIndicesFeedbackCapable = (ctrl >> 4) & 0x01;
478  m_rxASelCapable = (ctrl >> 5) & 0x01;
479  m_txSoundingPpdusCapable = (ctrl >> 6) & 0x01;
480  m_reservedASel = (ctrl >> 7) & 0x01;
481 }
482 
483 void
485 {
486  // write the corresponding value for each bit
487  start.WriteHtolsbU16(GetHtCapabilitiesInfo());
488  start.WriteU8(GetAmpduParameters());
489  start.WriteHtolsbU64(GetSupportedMcsSet1());
490  start.WriteHtolsbU64(GetSupportedMcsSet2());
491  start.WriteU16(GetExtendedHtCapabilities());
492  start.WriteU32(GetTxBfCapabilities());
494 }
495 
496 uint16_t
498 {
500  uint16_t htinfo = i.ReadLsbtohU16();
501  uint8_t ampduparam = i.ReadU8();
502  uint64_t mcsset1 = i.ReadLsbtohU64();
503  uint64_t mcsset2 = i.ReadLsbtohU64();
504  uint16_t extendedcapabilities = i.ReadU16();
505  uint32_t txbfcapabilities = i.ReadU32();
506  uint8_t aselcapabilities = i.ReadU8();
507  SetHtCapabilitiesInfo(htinfo);
508  SetAmpduParameters(ampduparam);
509  SetSupportedMcsSet(mcsset1, mcsset2);
510  SetExtendedHtCapabilities(extendedcapabilities);
511  SetTxBfCapabilities(txbfcapabilities);
512  SetAntennaSelectionCapabilities(aselcapabilities);
513  return length;
514 }
515 
516 } // namespace ns3
iterator in a Buffer instance
Definition: buffer.h:100
uint8_t ReadU8()
Definition: buffer.h:1027
uint16_t ReadLsbtohU16()
Definition: buffer.cc:1064
uint64_t ReadLsbtohU64()
Definition: buffer.cc:1094
uint32_t ReadU32()
Definition: buffer.cc:966
uint16_t ReadU16()
Definition: buffer.h:1035
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:49
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
Definition: abort.h:108
#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