A Discrete-Event Network Simulator
API
he-capabilities.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2016
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  * Author: Sébastien Deronne <sebastien.deronne@gmail.com>
19  */
20 
21 #ifndef HE_CAPABILITIES_H
22 #define HE_CAPABILITIES_H
23 
25 
26 namespace ns3 {
27 
34 {
35 public:
36  HeCapabilities ();
37 
38  // Implementations of pure virtual methods of WifiInformationElement
41  uint8_t GetInformationFieldSize () const;
43  uint8_t DeserializeInformationField (Buffer::Iterator start, uint8_t length);
44  /* This information element is a bit special in that it is only
45  included if the STA is an HE STA. To support this we
46  override the Serialize and GetSerializedSize methods of
47  WifiInformationElement. */
49  uint16_t GetSerializedSize () const;
50 
55  void SetHeSupported (uint8_t heSupported);
56 
63  void SetHeMacCapabilitiesInfo (uint32_t ctrl1, uint8_t ctrl2);
70  void SetHePhyCapabilitiesInfo (uint64_t ctrl1, uint8_t ctrl2);
76  void SetSupportedMcsAndNss (uint16_t ctrl);
77 
83  uint32_t GetHeMacCapabilitiesInfo1 () const;
89  uint8_t GetHeMacCapabilitiesInfo2 () const;
95  uint64_t GetHePhyCapabilitiesInfo1 () const;
101  uint8_t GetHePhyCapabilitiesInfo2 () const;
107  uint16_t GetSupportedMcsAndNss () const;
108 
109  // PHY Capabilities Info fields
115  void SetChannelWidthSet (uint8_t channelWidthSet);
121  void SetHeLtfAndGiForHePpdus (uint8_t heLtfAndGiForHePpdus);
127  uint8_t GetChannelWidthSet (void) const;
133  uint8_t GetHeLtfAndGiForHePpdus (void) const;
139  uint8_t GetHighestMcsSupported (void) const;
145  uint8_t GetHighestNssSupported (void) const;
146 
147  // MAC Capabilities Info fields
153  void SetMaxAmpduLength (uint32_t maxAmpduLength);
154 
155  // MCS and NSS field information
161  void SetHighestMcsSupported (uint8_t mcs);
167  void SetHighestNssSupported (uint8_t nss);
168 
175  bool IsSupportedTxMcs (uint8_t mcs) const;
182  bool IsSupportedRxMcs (uint8_t mcs) const;
183 
189  uint32_t GetMaxAmpduLength (void) const;
190 
191 
192 private:
193  //MAC Capabilities Info fields
203  uint8_t m_allAckSupport;
205  uint8_t m_aBsrSupport;
218  uint8_t m_qtpSupport;
219  uint8_t m_aBqrSupport;
220 
221  //PHY Capabilities Info fields
225  uint8_t m_deviceClass;
229  uint8_t m_stbcTxAndRx;
230  uint8_t m_doppler;
231  uint8_t m_ulMu;
232  uint8_t m_dcmEncodingTx;
233  uint8_t m_dcmEncodingRx;
235  uint8_t m_suBeamformer;
236  uint8_t m_suBeamformee;
237  uint8_t m_muBeamformer;
255 
256  //MCS and NSS field information
259  std::vector<uint8_t> m_txBwMap;
260  std::vector<uint8_t> m_rxBwMap;
261 
263  uint8_t m_heSupported;
264 };
265 
272 std::ostream &operator << (std::ostream &os, const HeCapabilities &HeCapabilities);
273 
274 } //namespace ns3
275 
276 #endif /* HE_CAPABILITY_H */
uint8_t m_4TimesHeLtfAnd800NsGiSupportForHePpdus
4 times HE-LFT and 800ns GI support for HE-PPDUs
uint8_t m_rxControlFrameToMultiBss
receive control frame to multi-BSS
uint8_t m_beamformeeStsForSmallerOrEqualThan80Mhz
beam formee STS for < 80 MHz
uint8_t m_heLtfAndGiForNdp
HE-LTF and GI for NDP.
uint8_t m_srpBasedSrSupport
SRP based SR support.
uint8_t m_bsrpAmpduAggregation
BSRP A-MPDU aggregation.
uint8_t GetChannelWidthSet(void) const
Get channel width set.
uint8_t m_ngEqual16ForMuFeedbackSupport
equal 16 for MU feedback
uint8_t m_numberOfSoundingDimensionsForSmallerOrEqualThan80Mhz
uint8_t m_ackEnabledMultiTidAggregationSupport
ack enabled multi-TID aggregation support
uint8_t m_minimumFragmentSize
minimum fragment size
uint8_t m_beamformeeStsForLargerThan80Mhz
beamformee STS for > 80MHz
uint8_t m_ulMuResponseSchedulingSupport
UL MU response scheduling support.
bool IsSupportedRxMcs(uint8_t mcs) const
Is RX MCS supported.
uint8_t m_muCascadeSupport
MU cascade support.
uint8_t GetHePhyCapabilitiesInfo2() const
Return the last octet of the HE PHY Capabilities Info field in the HE Capabilities information elemen...
uint16_t GetSupportedMcsAndNss() const
Return the MCS and NSS field in the HE Capabilities information element.
void SetHeSupported(uint8_t heSupported)
Set HE supported.
WifiInformationElementId ElementId() const
def start()
Definition: core.py:1855
uint8_t m_broadcastTwtSupport
broadcast TXT support
uint8_t m_twtResponderSupport
TWT responder support.
uint8_t m_heLinkAdaptation
HE link adaptation.
uint8_t m_maximumNumberOfFragmentedMsdus
maximum number of fragmentation MSDUs
void SetHighestNssSupported(uint8_t nss)
Set highest NSS supported.
uint8_t m_qtpSupport
QTP support.
uint8_t m_highestNssSupportedM1
highest NSS support M1
uint8_t m_dcmEncodingTx
DCM encoding transmit.
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length)
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
uint8_t m_plusHtcHeSupport
HTC HE support.
iterator in a Buffer instance
Definition: buffer.h:98
uint8_t m_dualBandSupport
dual band support
void SetChannelWidthSet(uint8_t channelWidthSet)
Set channel width set.
uint8_t m_nstsTotalForLargerThan80Mhz
STS total for > 80 MHz.
void SetHeLtfAndGiForHePpdus(uint8_t heLtfAndGiForHePpdus)
Set HE LTF and GI for HE PDPUs.
Information element, as defined in 802.11-2007 standardThe IEEE 802.11 standard includes the notion o...
void SetHePhyCapabilitiesInfo(uint64_t ctrl1, uint8_t ctrl2)
Set the HE PHY Capabilities Info field in the HE Capabilities information element.
uint16_t GetSerializedSize() const
uint8_t m_deviceClass
device class
uint8_t m_aBqrSupport
ABQR support.
uint8_t m_ulMu
UL MU.
void SetHighestMcsSupported(uint8_t mcs)
Set highest MCS supported.
uint64_t GetHePhyCapabilitiesInfo1() const
Return the 8 first octets of the HE PHY Capabilities Info field in the HE Capabilities information el...
uint8_t m_omControlSupport
operation mode control support
uint8_t m_suBeamformee
SU beamformee.
uint8_t m_stbcTxAndRx
STBC transmit and receive.
uint8_t m_multiTidAggregationSupport
multi-TID aggregation support
uint8_t m_heSupported
This is used to decide if this element should be added to the frame or not.
uint8_t m_fragmentationSupport
fragmentation support
uint8_t m_beamformingFeedbackWithTriggerFrame
beamforming feedback with trigger frame
uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
WifiInformationElementId ElementIdExt() const
std::vector< uint8_t > m_txBwMap
transmit BW map
uint8_t m_32bitBaBitmapSupport
32-bit BA bitmap support
uint8_t m_ngEqual16ForSuFeedbackSupport
equal 16 for SU feedback
void SetHeMacCapabilitiesInfo(uint32_t ctrl1, uint8_t ctrl2)
Set the HE MAC Capabilities Info field in the HE Capabilities information element.
uint8_t m_doppler
Doppler.
uint8_t m_allAckSupport
all Ack support
uint8_t m_ldpcCodingInPayload
LDPC coding in payload.
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition: angles.cc:42
uint8_t m_muBeamformer
MU beamformer.
uint8_t m_heErSuPpduPayload
HE-ER-SU-PPDU payload.
uint8_t m_ulHeMuPpduPayloadSupport
UL HE-MU-PDPU payload support.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t m_preamblePuncturingRx
preamble puncturing receive
uint32_t GetHeMacCapabilitiesInfo1() const
Return the 4 first octets of the HE MAC Capabilities Info field in the HE Capabilities information el...
bool IsSupportedTxMcs(uint8_t mcs) const
Is RX MCS supported.
uint8_t GetHeMacCapabilitiesInfo2() const
Return the last octet of the HE MAC Capabilities Info field in the HE Capabilities information elemen...
uint8_t GetHighestMcsSupported(void) const
Get highest MCS supported.
uint8_t GetHeLtfAndGiForHePpdus(void) const
Get HE LTF and GI for HE PDPUs.
uint32_t GetMaxAmpduLength(void) const
Return the maximum A-MPDU length.
uint8_t m_codebookSize42ForSuSupport
codebook size 42 for SU
uint8_t m_channelWidthSet
channel width set
uint8_t m_codebookSize75ForSuSupport
codebook size 75 for SU
uint8_t m_triggerFrameMacPaddingDuration
trigger frame MAC padding duration
uint8_t m_amsduFragmentationSupport
A-MSDU fragmentation support.
void SetMaxAmpduLength(uint32_t maxAmpduLength)
Set the maximum AMPDU length.
void SerializeInformationField(Buffer::Iterator start) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
uint8_t m_maxAmpduLengthExponent
maximum A-MPDU length exponent
uint8_t m_heLtfAndGiForHePpdus
HE-LTF and GI for HE-PPDUs.
uint8_t m_highestMcsSupported
highest MCS support
uint8_t m_flexibleTwtScheduleSupport
flexible TWT schedule support
uint8_t m_dlMuMimoOnPartialBandwidth
DL MU-MIMO on partial bandwidth.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
uint8_t m_powerBoostFactorAlphaSupport
power boost factor alpha support
Buffer::Iterator Serialize(Buffer::Iterator start) const
void SetSupportedMcsAndNss(uint16_t ctrl)
Set the MCS and NSS field in the HE Capabilities information element.
uint8_t m_ofdmaRaSupport
OFDMA RA support.
uint8_t m_aBsrSupport
BSR support.
uint8_t m_twtRequesterSupport
TWT requester support.
uint8_t m_dcmEncodingRx
DCM encoding receive.
uint8_t m_suBeamformer
SU beamformer.
The IEEE 802.11ax HE Capabilities.
std::vector< uint8_t > m_rxBwMap
receive BW map
uint8_t m_groupAddressedMultiStaBlockAckInDlMuSupport
group addressed multi-STA BlockAck in DL support
uint8_t GetHighestNssSupported(void) const
Get highest NSS supported.
uint8_t m_ppeThresholdPresent
PPE threshold present.
uint8_t m_numberOfSoundingDimensionsForLargerThan80Mhz
uint8_t m_nstsTotalForSmallerOrEqualThan80Mhz
STS total for < 80 MHz.