22 #ifndef WIFI_PHY_COMMON_H
23 #define WIFI_PHY_COMMON_H
27 #include "ns3/fatal-error.h"
109 return (os <<
"LONG");
111 return (os <<
"SHORT");
113 return (os <<
"HT_MF");
115 return (os <<
"VHT_SU");
117 return (os <<
"VHT_MU");
119 return (os <<
"DMG_CTRL");
121 return (os <<
"DMG_SC");
123 return (os <<
"DMG_OFDM");
125 return (os <<
"HE_SU");
127 return (os <<
"HE_ER_SU");
129 return (os <<
"HE_MU");
131 return (os <<
"HE_TB");
133 return (os <<
"EHT_MU");
135 return (os <<
"EHT_TB");
138 return (os <<
"INVALID");
180 return (os <<
"DSSS");
182 return (os <<
"HR/DSSS");
184 return (os <<
"ERP-OFDM");
186 return (os <<
"OFDM");
190 return (os <<
"VHT");
192 return (os <<
"DMG_CTRL");
194 return (os <<
"DMG_OFDM");
196 return (os <<
"DMG_SC");
198 return (os <<
"DMG_LP_SC");
202 return (os <<
"EHT");
205 return (os <<
"unknown");
251 return (os <<
"preamble");
253 return (os <<
"non-HT header");
255 return (os <<
"HT-SIG");
257 return (os <<
"training");
259 return (os <<
"SIG-A");
261 return (os <<
"SIG-B");
263 return (os <<
"U-SIG");
265 return (os <<
"EHT-SIG");
267 return (os <<
"data");
270 return (os <<
"unknown");
300 return (os <<
"DL MU");
302 return (os <<
"UL MU");
305 return (os <<
"unknown");
354 return (os <<
"UNSUPPORTED_SETTINGS");
356 return (os <<
"CHANNEL_SWITCHING");
358 return (os <<
"RXING");
360 return (os <<
"TXING");
362 return (os <<
"SLEEPING");
364 return (os <<
"OFF");
366 return (os <<
"TRUNCATED_TX");
368 return (os <<
"BUSY_DECODING_PREAMBLE");
370 return (os <<
"PREAMBLE_DETECT_FAILURE");
372 return (os <<
"RECEPTION_ABORTED_BY_TX");
374 return (os <<
"L_SIG_FAILURE");
376 return (os <<
"HT_SIG_FAILURE");
378 return (os <<
"SIG_A_FAILURE");
380 return (os <<
"SIG_B_FAILURE");
382 return (os <<
"U_SIG_FAILURE");
384 return (os <<
"EHT_SIG_FAILURE");
386 return (os <<
"PREAMBLE_DETECTION_PACKET_SWITCH");
388 return (os <<
"FRAME_CAPTURE_PACKET_SWITCH");
390 return (os <<
"OBSS_PD_CCA_RESET");
392 return (os <<
"HE_TB_PPDU_TOO_LATE");
394 return (os <<
"FILTERED");
396 return (os <<
"DMG_HEADER_FAILURE");
398 return (os <<
"DMG_ALLOCATION_ENDED");
402 return (os <<
"UNKNOWN");
432 return (os <<
"PRIMARY");
434 return (os <<
"SECONDARY");
436 return (os <<
"SECONDARY40");
438 return (os <<
"SECONDARY80");
441 return (os <<
"UNKNOWN");
465 bool htShortGuardInterval,
466 Time heGuardInterval);
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
WifiStandard
Identifies the IEEE 802.11 specifications that a Wifi device can be configured to use.
WifiPhyRxfailureReason
Enumeration of the possible reception failure reasons.
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
WifiPpduType
The type of PPDU (SU, DL MU, or UL MU)
WifiModulationClass
This enumeration defines the modulation classes per (Table 10-6 "Modulation classes"; IEEE 802....
WifiChannelListType
Enumeration of the possible channel-list parameter elements defined in Table 8-5 of IEEE 802....
WifiPpduField
The type of PPDU field (grouped for convenience)
@ PREAMBLE_DETECT_FAILURE
@ FRAME_CAPTURE_PACKET_SWITCH
@ RECEPTION_ABORTED_BY_TX
@ PREAMBLE_DETECTION_PACKET_SWITCH
@ WIFI_MOD_CLASS_DMG_OFDM
DMG (Clause 21)
@ WIFI_MOD_CLASS_DMG_CTRL
DMG (Clause 21)
@ WIFI_MOD_CLASS_OFDM
OFDM (Clause 17)
@ WIFI_MOD_CLASS_HR_DSSS
HR/DSSS (Clause 16)
@ WIFI_MOD_CLASS_UNKNOWN
Modulation class unknown or unspecified.
@ WIFI_MOD_CLASS_DMG_SC
DMG (Clause 21)
@ WIFI_MOD_CLASS_HT
HT (Clause 19)
@ WIFI_MOD_CLASS_EHT
EHT (Clause 36)
@ WIFI_MOD_CLASS_VHT
VHT (Clause 22)
@ WIFI_MOD_CLASS_HE
HE (Clause 27)
@ WIFI_MOD_CLASS_DMG_LP_SC
DMG (Clause 21)
@ WIFI_MOD_CLASS_DSSS
DSSS (Clause 15)
@ WIFI_MOD_CLASS_ERP_OFDM
ERP-OFDM (18.4)
@ WIFI_CHANLIST_SECONDARY40
@ WIFI_CHANLIST_SECONDARY
@ WIFI_CHANLIST_SECONDARY80
@ 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_HT_SIG
HT-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.
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Time GetPpduMaxTime(WifiPreamble preamble)
Get the maximum PPDU duration (see Section 10.14 of 802.11-2016) for the PHY layers defining the aPPD...
const uint16_t WIFI_CODE_RATE_UNDEFINED
undefined coding rate
const uint16_t WIFI_CODE_RATE_3_4
3/4 coding rate
const uint16_t WIFI_CODE_RATE_7_8
7/8 coding rate
uint16_t GetMaximumChannelWidth(WifiModulationClass modulation)
Get the maximum channel width in MHz allowed for the given modulation class.
const uint16_t WIFI_CODE_RATE_13_16
13/16 coding rate
bool IsEht(WifiPreamble preamble)
Return true if a preamble corresponds to an EHT transmission.
const uint16_t WIFI_CODE_RATE_1_2
1/2 coding rate
bool IsAllowedControlAnswerModulationClass(WifiModulationClass modClassReq, WifiModulationClass modClassAnswer)
Return whether the modulation class of the selected mode for the control answer frame is allowed.
bool IsMu(WifiPreamble preamble)
Return true if a preamble corresponds to a multi-user transmission.
const uint16_t WIFI_CODE_RATE_5_8
5/8 coding rate
WifiModulationClass GetModulationClassForPreamble(WifiPreamble preamble)
Return the modulation class corresponding to the given preamble type.
const uint16_t WIFI_CODE_RATE_2_3
2/3 coding rate
const uint16_t WIFI_CODE_RATE_52_63
52/63 coding rate
const uint16_t WIFI_CODE_RATE_13_14
13/14 coding rate
uint16_t WifiCodeRate
These constants define the various convolutional coding rates used for the OFDM transmission modes in...
uint16_t ConvertGuardIntervalToNanoSeconds(WifiMode mode, const Ptr< WifiNetDevice > device)
Convert the guard interval to nanoseconds based on the WifiMode.
const uint16_t WIFI_CODE_RATE_5_6
5/6 coding rate
WifiPreamble GetPreambleForTransmission(WifiModulationClass modulation, bool useShortPreamble)
Return the preamble to be used for the transmission.
WifiModulationClass GetModulationClassForStandard(WifiStandard standard)
Return the modulation class corresponding to a given standard.
bool IsDlMu(WifiPreamble preamble)
Return true if a preamble corresponds to a downlink multi-user transmission.
const uint16_t WIFI_CODE_RATE_13_21
13/21 coding rate
std::ostream & operator<<(std::ostream &os, const Angles &a)
const uint16_t WIFI_CODE_RATE_13_28
13/28 coding rate
bool IsUlMu(WifiPreamble preamble)
Return true if a preamble corresponds to a uplink multi-user transmission.
const uint16_t WIFI_CODE_RATE_1_4
1/4 coding rate