22 #include "ns3/pointer.h" 23 #include "ns3/packet.h" 55 m_low = CreateObject<MacLow> ();
61 m_txop = CreateObject<Txop> ();
89 for (EdcaQueues::const_iterator i =
m_edca.begin (); i !=
m_edca.end (); ++i)
91 i->second->Initialize ();
112 for (EdcaQueues::iterator i =
m_edca.begin (); i !=
m_edca.end (); ++i)
134 for (EdcaQueues::const_iterator i =
m_edca.begin (); i !=
m_edca.end (); ++i)
136 i->second->SetWifiRemoteStationManager (stationManager);
187 NS_ASSERT (maxAmpduLengthExponent >= 0 && maxAmpduLengthExponent <= 255);
188 capabilities.
SetMaxAmpduLength (std::max<uint8_t> (3, static_cast<uint8_t> (maxAmpduLengthExponent)));
189 uint64_t maxSupportedRate = 0;
201 if (dataRate > maxSupportedRate)
203 maxSupportedRate = dataRate;
204 NS_LOG_DEBUG (
"Updating maxSupportedRate to " << maxSupportedRate);
234 capabilities.
SetMaxMpduLength (uint8_t (maxMpduLength > 3895) + uint8_t (maxMpduLength > 7991));
239 NS_ASSERT (maxAmpduLengthExponent >= 0 && maxAmpduLengthExponent <= 255);
260 uint64_t maxSupportedRateLGI = 0;
271 NS_LOG_DEBUG (
"Updating maxSupportedRateLGI to " << maxSupportedRateLGI);
291 uint8_t channelWidthSet = 0;
294 channelWidthSet |= 0x01;
298 channelWidthSet |= 0x02;
302 channelWidthSet |= 0x04;
321 NS_ASSERT (maxAmpduLengthExponent >= 0 && maxAmpduLengthExponent <= 255);
475 edca->SetAccessCategory (ac);
476 edca->CompleteConfig ();
478 m_edca.insert (std::make_pair (ac, edca));
485 for (EdcaQueues::const_iterator i =
m_edca.begin (); i !=
m_edca.end (); ++i)
487 i->second->SetTypeOfStation (type);
891 <<
") does not support Enqueue() with from address");
965 m_edca[ac]->GotAddBaResponse (&respHdr, from);
988 m_edca[ac]->GotDelBaFrame (&delBaHdr, from);
994 NS_FATAL_ERROR (
"Unsupported Action field in Block Ack Action frame");
1011 i != packets.end (); ++i)
1013 ForwardUp ((*i).first, (*i).second.GetSourceAddr (),
1014 (*i).second.GetDestinationAddr ());
1081 .SetGroupName (
"Wifi")
1082 .AddAttribute (
"QosSupported",
1083 "This Boolean attribute is set to enable 802.11e/WMM-style QoS support at this STA.",
1088 .AddAttribute (
"HtSupported",
1089 "This Boolean attribute is set to enable 802.11n support at this STA.",
1094 .AddAttribute (
"VhtSupported",
1095 "This Boolean attribute is set to enable 802.11ac support at this STA.",
1100 .AddAttribute (
"HeSupported",
1101 "This Boolean attribute is set to enable 802.11ax support at this STA.",
1106 .AddAttribute (
"CtsToSelfSupported",
1107 "Use CTS to Self when using a rate that is not in the basic rate set.",
1111 .AddAttribute (
"VO_MaxAmsduSize",
1112 "Maximum length in bytes of an A-MSDU for AC_VO access class. " 1113 "Value 0 means A-MSDU is disabled for that AC.",
1116 MakeUintegerChecker<uint16_t> (0, 11426))
1117 .AddAttribute (
"VI_MaxAmsduSize",
1118 "Maximum length in bytes of an A-MSDU for AC_VI access class." 1119 "Value 0 means A-MSDU is disabled for that AC.",
1122 MakeUintegerChecker<uint16_t> (0, 11426))
1123 .AddAttribute (
"BE_MaxAmsduSize",
1124 "Maximum length in bytes of an A-MSDU for AC_BE access class." 1125 "Value 0 means A-MSDU is disabled for that AC.",
1128 MakeUintegerChecker<uint16_t> (0, 11426))
1129 .AddAttribute (
"BK_MaxAmsduSize",
1130 "Maximum length in bytes of an A-MSDU for AC_BK access class." 1131 "Value 0 means A-MSDU is disabled for that AC.",
1134 MakeUintegerChecker<uint16_t> (0, 11426))
1135 .AddAttribute (
"VO_MaxAmpduSize",
1136 "Maximum length in bytes of an A-MPDU for AC_VO access class." 1137 "Value 0 means A-MPDU is disabled for that AC.",
1140 MakeUintegerChecker<uint16_t> ())
1141 .AddAttribute (
"VI_MaxAmpduSize",
1142 "Maximum length in bytes of an A-MPDU for AC_VI access class." 1143 "Value 0 means A-MPDU is disabled for that AC.",
1146 MakeUintegerChecker<uint16_t> ())
1147 .AddAttribute (
"BE_MaxAmpduSize",
1148 "Maximum length in bytes of an A-MPDU for AC_BE access class." 1149 "Value 0 means A-MPDU is disabled for that AC.",
1152 MakeUintegerChecker<uint16_t> ())
1153 .AddAttribute (
"BK_MaxAmpduSize",
1154 "Maximum length in bytes of an A-MPDU for AC_BK access class." 1155 "Value 0 means A-MPDU is disabled for that AC.",
1158 MakeUintegerChecker<uint16_t> ())
1159 .AddAttribute (
"VO_BlockAckThreshold",
1160 "If number of packets in VO queue reaches this value, " 1161 "block ack mechanism is used. If this value is 0, block ack is never used." 1162 "When A-MPDU is enabled, block ack mechanism is used regardless of this value.",
1165 MakeUintegerChecker<uint8_t> (0, 64))
1166 .AddAttribute (
"VI_BlockAckThreshold",
1167 "If number of packets in VI queue reaches this value, " 1168 "block ack mechanism is used. If this value is 0, block ack is never used." 1169 "When A-MPDU is enabled, block ack mechanism is used regardless of this value.",
1172 MakeUintegerChecker<uint8_t> (0, 64))
1173 .AddAttribute (
"BE_BlockAckThreshold",
1174 "If number of packets in BE queue reaches this value, " 1175 "block ack mechanism is used. If this value is 0, block ack is never used." 1176 "When A-MPDU is enabled, block ack mechanism is used regardless of this value.",
1179 MakeUintegerChecker<uint8_t> (0, 64))
1180 .AddAttribute (
"BK_BlockAckThreshold",
1181 "If number of packets in BK queue reaches this value, " 1182 "block ack mechanism is used. If this value is 0, block ack is never used." 1183 "When A-MPDU is enabled, block ack mechanism is used regardless of this value.",
1186 MakeUintegerChecker<uint8_t> (0, 64))
1187 .AddAttribute (
"VO_BlockAckInactivityTimeout",
1188 "Represents max time (blocks of 1024 micro seconds) allowed for block ack" 1189 "inactivity for AC_VO. If this value isn't equal to 0 a timer start after that a" 1190 "block ack setup is completed and will be reset every time that a block ack" 1191 "frame is received. If this value is 0, block ack inactivity timeout won't be used.",
1194 MakeUintegerChecker<uint16_t> ())
1195 .AddAttribute (
"VI_BlockAckInactivityTimeout",
1196 "Represents max time (blocks of 1024 micro seconds) allowed for block ack" 1197 "inactivity for AC_VI. If this value isn't equal to 0 a timer start after that a" 1198 "block ack setup is completed and will be reset every time that a block ack" 1199 "frame is received. If this value is 0, block ack inactivity timeout won't be used.",
1202 MakeUintegerChecker<uint16_t> ())
1203 .AddAttribute (
"BE_BlockAckInactivityTimeout",
1204 "Represents max time (blocks of 1024 micro seconds) allowed for block ack" 1205 "inactivity for AC_BE. If this value isn't equal to 0 a timer start after that a" 1206 "block ack setup is completed and will be reset every time that a block ack" 1207 "frame is received. If this value is 0, block ack inactivity timeout won't be used.",
1210 MakeUintegerChecker<uint16_t> ())
1211 .AddAttribute (
"BK_BlockAckInactivityTimeout",
1212 "Represents max time (blocks of 1024 micro seconds) allowed for block ack" 1213 "inactivity for AC_BK. If this value isn't equal to 0 a timer start after that a" 1214 "block ack setup is completed and will be reset every time that a block ack" 1215 "frame is received. If this value is 0, block ack inactivity timeout won't be used.",
1218 MakeUintegerChecker<uint16_t> ())
1219 .AddAttribute (
"ShortSlotTimeSupported",
1220 "Whether or not short slot time is supported (only used by ERP APs or STAs).",
1225 .AddAttribute (
"RifsSupported",
1226 "Whether or not RIFS is supported (only used by HT APs or STAs).",
1231 .AddAttribute (
"Txop",
1235 MakePointerChecker<Txop> ())
1236 .AddAttribute (
"VO_Txop",
1237 "Queue that manages packets belonging to AC_VO access class.",
1240 MakePointerChecker<QosTxop> ())
1241 .AddAttribute (
"VI_Txop",
1242 "Queue that manages packets belonging to AC_VI access class.",
1245 MakePointerChecker<QosTxop> ())
1246 .AddAttribute (
"BE_Txop",
1247 "Queue that manages packets belonging to AC_BE access class.",
1250 MakePointerChecker<QosTxop> ())
1251 .AddAttribute (
"BK_Txop",
1252 "Queue that manages packets belonging to AC_BK access class.",
1255 MakePointerChecker<QosTxop> ())
1256 .AddTraceSource (
"TxOkHeader",
1257 "The header of successfully transmitted packet.",
1259 "ns3::WifiMacHeader::TracedCallback")
1260 .AddTraceSource (
"TxErrHeader",
1261 "The header of unsuccessfully transmitted packet.",
1263 "ns3::WifiMacHeader::TracedCallback")
1304 NS_FATAL_ERROR (
"Unsupported WifiPhyStandard in RegularWifiMac::FinishConfigureStandard ()");
1319 for (EdcaQueues::const_iterator i =
m_edca.begin (); i !=
m_edca.end (); ++i)
1321 ConfigureDcf (i->second, cwMin, cwMax, isDsssOnly, i->first);
1343 if (
GetVOQueue ()->GetMsduAggregator () != 0)
1347 if (
GetVIQueue ()->GetMsduAggregator () != 0)
1351 if (
GetBEQueue ()->GetMsduAggregator () != 0)
1355 if (
GetBKQueue ()->GetMsduAggregator () != 0)
1359 if (
GetVOQueue ()->GetMpduAggregator () != 0)
1363 if (
GetVIQueue ()->GetMpduAggregator () != 0)
1367 if (
GetBEQueue ()->GetMpduAggregator () != 0)
1371 if (
GetBKQueue ()->GetMpduAggregator () != 0)
1381 for (EdcaQueues::const_iterator i =
m_edca.begin (); i !=
m_edca.end (); ++i)
1383 if (i->second->GetMsduAggregator () == 0)
1386 i->second->SetMsduAggregator (msduAggregator);
1388 if (i->second->GetMpduAggregator () == 0)
1391 i->second->SetMpduAggregator (mpduAggregator);
1401 for (EdcaQueues::const_iterator i =
m_edca.begin (); i !=
m_edca.end (); ++i)
1403 i->second->SetMsduAggregator (0);
1404 i->second->SetMpduAggregator (0);
virtual void SetQosSupported(bool enable)
Enable or disable QoS support for the device.
ERP-OFDM PHY (Clause 19, Section 19.5)
void SetHeSupported(bool enable)
Enable or disable HE support for the device.
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
uint16_t m_voMaxAmsduSize
maximum A-MSDU size for AC_VO
void Dispose(void)
Dispose of this Object.
Time GetRifs(void) const
Return Reduced Interframe Space (RIFS) of this MacLow.
void SetVoBlockAckInactivityTimeout(uint16_t timeout)
Set VO block ack inactivity timeout.
void SetPifs(Time pifs)
Set PCF Interframe Space (PIFS) of this MacLow.
void SetupEdcaQueue(AcIndex ac)
This method is a private utility invoked to configure the channel access function for the specified A...
void SetTxMcsSetDefined(uint8_t txmcssetdefined)
Set the transmit MCS set defined.
void SetShortGuardIntervalFor80Mhz(uint8_t shortguardinterval)
Set the short guard interval 80 Mhz.
Simulation virtual time values and global simulation resolution.
void ConfigureAggregation(void)
Configure aggregation function.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
OFDM PHY for the 5 GHz band (Clause 17 with 5 MHz channel bandwidth)
AttributeValue implementation for Boolean.
bool GetHeSupported() const
Return whether the device supports HE.
void SetGreenfield(uint8_t greenfield)
Set the green field.
HT PHY for the 5 GHz band (clause 20)
Ptr< Txop > m_txop
This holds a pointer to the TXOP instance for this WifiMac - used for transmission of frames to non-Q...
Ptr< MpduAggregator > GetMpduAggregator(void) const
Returns the aggregator used to construct A-MPDU subframes.
WifiMode GetMcs(uint8_t mcs) const
The WifiPhy::GetMcs() method is used (e.g., by a WifiRemoteStationManager) to determine the set of tr...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Time GetCtsTimeout(void) const
void SetPromisc(void)
Enable promiscuous mode.
ForwardUpCallback m_forwardUp
Callback to forward packet up the stack.
void SetHtSupported(uint8_t htsupported)
Set the HT supported field.
bool GetShortGuardInterval(void) const
Return whether short guard interval is supported.
bool GetQosSupported() const
Return whether the device supports QoS.
bool GetGreenfield(void) const
Return whether Greenfield is supported.
static TypeId GetTypeId(void)
Get the type ID.
void SetRxMcsBitmask(uint8_t index)
Set the receive MCS bitmask.
void SetBkMaxAmsduSize(uint16_t size)
Set the maximum A-MSDU size for AC_BK.
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
uint16_t m_bkMaxAmsduSize
maximum A-MSDU size for AC_BK
void SetMaxMpduLength(uint8_t length)
Set the maximum MPDU length.
void SetPhy(const Ptr< WifiPhy > phy)
Set up WifiPhy associated with this MacLow.
EdcaQueues m_edca
This is a map from Access Category index to the corresponding channel access function.
bool Is2_4Ghz(double frequency)
void SetErpSupported(bool enable)
Enable or disable ERP support for the device.
void SetSifs(Time sifs)
Set Short Interframe Space (SIFS) of this MacLow.
void SetChannelAccessManager(const Ptr< ChannelAccessManager > manager)
Set ChannelAccessManager this Txop is associated to.
bool IsAllowed(uint16_t channelWidth, uint8_t nss) const
void SetCompressedBlockAckTimeout(Time blockAckTimeout)
void SetTxDroppedCallback(TxDropped callback)
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities of the device.
Time GetEifsNoDifs() const
The Extended Capabilities Information ElementThis class knows how to serialise and deserialise the Ex...
void SetupPhyListener(Ptr< WifiPhy > phy)
Set up listener for Phy events.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
Callback< void > m_linkUp
Callback when a link is up.
void ConfigureContentionWindow(uint32_t cwMin, uint32_t cwMax)
bool GetRifsSupported(void) const
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
The HT Capabilities Information ElementThis class knows how to serialise and deserialise the HT Capab...
HE PHY for the 2.4 GHz band (clause 26)
void SetVoMaxAmsduSize(uint16_t size)
Set the maximum A-MSDU size for AC_VO.
std::list< std::pair< Ptr< Packet >, AmsduSubframeHeader > >::const_iterator DeaggregatedMsdusCI
DeaggregatedMsdusCI typedef.
void SetHighestNssSupported(uint8_t nss)
Set highest NSS supported.
OFDM PHY for the 5 GHz band (Clause 17 with 10 MHz channel bandwidth)
void SetSlot(Time slotTime)
void SetBlockAckInactivityTimeout(uint16_t timeout)
Set the Block Ack inactivity timeout.
Mac48Address GetBssid(void) const
Return the Basic Service Set Identification.
void RemovePhyListener(Ptr< WifiPhy > phy)
Remove current registered listener for Phy events.
static DeaggregatedMsdus Deaggregate(Ptr< Packet > aggregatedPacket)
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
virtual void DeaggregateAmsduAndForward(Ptr< Packet > aggregatedPacket, const WifiMacHeader *hdr)
This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack...
bool Is5Ghz(double frequency)
void SetLinkDownCallback(Callback< void > linkDown)
void SetHtSupported(bool enable)
Enable or disable HT support for the device.
HT PHY for the 2.4 GHz band (clause 20)
void SetRifsSupported(bool enable)
Enable or disable RIFS feature.
void SetVhtSupported(uint8_t vhtsupported)
Set the VHT supported field.
Ptr< WifiPhy > m_phy
Wifi PHY.
void SetRxLdpc(uint8_t rxldpc)
Set the receive LDPC.
void SetVoMaxAmpduSize(uint16_t size)
Set the maximum A-MPDU size for AC_VO.
Ptr< ChannelAccessManager > m_channelAccessManager
channel access manager
void SetViMaxAmsduSize(uint16_t size)
Set the maximum A-MSDU size for AC_VI.
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
Time GetCompressedBlockAckTimeout(void) const
void ConfigureDcf(Ptr< Txop > dcf, uint32_t cwmin, uint32_t cwmax, bool isDsss, AcIndex ac)
virtual void Enqueue(Ptr< const Packet > packet, Mac48Address to, Mac48Address from)
bool GetShortSlotTimeSupported(void) const
virtual void Receive(Ptr< Packet > packet, const WifiMacHeader *hdr)
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has bee...
void SetShortGuardIntervalFor160Mhz(uint8_t shortguardinterval)
Set the short guard interval 160 Mhz.
void Receive(Ptr< Packet > packet, const WifiMacHeader *hdr)
Receive a packet.
bool GetDsssSupported() const
Return whether the device supports DSSS.
TracedCallback< const WifiMacHeader & > m_txErrCallback
transmit error callback
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
void SetCtsToSelfSupported(bool enable)
Enable or disable CTS-to-self capability.
bool m_rifsSupported
flag whether RIFS is supported
void SetBasicBlockAckTimeout(Time blockAckTimeout)
Set Basic Block ACK timeout of this MacLow.
void SetVoBlockAckThreshold(uint8_t threshold)
Set the Block ACK threshold for AC_VO.
uint16_t GetChannelWidth(void) const
void SetChannelWidthSet(uint8_t channelWidthSet)
Set channel width set.
void SetHeLtfAndGiForHePpdus(uint8_t heLtfAndGiForHePpdus)
Set HE LTF and GI for HE PDPUs.
void SetBssid(Mac48Address bssid)
void SetLSigProtectionSupport(uint8_t lsigprotection)
Set the LSIG protection support.
uint8_t GetNMcs(void) const
The WifiPhy::GetNMcs() method is used (e.g., by a WifiRemoteStationManager) to determine the set of t...
void ForwardUp(Ptr< Packet > packet, Mac48Address from, Mac48Address to)
Forward the packet up to the device.
WifiPhyStandard
Identifies the PHY specification that a Wifi device is configured to use.
virtual bool SupportsSendFrom(void) const
virtual void SetVhtSupported(bool enable)
Enable or disable VHT capability support.
void DestroyBlockAckAgreement(Mac48Address originator, uint8_t tid)
void SetForwardUpCallback(ForwardUpCallback upCallback)
void SetSuccess(void)
Set success bit to 0 (success).
HE PHY for the 5 GHz band (clause 26)
void EnableAggregation(void)
Enable aggregation function.
Time GetBasicBlockAckTimeout(void) const
void SetEifsNoDifs(Time eifsNoDifs)
void SetBkBlockAckThreshold(uint8_t threshold)
Set the Block ACK threshold for AC_BK.
bool GetErpSupported() const
Return whether the device supports ERP.
bool m_qosSupported
This Boolean is set true iff this WifiMac is to model 802.11e/WMM style Quality of Service...
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
Mac48Address GetAddress(void) const
Return the MAC address of this MacLow.
void SetBasicBlockAckTimeout(Time blockAckTimeout)
void SetTypeOfStation(TypeOfStation type)
This method is invoked by a subclass to specify what type of station it is implementing.
void CreateBlockAckAgreement(const MgtAddBaResponseHeader *respHdr, Mac48Address originator, uint16_t startingSeq)
void SetShortGuardInterval20(uint8_t shortguardinterval)
Set the short guard interval 20 field.
void SetHighestMcsSupported(uint8_t mcs)
Set highest MCS supported.
bool GetLdpc(void) const
Return if LDPC is supported.
Time GetEifsNoDifs(void) const
void SetEifsNoDifs(Time eifsNoDifs)
bool GetVhtSupported() const
Return whether the device supports VHT.
Time NanoSeconds(uint64_t value)
Construct a Time in the indicated unit.
void FinishConfigureStandard(WifiPhyStandard standard)
The IEEE 802.11ac VHT Capabilities.
Ssid m_ssid
Service Set ID (SSID)
base class for all MAC-level wifi objects.
void NotifyTxDrop(Ptr< const Packet > packet)
Time GetSifs(void) const
Return Short Interframe Space (SIFS) of this MacLow.
Hold an unsigned integer type.
void SetMaxAmsduLength(uint8_t maxamsdulength)
Set the maximum AMSDU length.
void SetAckTimeout(Time ackTimeout)
Set ACK timeout of this MacLow.
void SetTxHighestSupportedLgiDataRate(uint16_t supporteddatarate)
Set the transmit highest supported LGI data rate.
bool m_vhtSupported
This Boolean is set true iff this WifiMac is to model 802.11ac.
AcIndex QosUtilsMapTidToAc(uint8_t tid)
Maps TID (Traffic ID) to Access classes.
void SetAddress(Mac48Address address)
Time GetCtsTimeout(void) const
Return CTS timeout of this MacLow.
void SetMaxAmpduLength(uint8_t maxampdulength)
Set the maximum AMPDU length.
Ptr< MacRxMiddle > m_rxMiddle
RX middle (de-fragmentation etc.)
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
Ptr< QosTxop > GetVOQueue(void) const
Accessor for the AC_VO channel access function.
uint16_t m_viMaxAmsduSize
maximum A-MSDU size for AC_VI
Mac48Address GetBssid(void) const
uint16_t m_beMaxAmsduSize
maximum A-MSDU size for AC_BE
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities of the device.
void ResetWifiPhy(void)
removes attached WifiPhy device from this MAC.
bool m_heSupported
This Boolean is set true iff this WifiMac is to model 802.11ax.
WifiModulationClass GetModulationClass() const
Ptr< MacLow > m_low
MacLow (RTS, CTS, DATA, ACK etc.)
void SetBeBlockAckThreshold(uint8_t threshold)
Set the Block ACK threshold for AC_BE.
Ptr< WifiRemoteStationManager > GetWifiRemoteStationManager(void) const
void SendAddBaResponse(const MgtAddBaRequestHeader *reqHdr, Mac48Address originator)
This method can be called to accept a received ADDBA Request.
void SetSupportedChannelWidthSet(uint8_t channelwidthset)
Set the supported channel width set.
void SetMaxAmpduLengthExponent(uint8_t exponent)
Set maximum AMPDU length exponent.
Callback< void > m_linkDown
Callback when a link is down.
This is intended to be the configuration used in this paper: Gavin Holland, Nitin Vaidya and Paramvir...
TracedCallback< const WifiMacHeader & > m_txOkCallback
transmit OK callback
Time GetAckTimeout(void) const
virtual void SetHtSupported(bool enable)
Enable or disable HT capability support.
void SetRxHighestSupportedDataRate(uint16_t maxsupportedrate)
Set the receive highest supported data rate.
Status code for association response.
virtual void SetWifiRemoteStationManager(const Ptr< WifiRemoteStationManager > stationManager)
void SetLinkUpCallback(Callback< void > linkUp)
virtual void DoDispose()
Destructor implementation.
Time GetAckTimeout(void) const
Return ACK timeout of this MacLow.
std::list< std::pair< Ptr< Packet >, AmsduSubframeHeader > > DeaggregatedMsdus
DeaggregatedMsdus typedef.
OFDM PHY for the 5 GHz band (Clause 17)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Time GetCompressedBlockAckTimeout() const
Return Compressed Block ACK timeout of this MacLow.
Hold objects of type Ptr<T>.
void SetBssid(Mac48Address ad)
Set the Basic Service Set Identification.
void DisableAggregation(void)
Disable aggregation function.
uint16_t GetFrequency(void) const
Ptr< const AttributeChecker > MakeBooleanChecker(void)
void SetVhtSupported(bool enable)
Enable or disable VHT support for the device.
DSSS PHY (Clause 15) and HR/DSSS PHY (Clause 18)
void SetTxUnequalModulation(uint8_t txunequalmodulation)
Set the transmit unequal modulation.
void SetMacLow(const Ptr< MacLow > low)
Set MacLow associated with this Txop.
Ptr< QosTxop > GetVIQueue(void) const
Accessor for the AC_VI channel access function.
void SetRxStbc(uint8_t rxstbc)
Set the receive STBC.
uint16_t m_bkMaxAmpduSize
maximum A-MPDU size for AC_BK
void SetCtsTimeout(Time ctsTimeout)
virtual ~RegularWifiMac()
void SetBlockAckThreshold(uint8_t threshold)
Set threshold for block ACK mechanism.
The IEEE 802.11 SSID Information Element.
void SetViBlockAckInactivityTimeout(uint16_t timeout)
Set VI block ack inactivity timeout.
bool m_htSupported
This Boolean is set true iff this WifiMac is to model 802.11n.
Mac48Address GetAddress(void) const
void SetRxMcsMap(uint8_t mcs, uint8_t nss)
uint16_t m_voMaxAmpduSize
maximum A-MPDU size for AC_VO
void SetMaxAmpduSize(uint16_t maxSize)
Sets the maximum A-MPDU size in bytes.
void SetRxHighestSupportedLgiDataRate(uint16_t supporteddatarate)
Set the receive highest supported LGI data rate.
void SetHtSupported(uint8_t htsupported)
Set the HT Supported flag.
Ptr< QosTxop > GetBEQueue(void) const
Accessor for the AC_BE channel access function.
Ptr< Txop > GetTxop(void) const
Accessor for the DCF object.
void SetRifs(Time rifs)
Set Reduced Interframe Space (RIFS) of this MacLow.
void SetViBlockAckThreshold(uint8_t threshold)
Set the Block ACK threshold for AC_VI.
uint16_t m_beMaxAmpduSize
maximum A-MPDU size for AC_BE
void SetSlotTime(Time slotTime)
Set slot duration of this MacLow.
bool GetHtSupported() const
Return whether the device supports HT.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
void SetHeSupported(uint8_t hesupported)
Set HE supported.
void SetTxMiddle(const Ptr< MacTxMiddle > txMiddle)
Set MacTxMiddle this Txop is associated to.
uint16_t m_viMaxAmpduSize
maximum A-MPDU size for AC_VI
void SetViMaxAmpduSize(uint16_t size)
Set the maximum A-MPDU size for AC_VI.
virtual void DoInitialize()
Initialize() implementation.
void SetCtsTimeout(Time ctsTimeout)
Set CTS timeout of this MacLow.
void SetLdpc(uint8_t ldpc)
Set the LDPC field.
void SetBkBlockAckInactivityTimeout(uint16_t timeout)
Set BK block ack inactivity timeout.
void SetTxRxMcsSetUnequal(uint8_t txrxmcssetunequal)
Set the transmit / receive MCS set unequal.
virtual void SetWifiRemoteStationManager(const Ptr< WifiRemoteStationManager > remoteManager)
Set WifiRemoteStationsManager this Txop is associated to.
void SetSlot(Time slotTime)
virtual void SetHeSupported(bool enable)
Enable or disable HE capability support.
Time GetPifs(void) const
Return PCF Interframe Space (PIFS) of this MacLow.
bool m_shortSlotTimeSupported
flag whether short slot time is supported
void SetAddress(Mac48Address ad)
Set MAC address of this MacLow.
void SetTxMaxNSpatialStreams(uint8_t maxtxspatialstreams)
Set the transmit maximum N spatial streams.
virtual void TxOk(const WifiMacHeader &hdr)
The packet we sent was successfully received by the receiver (i.e.
bool m_erpSupported
This Boolean is set true iff this WifiMac is to model 802.11g.
TypeOfStation
Enumeration for type of station.
Ptr< QosTxop > GetBKQueue(void) const
Accessor for the AC_BK channel access function.
void SetCtsToSelfSupported(bool enable)
Enable or disable CTS-to-self feature.
void SetBeMaxAmpduSize(uint16_t size)
Set the maximum A-MPDU size for AC_BE.
void SetShortSlotTimeSupported(bool enable)
Enable or disable short slot time feature.
void SetDsssSupported(bool enable)
Enable or disable DSSS support for the device.
Ptr< WifiRemoteStationManager > m_stationManager
Remote station manager (rate control, RTS/CTS/fragmentation thresholds etc.)
void SetTxFailedCallback(TxFailed callback)
void SetPromisc(void)
Sets the interface in promiscuous mode.
Ptr< WifiPhy > GetWifiPhy(void) const
void SetTxOkCallback(TxOk callback)
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities of the device.
void SetupLow(Ptr< MacLow > low)
Set up listener for MacLow events.
void ResetPhy(void)
Remove WifiPhy associated with this MacLow.
The IEEE 802.11ax HE Capabilities.
uint8_t GetMcsValue(void) const
Time GetSlotTime(void) const
Return slot duration of this MacLow.
void SetTxMcsMap(uint8_t mcs, uint8_t nss)
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
void SetShortGuardInterval40(uint8_t shortguardinterval)
Set the short guard interval 40 field.
void SetTxStbc(uint8_t txstbc)
Set the transmit STBC.
void SetBeBlockAckInactivityTimeout(uint16_t timeout)
Set BE block ack inactivity timeout.
uint8_t GetMaxSupportedTxSpatialStreams(void) const
a unique identifier for an interface.
void SetRxCallback(Callback< void, Ptr< Packet >, const WifiMacHeader *> callback)
bool m_dsssSupported
This Boolean is set true iff this WifiMac is to model 802.11b.
virtual void SetWifiPhy(const Ptr< WifiPhy > phy)
void SetBkMaxAmpduSize(uint16_t size)
Set the maximum A-MPDU size for AC_BK.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
void SetAckTimeout(Time ackTimeout)
Time GetBasicBlockAckTimeout() const
Return Basic Block ACK timeout of this MacLow.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
void Initialize(void)
Invoke DoInitialize on all Objects aggregated to this one.
Ptr< MacTxMiddle > m_txMiddle
TX middle (aggregation etc.)
uint64_t GetDataRate(uint16_t channelWidth, uint16_t guardInterval, uint8_t nss) const
void AddHeader(const Header &header)
Add header to this packet.
void SetWifiRemoteStationManager(const Ptr< WifiRemoteStationManager > manager)
Set up WifiRemoteStationManager associated with this MacLow.
void SetSupportedChannelWidth(uint8_t supportedchannelwidth)
Set the supported channel width field.
void SetBeMaxAmsduSize(uint16_t size)
Set the maximum A-MSDU size for AC_BE.
void SetCompressedBlockAckTimeout(Time blockAckTimeout)
Set Compressed Block ACK timeout of this MacLow.
void SetVhtSupported(uint8_t vhtsupported)
Set the VHT Supported flag.
void SetMaxAmsduSize(uint16_t maxSize)
Sets the maximum A-MSDU size in bytes.
Ptr< MsduAggregator > GetMsduAggregator(void) const
Returns the aggregator used to construct A-MSDU subframes.
uint8_t GetMaxSupportedRxSpatialStreams(void) const
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities of the device.
virtual void TxFailed(const WifiMacHeader &hdr)
The packet we sent was successfully received by the receiver (i.e.
Time GetGuardInterval(void) const
void SetMaxAmpduLengthExponent(uint8_t exponent)
Set the maximum AMPDU length exponent.