A Discrete-Event Network Simulator
API
extended-capabilities.h
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2017
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: S├ębastien Deronne <sebastien.deronne@gmail.com>
19  */
20 
21 #ifndef EXTENDED_CAPABILITIES_H
22 #define EXTENDED_CAPABILITIES_H
23 
25 
26 namespace ns3 {
27 
35 {
36 public:
38 
39  // Implementations of pure virtual methods of WifiInformationElement
40  WifiInformationElementId ElementId () const override;
41  uint8_t GetInformationFieldSize () const override;
42  void SerializeInformationField (Buffer::Iterator start) const override;
44  uint8_t length) override;
45  /* This information element is a bit special in that it is only
46  included if the STA is a HT STA. To support this we
47  override the Serialize and GetSerializedSize methods of
48  WifiInformationElement. */
50  uint16_t GetSerializedSize () const override;
51 
57  void SetHtSupported (uint8_t htSupported);
63  void SetVhtSupported (uint8_t vhtSupported);
64 
70  void SetExtendedCapabilitiesByte1 (uint8_t ctrl);
76  void SetExtendedCapabilitiesByte2 (uint8_t ctrl);
82  void SetExtendedCapabilitiesByte3 (uint8_t ctrl);
88  void SetExtendedCapabilitiesByte4 (uint8_t ctrl);
94  void SetExtendedCapabilitiesByte5 (uint8_t ctrl);
100  void SetExtendedCapabilitiesByte6 (uint8_t ctrl);
106  void SetExtendedCapabilitiesByte7 (uint8_t ctrl);
112  void SetExtendedCapabilitiesByte8 (uint8_t ctrl);
113 
119  uint8_t GetExtendedCapabilitiesByte1 (void) const;
125  uint8_t GetExtendedCapabilitiesByte2 (void) const;
131  uint8_t GetExtendedCapabilitiesByte3 (void) const;
137  uint8_t GetExtendedCapabilitiesByte4 (void) const;
143  uint8_t GetExtendedCapabilitiesByte5 (void) const;
149  uint8_t GetExtendedCapabilitiesByte6 (void) const;
155  uint8_t GetExtendedCapabilitiesByte7 (void) const;
161  uint8_t GetExtendedCapabilitiesByte8 (void) const;
162 
163 
164 private:
165  //fields if HT supported
169  uint8_t m_spsmpSupport;
170 
171  //fields if VHT supported
172  uint8_t m_event;
173  uint8_t m_diagnostics;
176  uint8_t m_fms;
179  uint8_t m_civicLocation;
181 
182  uint8_t m_tfs;
183  uint8_t m_wnmSleepMode;
184  uint8_t m_timBroadcast;
185  uint8_t m_bssTransition;
188  uint8_t m_multipleBssid;
190 
191  uint8_t m_channelUsage;
192  uint8_t m_ssidList;
193  uint8_t m_dms;
194  uint8_t m_utcTsfOffset;
198  uint8_t m_interworking;
199 
200  uint8_t m_qosMap;
201  uint8_t m_ebr;
202  uint8_t m_sspnInterface;
204  uint8_t m_tdlsSupport;
207 
213  uint8_t m_qabCapability;
214 
215  uint8_t m_utf8Ssid;
216  uint8_t m_qmfActivated;
219  uint8_t m_advancedGcr;
220  uint8_t m_meshGcr;
221  uint8_t m_scs;
222  uint8_t m_qloadReport;
223 
224  uint8_t m_alternateEdca;
231 
232  uint8_t m_htSupported;
233  uint8_t m_vhtSupported;
234 };
235 
244 std::ostream &operator << (std::ostream &os, const ExtendedCapabilities &extendedCapabilities);
245 
246 } //namespace ns3
247 
248 #endif /* EXTENDED_CAPABILITIES_H */
uint8_t m_tdlsPeerPsmSupport
TDLS Peer PSM Support.
uint8_t m_protectedTxopNegotiation
Protected TXOP Negotiation.
uint8_t m_rejectUnadmittedFrame
Reject Unadmitted Frame.
uint8_t m_tdlsProhibited
TDLS Prohibited.
uint8_t m_spsmpSupport
S-PSMP Support.
void SetHtSupported(uint8_t htSupported)
Set the HT Supported flag.
uint8_t m_tdlsChannelSwitchingProhibited
TDLS Channel Switching Prohibited.
uint8_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
void SetExtendedCapabilitiesByte5(uint8_t ctrl)
Set the fifth byte in the Extended Capabilities information element.
uint8_t GetExtendedCapabilitiesByte2(void) const
Return the second byte in the Extended Capabilities information element.
def start()
Definition: core.py:1855
uint8_t m_alternateEdca
Alternate EDCA.
The Extended Capabilities Information ElementThis class knows how to serialise and deserialise the Ex...
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
uint8_t m_serviceIntervalGranularity
Service Interval Granularity.
uint8_t m_maxNumberOfMsdusInAmsdu
Max Number Of MSDUs In A-MSDU.
uint8_t m_proxyArpService
Proxy ARP Service.
uint8_t m_qmfActivated
QMFActivated.
void SetExtendedCapabilitiesByte1(uint8_t ctrl)
Set the first byte in the Extended Capabilities information element.
uint8_t m_uapsdCoexistence
U-APSD Coexistence.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
void SetExtendedCapabilitiesByte8(uint8_t ctrl)
Set the eighth byte in the Extended Capabilities information element.
uint8_t m_extendedChannelSwitching
Extended Channel Switching.
uint8_t m_locationTracking
Location Tracking.
uint8_t m_msgcfCapability
MSGCF Capability.
void SetExtendedCapabilitiesByte2(uint8_t ctrl)
Set the second byte in the Extended Capabilities information element.
uint8_t GetExtendedCapabilitiesByte7(void) const
Return the seventh byte in the Extended Capabilities information element.
uint8_t m_diagnostics
Diagnostics.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
uint8_t m_unprotectedTxopNegotiation
Unprotected TXOP Negotiation.
uint8_t GetExtendedCapabilitiesByte3(void) const
Return the third byte in the Extended Capabilities information element.
uint8_t GetExtendedCapabilitiesByte4(void) const
Return the fourth byte in the Extended Capabilities information element.
iterator in a Buffer instance
Definition: buffer.h:98
uint8_t GetExtendedCapabilitiesByte8(void) const
Return the eighth byte in the Extended Capabilities information element.
uint8_t m_psmpCapability
PSMP Capability.
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition: angles.cc:137
void SetVhtSupported(uint8_t vhtSupported)
Set the VHT Supported flag.
Information element, as defined in 802.11-2007 standardThe IEEE 802.11 standard includes the notion o...
uint8_t m_timBroadcast
TIM Broadcast.
uint8_t m_advancedGcr
Advanced GCR.
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_wnmSleepMode
WNM Sleep Mode.
WifiInformationElementId ElementId() const override
uint8_t m_geospatialLocation
Geospatial Location.
uint8_t m_interworking
Interworking.
uint8_t m_tdlsSupport
TDLS Support.
uint8_t m_acStationCount
AC Station Count.
uint8_t GetExtendedCapabilitiesByte1(void) const
Return the first byte in the Extended Capabilities information element.
uint8_t m_bssTransition
BSS Transition.
uint8_t m_vhtSupported
Flag to indicate VHT is supported in order to decide whether this element should be added to the fram...
uint8_t m_protectedQloadReport
Protected QLoad Report.
uint8_t m_20_40_bssCoexistenceManagementSupport
20/40 BSS Coexistence Management Support
uint8_t m_wnmNotification
WNM Notification.
uint8_t m_robustAvStreaming
Robust AV Streaming.
uint8_t m_collocatedInterferenceReporting
Collocated Interference Reporting.
uint8_t m_tdlsWiderBandwidth
TDLS Wider Bandwidth.
void SetExtendedCapabilitiesByte6(uint8_t ctrl)
Set the sixth byte in the Extended Capabilities information element.
uint8_t m_civicLocation
Civic Location.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t m_qosTrafficCapability
QoS Traffic Capability.
void SetExtendedCapabilitiesByte3(uint8_t ctrl)
Set the third byte in the Extended Capabilities information element.
uint8_t m_sspnInterface
SSPN Interface.
uint8_t m_identifierLocation
Identifier Location.
uint8_t m_qabCapability
QAB Capability.
uint8_t m_channelUsage
Channel Usage.
uint8_t m_utcTsfOffset
UTC TSF Offset.
uint8_t m_multicastDiagnostics
Multicast Diagnostics.
uint8_t m_multipleBssid
Multiple BSSID.
uint8_t GetExtendedCapabilitiesByte5(void) const
Return the fifth byte in the Extended Capabilities information element.
uint8_t m_tdlsChannelSwitching
TDLS Channel Switching.
uint8_t m_tpuBufferStaSupport
TPU Buffer STA Support.
uint8_t m_timingMeasurement
Timing Measurement.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
void SetExtendedCapabilitiesByte4(uint8_t ctrl)
Set the fourth byte in the Extended Capabilities information element.
uint8_t m_htSupported
Flag to indicate HT is supported in order to decide whether this element should be added to the frame...
uint8_t m_qmfReconfigurationActivated
QMFReconfigurationActivated.
uint8_t GetExtendedCapabilitiesByte6(void) const
Return the sixth byte in the Extended Capabilities information element.
uint8_t m_qloadReport
QLoad Report.
void SetExtendedCapabilitiesByte7(uint8_t ctrl)
Set the seventh byte in the Extended Capabilities information element.
uint8_t m_operatingModeNotification
Operating Mode Notification.