|
|
| 39 |
#include "wifi-mac-trailer.h" |
39 |
#include "wifi-mac-trailer.h" |
| 40 |
#include "wifi-phy.h" |
40 |
#include "wifi-phy.h" |
| 41 |
#include "wifi-net-device.h" |
41 |
#include "wifi-net-device.h" |
|
|
42 |
#include "wifi-mac.h" |
| 43 |
#include "ht-configuration.h" |
| 44 |
#include "vht-configuration.h" |
| 45 |
#include "he-configuration.h" |
| 42 |
|
46 |
|
| 43 |
#undef NS_LOG_APPEND_CONTEXT |
47 |
#undef NS_LOG_APPEND_CONTEXT |
| 44 |
#define NS_LOG_APPEND_CONTEXT std::clog << "[mac=" << m_self << "] " |
48 |
#define NS_LOG_APPEND_CONTEXT std::clog << "[mac=" << m_self << "] " |
|
Lines 271-276
MacLow::ResetPhy (void)
|
Link Here
|
|---|
|
| 271 |
} |
275 |
} |
| 272 |
|
276 |
|
| 273 |
void |
277 |
void |
|
|
278 |
MacLow::SetMac (const Ptr<WifiMac> mac) |
| 279 |
{ |
| 280 |
m_mac = mac; |
| 281 |
} |
| 282 |
|
| 283 |
void |
| 274 |
MacLow::SetWifiRemoteStationManager (const Ptr<WifiRemoteStationManager> manager) |
284 |
MacLow::SetWifiRemoteStationManager (const Ptr<WifiRemoteStationManager> manager) |
| 275 |
{ |
285 |
{ |
| 276 |
m_stationManager = manager; |
286 |
m_stationManager = manager; |
|
Lines 536-542
MacLow::StartTransmission (Ptr<const Packet> packet,
|
Link Here
|
|---|
|
| 536 |
m_ampdu = true; |
546 |
m_ampdu = true; |
| 537 |
if (sentMpdus > 1) |
547 |
if (sentMpdus > 1) |
| 538 |
{ |
548 |
{ |
| 539 |
m_txParams.EnableCompressedBlockAck (); |
549 |
AcIndex ac = QosUtilsMapTidToAc (GetTid (packet, *hdr)); |
|
|
550 |
std::map<AcIndex, Ptr<QosTxop> >::const_iterator edcaIt = m_edca.find (ac); |
| 551 |
if (edcaIt->second->GetBaBufferSize (m_currentHdr.GetAddr1 (), m_currentHdr.GetQosTid ()) > 64) |
| 552 |
{ |
| 553 |
m_txParams.EnableExtendedCompressedBlockAck (); |
| 554 |
} |
| 555 |
else |
| 556 |
{ |
| 557 |
m_txParams.EnableCompressedBlockAck (); |
| 558 |
} |
| 540 |
} |
559 |
} |
| 541 |
else if (m_currentHdr.IsQosData ()) |
560 |
else if (m_currentHdr.IsQosData ()) |
| 542 |
{ |
561 |
{ |
|
Lines 551-557
MacLow::StartTransmission (Ptr<const Packet> packet,
|
Link Here
|
|---|
|
| 551 |
Ptr<Packet> newPacket = (m_txPackets[GetTid (packet, *hdr)].at (i).packet)->Copy (); |
570 |
Ptr<Packet> newPacket = (m_txPackets[GetTid (packet, *hdr)].at (i).packet)->Copy (); |
| 552 |
newPacket->AddHeader (m_txPackets[GetTid (packet, *hdr)].at (i).hdr); |
571 |
newPacket->AddHeader (m_txPackets[GetTid (packet, *hdr)].at (i).hdr); |
| 553 |
AddWifiMacTrailer (newPacket); |
572 |
AddWifiMacTrailer (newPacket); |
| 554 |
edcaIt->second->GetMpduAggregator ()->Aggregate (newPacket, aggregatedPacket); |
573 |
edcaIt->second->GetMpduAggregator ()->Aggregate (newPacket, aggregatedPacket, GetMaxAmpduSize (ac)); |
| 555 |
} |
574 |
} |
| 556 |
m_currentPacket = aggregatedPacket; |
575 |
m_currentPacket = aggregatedPacket; |
| 557 |
m_currentHdr = (m_txPackets[GetTid (packet, *hdr)].at (0).hdr); |
576 |
m_currentHdr = (m_txPackets[GetTid (packet, *hdr)].at (0).hdr); |
|
Lines 567-573
MacLow::StartTransmission (Ptr<const Packet> packet,
|
Link Here
|
|---|
|
| 567 |
m_currentPacket->PeekPacketTag (ampdu); |
586 |
m_currentPacket->PeekPacketTag (ampdu); |
| 568 |
if (ampdu.GetRemainingNbOfMpdus () > 0) |
587 |
if (ampdu.GetRemainingNbOfMpdus () > 0) |
| 569 |
{ |
588 |
{ |
| 570 |
m_txParams.EnableCompressedBlockAck (); |
589 |
AcIndex ac = QosUtilsMapTidToAc (GetTid (packet, *hdr)); |
|
|
590 |
std::map<AcIndex, Ptr<QosTxop> >::const_iterator edcaIt = m_edca.find (ac); |
| 591 |
if (edcaIt->second->GetBaBufferSize (m_currentHdr.GetAddr1 (), m_currentHdr.GetQosTid ()) > 64) |
| 592 |
{ |
| 593 |
m_txParams.EnableExtendedCompressedBlockAck (); |
| 594 |
} |
| 595 |
else |
| 596 |
{ |
| 597 |
m_txParams.EnableCompressedBlockAck (); |
| 598 |
} |
| 571 |
} |
599 |
} |
| 572 |
else if (m_currentHdr.IsQosData ()) |
600 |
else if (m_currentHdr.IsQosData ()) |
| 573 |
{ |
601 |
{ |
|
Lines 815-821
MacLow::ReceiveOk (Ptr<Packet> packet, double rxSnr, WifiTxVector txVector, bool
|
Link Here
|
|---|
|
| 815 |
} |
843 |
} |
| 816 |
} |
844 |
} |
| 817 |
else if (hdr.IsBlockAck () && hdr.GetAddr1 () == m_self |
845 |
else if (hdr.IsBlockAck () && hdr.GetAddr1 () == m_self |
| 818 |
&& (m_txParams.MustWaitBasicBlockAck () || m_txParams.MustWaitCompressedBlockAck ()) |
846 |
&& (m_txParams.MustWaitBasicBlockAck () || m_txParams.MustWaitCompressedBlockAck () || m_txParams.MustWaitExtendedCompressedBlockAck ()) |
| 819 |
&& m_blockAckTimeoutEvent.IsRunning ()) |
847 |
&& m_blockAckTimeoutEvent.IsRunning ()) |
| 820 |
{ |
848 |
{ |
| 821 |
NS_LOG_DEBUG ("got block ack from " << hdr.GetAddr2 ()); |
849 |
NS_LOG_DEBUG ("got block ack from " << hdr.GetAddr2 ()); |
|
Lines 1573-1582
MacLow::SendRtsForPacket (void)
|
Link Here
|
|---|
|
| 1573 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1601 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1574 |
duration += GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
1602 |
duration += GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
| 1575 |
} |
1603 |
} |
| 1576 |
else if (m_txParams.MustWaitCompressedBlockAck ()) |
1604 |
else if (m_txParams.MustWaitCompressedBlockAck () || m_txParams.MustWaitExtendedCompressedBlockAck ()) |
| 1577 |
{ |
1605 |
{ |
| 1578 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1606 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1579 |
duration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
1607 |
if (m_txParams.MustWaitExtendedCompressedBlockAck ()) |
|
|
1608 |
{ |
| 1609 |
duration += GetBlockAckDuration (blockAckReqTxVector, EXTENDED_COMPRESSED_BLOCK_ACK); |
| 1610 |
} |
| 1611 |
else |
| 1612 |
{ |
| 1613 |
duration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
| 1614 |
} |
| 1580 |
} |
1615 |
} |
| 1581 |
else if (m_txParams.MustWaitNormalAck ()) |
1616 |
else if (m_txParams.MustWaitNormalAck ()) |
| 1582 |
{ |
1617 |
{ |
|
Lines 1626-1632
MacLow::StartDataTxTimers (WifiTxVector dataTxVector)
|
Link Here
|
|---|
|
| 1626 |
NotifyAckTimeoutStartNow (timerDelay); |
1661 |
NotifyAckTimeoutStartNow (timerDelay); |
| 1627 |
m_blockAckTimeoutEvent = Simulator::Schedule (timerDelay, &MacLow::BlockAckTimeout, this); |
1662 |
m_blockAckTimeoutEvent = Simulator::Schedule (timerDelay, &MacLow::BlockAckTimeout, this); |
| 1628 |
} |
1663 |
} |
| 1629 |
else if (m_txParams.MustWaitCompressedBlockAck ()) |
1664 |
else if (m_txParams.MustWaitCompressedBlockAck () || m_txParams.MustWaitExtendedCompressedBlockAck ()) |
| 1630 |
{ |
1665 |
{ |
| 1631 |
Time timerDelay = txDuration + GetCompressedBlockAckTimeout (); |
1666 |
Time timerDelay = txDuration + GetCompressedBlockAckTimeout (); |
| 1632 |
NS_ASSERT (m_blockAckTimeoutEvent.IsExpired ()); |
1667 |
NS_ASSERT (m_blockAckTimeoutEvent.IsExpired ()); |
|
Lines 1683-1693
MacLow::SendDataPacket (void)
|
Link Here
|
|---|
|
| 1683 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1718 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1684 |
duration += GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
1719 |
duration += GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
| 1685 |
} |
1720 |
} |
| 1686 |
else if (m_txParams.MustWaitCompressedBlockAck ()) |
1721 |
else if (m_txParams.MustWaitCompressedBlockAck () || m_txParams.MustWaitExtendedCompressedBlockAck ()) |
| 1687 |
{ |
1722 |
{ |
| 1688 |
duration += GetSifs (); |
1723 |
duration += GetSifs (); |
| 1689 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1724 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1690 |
duration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
1725 |
if (m_txParams.MustWaitExtendedCompressedBlockAck ()) |
|
|
1726 |
{ |
| 1727 |
duration += GetBlockAckDuration (blockAckReqTxVector, EXTENDED_COMPRESSED_BLOCK_ACK); |
| 1728 |
} |
| 1729 |
else |
| 1730 |
{ |
| 1731 |
duration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
| 1732 |
} |
| 1691 |
} |
1733 |
} |
| 1692 |
else if (m_txParams.MustWaitNormalAck ()) |
1734 |
else if (m_txParams.MustWaitNormalAck ()) |
| 1693 |
{ |
1735 |
{ |
|
Lines 1807-1817
MacLow::SendCtsToSelf (void)
|
Link Here
|
|---|
|
| 1807 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1849 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1808 |
duration += GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
1850 |
duration += GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
| 1809 |
} |
1851 |
} |
| 1810 |
else if (m_txParams.MustWaitCompressedBlockAck ()) |
1852 |
else if (m_txParams.MustWaitCompressedBlockAck () || m_txParams.MustWaitExtendedCompressedBlockAck ()) |
| 1811 |
{ |
1853 |
{ |
| 1812 |
duration += GetSifs (); |
1854 |
duration += GetSifs (); |
| 1813 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1855 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1814 |
duration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
1856 |
if (m_txParams.MustWaitExtendedCompressedBlockAck ()) |
|
|
1857 |
{ |
| 1858 |
duration += GetBlockAckDuration (blockAckReqTxVector, EXTENDED_COMPRESSED_BLOCK_ACK); |
| 1859 |
} |
| 1860 |
else |
| 1861 |
{ |
| 1862 |
duration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
| 1863 |
} |
| 1815 |
} |
1864 |
} |
| 1816 |
else if (m_txParams.MustWaitNormalAck ()) |
1865 |
else if (m_txParams.MustWaitNormalAck ()) |
| 1817 |
{ |
1866 |
{ |
|
Lines 1823-1833
MacLow::SendCtsToSelf (void)
|
Link Here
|
|---|
|
| 1823 |
duration += GetSifs (); |
1872 |
duration += GetSifs (); |
| 1824 |
duration += m_phy->CalculateTxDuration (m_txParams.GetNextPacketSize (), |
1873 |
duration += m_phy->CalculateTxDuration (m_txParams.GetNextPacketSize (), |
| 1825 |
m_currentTxVector, m_phy->GetFrequency ()); |
1874 |
m_currentTxVector, m_phy->GetFrequency ()); |
| 1826 |
if (m_txParams.MustWaitCompressedBlockAck ()) |
1875 |
if (m_txParams.MustWaitCompressedBlockAck () || m_txParams.MustWaitExtendedCompressedBlockAck ()) |
| 1827 |
{ |
1876 |
{ |
| 1828 |
duration += GetSifs (); |
1877 |
duration += GetSifs (); |
| 1829 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1878 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1830 |
duration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
1879 |
if (m_txParams.MustWaitExtendedCompressedBlockAck ()) |
|
|
1880 |
{ |
| 1881 |
duration += GetBlockAckDuration (blockAckReqTxVector, EXTENDED_COMPRESSED_BLOCK_ACK); |
| 1882 |
} |
| 1883 |
else |
| 1884 |
{ |
| 1885 |
duration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
| 1886 |
} |
| 1831 |
} |
1887 |
} |
| 1832 |
else if (m_txParams.MustWaitNormalAck ()) |
1888 |
else if (m_txParams.MustWaitNormalAck ()) |
| 1833 |
{ |
1889 |
{ |
|
Lines 1916-1926
MacLow::SendDataAfterCts (Time duration)
|
Link Here
|
|---|
|
| 1916 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1972 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1917 |
newDuration += GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
1973 |
newDuration += GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
| 1918 |
} |
1974 |
} |
| 1919 |
else if (m_txParams.MustWaitCompressedBlockAck ()) |
1975 |
else if (m_txParams.MustWaitCompressedBlockAck () || m_txParams.MustWaitExtendedCompressedBlockAck ()) |
| 1920 |
{ |
1976 |
{ |
| 1921 |
newDuration += GetSifs (); |
1977 |
newDuration += GetSifs (); |
| 1922 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
1978 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1923 |
newDuration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
1979 |
if (m_txParams.MustWaitExtendedCompressedBlockAck ()) |
|
|
1980 |
{ |
| 1981 |
newDuration += GetBlockAckDuration (blockAckReqTxVector, EXTENDED_COMPRESSED_BLOCK_ACK); |
| 1982 |
} |
| 1983 |
else |
| 1984 |
{ |
| 1985 |
newDuration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
| 1986 |
} |
| 1924 |
} |
1987 |
} |
| 1925 |
else if (m_txParams.MustWaitNormalAck ()) |
1988 |
else if (m_txParams.MustWaitNormalAck ()) |
| 1926 |
{ |
1989 |
{ |
|
Lines 1938-1948
MacLow::SendDataAfterCts (Time duration)
|
Link Here
|
|---|
|
| 1938 |
newDuration += GetSifs (); |
2001 |
newDuration += GetSifs (); |
| 1939 |
} |
2002 |
} |
| 1940 |
newDuration += m_phy->CalculateTxDuration (m_txParams.GetNextPacketSize (), m_currentTxVector, m_phy->GetFrequency ()); |
2003 |
newDuration += m_phy->CalculateTxDuration (m_txParams.GetNextPacketSize (), m_currentTxVector, m_phy->GetFrequency ()); |
| 1941 |
if (m_txParams.MustWaitCompressedBlockAck ()) |
2004 |
if (m_txParams.MustWaitCompressedBlockAck () || m_txParams.MustWaitExtendedCompressedBlockAck ()) |
| 1942 |
{ |
2005 |
{ |
| 1943 |
newDuration += GetSifs (); |
2006 |
newDuration += GetSifs (); |
| 1944 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
2007 |
WifiTxVector blockAckReqTxVector = GetBlockAckTxVector (m_currentHdr.GetAddr2 (), m_currentTxVector.GetMode ()); |
| 1945 |
newDuration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
2008 |
if (m_txParams.MustWaitExtendedCompressedBlockAck ()) |
|
|
2009 |
{ |
| 2010 |
newDuration += GetBlockAckDuration (blockAckReqTxVector, EXTENDED_COMPRESSED_BLOCK_ACK); |
| 2011 |
} |
| 2012 |
else |
| 2013 |
{ |
| 2014 |
newDuration += GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
| 2015 |
} |
| 1946 |
} |
2016 |
} |
| 1947 |
else if (m_txParams.MustWaitNormalAck ()) |
2017 |
else if (m_txParams.MustWaitNormalAck ()) |
| 1948 |
{ |
2018 |
{ |
|
Lines 2259-2264
MacLow::RxCompleteBufferedPacketsUntilFirstLost (Mac48Address originator, uint8_
|
Link Here
|
|---|
|
| 2259 |
(*it).second.second.erase ((*it).second.second.begin (), lastComplete); |
2329 |
(*it).second.second.erase ((*it).second.second.begin (), lastComplete); |
| 2260 |
} |
2330 |
} |
| 2261 |
} |
2331 |
} |
|
|
2332 |
|
| 2262 |
void |
2333 |
void |
| 2263 |
MacLow::SendBlockAckResponse (const CtrlBAckResponseHeader* blockAck, Mac48Address originator, bool immediate, |
2334 |
MacLow::SendBlockAckResponse (const CtrlBAckResponseHeader* blockAck, Mac48Address originator, bool immediate, |
| 2264 |
Time duration, WifiMode blockAckReqTxMode, double rxSnr) |
2335 |
Time duration, WifiMode blockAckReqTxMode, double rxSnr) |
|
Lines 2282-2299
MacLow::SendBlockAckResponse (const CtrlBAckResponseHeader* blockAck, Mac48Addre
|
Link Here
|
|---|
|
| 2282 |
{ |
2353 |
{ |
| 2283 |
m_txParams.DisableAck (); |
2354 |
m_txParams.DisableAck (); |
| 2284 |
duration -= GetSifs (); |
2355 |
duration -= GetSifs (); |
| 2285 |
if (blockAck->IsBasic ()) |
2356 |
duration -= GetBlockAckDuration (blockAckReqTxVector, blockAck->GetType ()); |
| 2286 |
{ |
|
|
| 2287 |
duration -= GetBlockAckDuration (blockAckReqTxVector, BASIC_BLOCK_ACK); |
| 2288 |
} |
| 2289 |
else if (blockAck->IsCompressed ()) |
| 2290 |
{ |
| 2291 |
duration -= GetBlockAckDuration (blockAckReqTxVector, COMPRESSED_BLOCK_ACK); |
| 2292 |
} |
| 2293 |
else if (blockAck->IsMultiTid ()) |
| 2294 |
{ |
| 2295 |
NS_FATAL_ERROR ("Multi-tid block ack is not supported."); |
| 2296 |
} |
| 2297 |
} |
2357 |
} |
| 2298 |
else |
2358 |
else |
| 2299 |
{ |
2359 |
{ |
|
Lines 2338-2348
MacLow::SendBlockAckAfterAmpdu (uint8_t tid, Mac48Address originator, Time durat
|
Link Here
|
|---|
|
| 2338 |
blockAck.SetStartingSequence (seqNumber); |
2398 |
blockAck.SetStartingSequence (seqNumber); |
| 2339 |
blockAck.SetTidInfo (tid); |
2399 |
blockAck.SetTidInfo (tid); |
| 2340 |
immediate = (*it).second.first.IsImmediateBlockAck (); |
2400 |
immediate = (*it).second.first.IsImmediateBlockAck (); |
| 2341 |
blockAck.SetType (COMPRESSED_BLOCK_ACK); |
2401 |
if ((*it).second.first.GetBufferSize () > 64) |
|
|
2402 |
{ |
| 2403 |
blockAck.SetType (EXTENDED_COMPRESSED_BLOCK_ACK); |
| 2404 |
} |
| 2405 |
else |
| 2406 |
{ |
| 2407 |
blockAck.SetType (COMPRESSED_BLOCK_ACK); |
| 2408 |
} |
| 2342 |
NS_LOG_DEBUG ("Got Implicit block Ack Req with seq " << seqNumber); |
2409 |
NS_LOG_DEBUG ("Got Implicit block Ack Req with seq " << seqNumber); |
| 2343 |
(*i).second.FillBlockAckBitmap (&blockAck); |
2410 |
(*i).second.FillBlockAckBitmap (&blockAck); |
| 2344 |
|
2411 |
|
| 2345 |
SendBlockAckResponse (&blockAck, originator, immediate, duration, blockAckReqTxVector.GetMode (), rxSnr); |
2412 |
WifiTxVector blockAckTxVector = GetBlockAckTxVector (originator, blockAckReqTxVector.GetMode ()); |
|
|
2413 |
|
| 2414 |
SendBlockAckResponse (&blockAck, originator, immediate, duration, blockAckTxVector.GetMode (), rxSnr); |
| 2346 |
} |
2415 |
} |
| 2347 |
else |
2416 |
else |
| 2348 |
{ |
2417 |
{ |
|
Lines 2375-2380
MacLow::SendBlockAckAfterBlockAckRequest (const CtrlBAckRequestHeader reqHdr, Ma
|
Link Here
|
|---|
|
| 2375 |
{ |
2444 |
{ |
| 2376 |
blockAck.SetType (COMPRESSED_BLOCK_ACK); |
2445 |
blockAck.SetType (COMPRESSED_BLOCK_ACK); |
| 2377 |
} |
2446 |
} |
|
|
2447 |
else if (reqHdr.IsExtendedCompressed ()) |
| 2448 |
{ |
| 2449 |
blockAck.SetType (EXTENDED_COMPRESSED_BLOCK_ACK); |
| 2450 |
} |
| 2378 |
BlockAckCachesI i = m_bAckCaches.find (std::make_pair (originator, tid)); |
2451 |
BlockAckCachesI i = m_bAckCaches.find (std::make_pair (originator, tid)); |
| 2379 |
NS_ASSERT (i != m_bAckCaches.end ()); |
2452 |
NS_ASSERT (i != m_bAckCaches.end ()); |
| 2380 |
(*i).second.FillBlockAckBitmap (&blockAck); |
2453 |
(*i).second.FillBlockAckBitmap (&blockAck); |
|
Lines 2470-2477
MacLow::DeaggregateAmpduAndReceive (Ptr<Packet> aggregatedPacket, double rxSnr,
|
Link Here
|
|---|
|
| 2470 |
firsthdr.GetQosTid (), |
2543 |
firsthdr.GetQosTid (), |
| 2471 |
firsthdr.GetAddr2 (), |
2544 |
firsthdr.GetAddr2 (), |
| 2472 |
firsthdr.GetDuration (), |
2545 |
firsthdr.GetDuration (), |
| 2473 |
txVector, |
2546 |
txVector, rxSnr); |
| 2474 |
rxSnr); |
|
|
| 2475 |
} |
2547 |
} |
| 2476 |
|
2548 |
|
| 2477 |
if (firsthdr.IsAck () || firsthdr.IsBlockAck () || firsthdr.IsBlockAckReq ()) |
2549 |
if (firsthdr.IsAck () || firsthdr.IsBlockAck () || firsthdr.IsBlockAckReq ()) |
|
Lines 2551-2557
MacLow::StopMpduAggregation (Ptr<const Packet> peekedPacket, WifiMacHeader peeke
|
Link Here
|
|---|
|
| 2551 |
return true; |
2623 |
return true; |
| 2552 |
} |
2624 |
} |
| 2553 |
|
2625 |
|
| 2554 |
if (!edcaIt->second->GetMpduAggregator ()->CanBeAggregated (peekedPacket->GetSize () + peekedHdr.GetSize () + WIFI_MAC_FCS_LENGTH, aggregatedPacket, blockAckSize)) |
2626 |
if (!edcaIt->second->GetMpduAggregator ()->CanBeAggregated (peekedPacket->GetSize () + peekedHdr.GetSize () + WIFI_MAC_FCS_LENGTH, aggregatedPacket, blockAckSize, GetMaxAmpduSize (ac))) |
| 2555 |
{ |
2627 |
{ |
| 2556 |
NS_LOG_DEBUG ("no more packets can be aggregated because the maximum A-MPDU size has been reached"); |
2628 |
NS_LOG_DEBUG ("no more packets can be aggregated because the maximum A-MPDU size has been reached"); |
| 2557 |
return true; |
2629 |
return true; |
|
Lines 2594-2600
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2594 |
|
2666 |
|
| 2595 |
if (!hdr.GetAddr1 ().IsBroadcast () && edcaIt->second->GetMpduAggregator () != 0) |
2667 |
if (!hdr.GetAddr1 ().IsBroadcast () && edcaIt->second->GetMpduAggregator () != 0) |
| 2596 |
{ |
2668 |
{ |
| 2597 |
//Have to make sure that their exist a block Ack agreement before sending an AMPDU (BlockAck Manager) |
2669 |
//Have to make sure that their exist a block Ack agreement before sending an A-MPDU |
| 2598 |
if (edcaIt->second->GetBaAgreementExists (hdr.GetAddr1 (), tid)) |
2670 |
if (edcaIt->second->GetBaAgreementExists (hdr.GetAddr1 (), tid)) |
| 2599 |
{ |
2671 |
{ |
| 2600 |
/* here is performed mpdu aggregation */ |
2672 |
/* here is performed mpdu aggregation */ |
|
Lines 2606-2612
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2606 |
uint8_t qosPolicy = 0; |
2678 |
uint8_t qosPolicy = 0; |
| 2607 |
uint8_t blockAckSize = 0; |
2679 |
uint8_t blockAckSize = 0; |
| 2608 |
bool aggregated = false; |
2680 |
bool aggregated = false; |
| 2609 |
uint8_t i = 0; |
2681 |
uint16_t i = 0; |
| 2610 |
aggPacket = newPacket->Copy (); |
2682 |
aggPacket = newPacket->Copy (); |
| 2611 |
|
2683 |
|
| 2612 |
if (!hdr.IsBlockAckReq ()) |
2684 |
if (!hdr.IsBlockAckReq ()) |
|
Lines 2620-2626
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2620 |
newPacket->AddHeader (peekedHdr); |
2692 |
newPacket->AddHeader (peekedHdr); |
| 2621 |
AddWifiMacTrailer (newPacket); |
2693 |
AddWifiMacTrailer (newPacket); |
| 2622 |
|
2694 |
|
| 2623 |
aggregated = edcaIt->second->GetMpduAggregator ()->Aggregate (newPacket, currentAggregatedPacket); |
2695 |
aggregated = edcaIt->second->GetMpduAggregator ()->Aggregate (newPacket, currentAggregatedPacket, GetMaxAmpduSize (ac)); |
| 2624 |
|
2696 |
|
| 2625 |
if (aggregated) |
2697 |
if (aggregated) |
| 2626 |
{ |
2698 |
{ |
|
Lines 2668-2674
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2668 |
currentSequenceNumber = peekedHdr.GetSequenceNumber (); |
2740 |
currentSequenceNumber = peekedHdr.GetSequenceNumber (); |
| 2669 |
} |
2741 |
} |
| 2670 |
|
2742 |
|
| 2671 |
while (IsInWindow (currentSequenceNumber, startingSequenceNumber, 64) && !StopMpduAggregation (peekedPacket, peekedHdr, currentAggregatedPacket, blockAckSize)) |
2743 |
uint16_t maxMpdus = edcaIt->second->GetBaBufferSize (hdr.GetAddr1 (), tid); |
|
|
2744 |
while (IsInWindow (currentSequenceNumber, startingSequenceNumber, maxMpdus) && !StopMpduAggregation (peekedPacket, peekedHdr, currentAggregatedPacket, blockAckSize)) |
| 2672 |
{ |
2745 |
{ |
| 2673 |
//for now always send AMPDU with normal ACK |
2746 |
//for now always send AMPDU with normal ACK |
| 2674 |
if (retry == false) |
2747 |
if (retry == false) |
|
Lines 2693-2699
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2693 |
|
2766 |
|
| 2694 |
newPacket->AddHeader (peekedHdr); |
2767 |
newPacket->AddHeader (peekedHdr); |
| 2695 |
AddWifiMacTrailer (newPacket); |
2768 |
AddWifiMacTrailer (newPacket); |
| 2696 |
aggregated = edcaIt->second->GetMpduAggregator ()->Aggregate (newPacket, currentAggregatedPacket); |
2769 |
aggregated = edcaIt->second->GetMpduAggregator ()->Aggregate (newPacket, currentAggregatedPacket, GetMaxAmpduSize (ac)); |
| 2697 |
if (aggregated) |
2770 |
if (aggregated) |
| 2698 |
{ |
2771 |
{ |
| 2699 |
m_aggregateQueue[tid]->Enqueue (Create<WifiMacQueueItem> (aggPacket, peekedHdr)); |
2772 |
m_aggregateQueue[tid]->Enqueue (Create<WifiMacQueueItem> (aggPacket, peekedHdr)); |
|
Lines 2747-2753
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2747 |
peekedPacket = item->GetPacket (); |
2820 |
peekedPacket = item->GetPacket (); |
| 2748 |
peekedHdr = item->GetHeader (); |
2821 |
peekedHdr = item->GetHeader (); |
| 2749 |
tstamp = item->GetTimeStamp (); |
2822 |
tstamp = item->GetTimeStamp (); |
| 2750 |
//find what will the sequence number be so that we don't send more than 64 packets apart |
|
|
| 2751 |
currentSequenceNumber = edcaIt->second->PeekNextSequenceNumberFor (&peekedHdr); |
2823 |
currentSequenceNumber = edcaIt->second->PeekNextSequenceNumberFor (&peekedHdr); |
| 2752 |
|
2824 |
|
| 2753 |
if (edcaIt->second->GetMsduAggregator () != 0) |
2825 |
if (edcaIt->second->GetMsduAggregator () != 0) |
|
Lines 2774-2783
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2774 |
peekedPacket = item->GetPacket (); |
2846 |
peekedPacket = item->GetPacket (); |
| 2775 |
peekedHdr = item->GetHeader (); |
2847 |
peekedHdr = item->GetHeader (); |
| 2776 |
tstamp = item->GetTimeStamp (); |
2848 |
tstamp = item->GetTimeStamp (); |
| 2777 |
//find what will the sequence number be so that we don't send more than 64 packets apart |
|
|
| 2778 |
currentSequenceNumber = edcaIt->second->PeekNextSequenceNumberFor (&peekedHdr); |
2849 |
currentSequenceNumber = edcaIt->second->PeekNextSequenceNumberFor (&peekedHdr); |
| 2779 |
|
2850 |
|
| 2780 |
if (edcaIt->second->GetMsduAggregator () != 0 && IsInWindow (currentSequenceNumber, startingSequenceNumber, 64)) |
2851 |
if (edcaIt->second->GetMsduAggregator () != 0 && IsInWindow (currentSequenceNumber, startingSequenceNumber, maxMpdus)) |
| 2781 |
{ |
2852 |
{ |
| 2782 |
tempPacket = PerformMsduAggregation (peekedPacket, &peekedHdr, &tstamp, currentAggregatedPacket, blockAckSize); |
2853 |
tempPacket = PerformMsduAggregation (peekedPacket, &peekedHdr, &tstamp, currentAggregatedPacket, blockAckSize); |
| 2783 |
if (tempPacket != 0) //MSDU aggregation |
2854 |
if (tempPacket != 0) //MSDU aggregation |
|
Lines 2803-2809
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2803 |
m_aggregateQueue[tid]->Enqueue (Create<WifiMacQueueItem> (aggPacket, peekedHdr)); |
2874 |
m_aggregateQueue[tid]->Enqueue (Create<WifiMacQueueItem> (aggPacket, peekedHdr)); |
| 2804 |
newPacket->AddHeader (peekedHdr); |
2875 |
newPacket->AddHeader (peekedHdr); |
| 2805 |
AddWifiMacTrailer (newPacket); |
2876 |
AddWifiMacTrailer (newPacket); |
| 2806 |
edcaIt->second->GetMpduAggregator ()->Aggregate (newPacket, currentAggregatedPacket); |
2877 |
edcaIt->second->GetMpduAggregator ()->Aggregate (newPacket, currentAggregatedPacket, GetMaxAmpduSize (ac)); |
| 2807 |
currentAggregatedPacket->AddHeader (blockAckReq); |
2878 |
currentAggregatedPacket->AddHeader (blockAckReq); |
| 2808 |
} |
2879 |
} |
| 2809 |
|
2880 |
|
|
Lines 2818-2824
MacLow::AggregateToAmpdu (Ptr<const Packet> packet, const WifiMacHeader hdr)
|
Link Here
|
|---|
|
| 2818 |
newPacket = currentAggregatedPacket; |
2889 |
newPacket = currentAggregatedPacket; |
| 2819 |
newPacket->AddPacketTag (ampdutag); |
2890 |
newPacket->AddPacketTag (ampdutag); |
| 2820 |
|
2891 |
|
| 2821 |
NS_LOG_DEBUG ("tx unicast A-MPDU"); |
2892 |
NS_LOG_DEBUG ("tx unicast A-MPDU containing " << +i << " MPDUs"); |
| 2822 |
edcaIt->second->SetAmpduExist (hdr.GetAddr1 (), true); |
2893 |
edcaIt->second->SetAmpduExist (hdr.GetAddr1 (), true); |
| 2823 |
} |
2894 |
} |
| 2824 |
else |
2895 |
else |
|
Lines 2914-2920
MacLow::PerformMsduAggregation (Ptr<const Packet> packet, WifiMacHeader *hdr, Ti
|
Link Here
|
|---|
|
| 2914 |
|
2985 |
|
| 2915 |
edcaIt->second->GetMsduAggregator ()->Aggregate (packet, currentAmsduPacket, |
2986 |
edcaIt->second->GetMsduAggregator ()->Aggregate (packet, currentAmsduPacket, |
| 2916 |
edcaIt->second->MapSrcAddressForAggregation (*hdr), |
2987 |
edcaIt->second->MapSrcAddressForAggregation (*hdr), |
| 2917 |
edcaIt->second->MapDestAddressForAggregation (*hdr)); |
2988 |
edcaIt->second->MapDestAddressForAggregation (*hdr), |
|
|
2989 |
GetMaxAmsduSize (ac)); |
| 2918 |
|
2990 |
|
| 2919 |
peekedItem = queue->PeekByTidAndAddress (hdr->GetQosTid (), hdr->GetAddr1 ()); |
2991 |
peekedItem = queue->PeekByTidAndAddress (hdr->GetQosTid (), hdr->GetAddr1 ()); |
| 2920 |
while (peekedItem != 0) |
2992 |
while (peekedItem != 0) |
|
Lines 2925-2931
MacLow::PerformMsduAggregation (Ptr<const Packet> packet, WifiMacHeader *hdr, Ti
|
Link Here
|
|---|
|
| 2925 |
|
2997 |
|
| 2926 |
msduAggregation = edcaIt->second->GetMsduAggregator ()->Aggregate (peekedItem->GetPacket (), tempPacket, |
2998 |
msduAggregation = edcaIt->second->GetMsduAggregator ()->Aggregate (peekedItem->GetPacket (), tempPacket, |
| 2927 |
edcaIt->second->MapSrcAddressForAggregation (*hdr), |
2999 |
edcaIt->second->MapSrcAddressForAggregation (*hdr), |
| 2928 |
edcaIt->second->MapDestAddressForAggregation (*hdr)); |
3000 |
edcaIt->second->MapDestAddressForAggregation (*hdr), |
|
|
3001 |
GetMaxAmsduSize (ac)); |
| 2929 |
|
3002 |
|
| 2930 |
if (msduAggregation && !StopMpduAggregation (tempPacket, *hdr, currentAmpduPacket, blockAckSize)) |
3003 |
if (msduAggregation && !StopMpduAggregation (tempPacket, *hdr, currentAmpduPacket, blockAckSize)) |
| 2931 |
{ |
3004 |
{ |
|
Lines 2986-2989
MacLow::CanTransmitNextCfFrame (void) const
|
Link Here
|
|---|
|
| 2986 |
return ((GetRemainingCfpDuration () - nextTransmission).IsPositive ()); |
3059 |
return ((GetRemainingCfpDuration () - nextTransmission).IsPositive ()); |
| 2987 |
} |
3060 |
} |
| 2988 |
|
3061 |
|
|
|
3062 |
uint16_t |
| 3063 |
MacLow::GetMaxAmsduSize (AcIndex ac) const |
| 3064 |
{ |
| 3065 |
UintegerValue size; |
| 3066 |
WifiModulationClass modulation = GetDataTxVector (m_currentPacket, &m_currentHdr).GetMode ().GetModulationClass (); |
| 3067 |
if (modulation == WIFI_MOD_CLASS_HT) |
| 3068 |
{ |
| 3069 |
Ptr<HtConfiguration> htConfiguration = m_mac->GetHtConfiguration (); |
| 3070 |
NS_ASSERT (htConfiguration); //If modulation to transmit A-MSDU is HT, we should have a HT configuration attached |
| 3071 |
switch (ac) |
| 3072 |
{ |
| 3073 |
case AC_BE: |
| 3074 |
htConfiguration->GetAttribute ("BeMaxAmsduSize", size); |
| 3075 |
break; |
| 3076 |
case AC_BK: |
| 3077 |
htConfiguration->GetAttribute ("BkMaxAmsduSize", size); |
| 3078 |
break; |
| 3079 |
case AC_VI: |
| 3080 |
htConfiguration->GetAttribute ("ViMaxAmsduSize", size); |
| 3081 |
break; |
| 3082 |
case AC_VO: |
| 3083 |
htConfiguration->GetAttribute ("VoMaxAmsduSize", size); |
| 3084 |
break; |
| 3085 |
default: |
| 3086 |
NS_ASSERT (false); |
| 3087 |
return 0; |
| 3088 |
} |
| 3089 |
} |
| 3090 |
else if (modulation == WIFI_MOD_CLASS_VHT) |
| 3091 |
{ |
| 3092 |
Ptr<VhtConfiguration> vhtConfiguration = m_mac->GetVhtConfiguration (); |
| 3093 |
NS_ASSERT (vhtConfiguration); //If modulation to transmit A-MSDU is VHT, we should have a VHT configuration attached |
| 3094 |
switch (ac) |
| 3095 |
{ |
| 3096 |
case AC_BE: |
| 3097 |
vhtConfiguration->GetAttribute ("BeMaxAmsduSize", size); |
| 3098 |
break; |
| 3099 |
case AC_BK: |
| 3100 |
vhtConfiguration->GetAttribute ("BkMaxAmsduSize", size); |
| 3101 |
break; |
| 3102 |
case AC_VI: |
| 3103 |
vhtConfiguration->GetAttribute ("ViMaxAmsduSize", size); |
| 3104 |
break; |
| 3105 |
case AC_VO: |
| 3106 |
vhtConfiguration->GetAttribute ("VoMaxAmsduSize", size); |
| 3107 |
break; |
| 3108 |
default: |
| 3109 |
NS_ASSERT (false); |
| 3110 |
return 0; |
| 3111 |
} |
| 3112 |
} |
| 3113 |
else if (modulation == WIFI_MOD_CLASS_HE) |
| 3114 |
{ |
| 3115 |
Ptr<HeConfiguration> heConfiguration = m_mac->GetHeConfiguration (); |
| 3116 |
NS_ASSERT (heConfiguration); //If modulation to transmit A-MSDU is HE, we should have a HE configuration attached |
| 3117 |
switch (ac) |
| 3118 |
{ |
| 3119 |
case AC_BE: |
| 3120 |
heConfiguration->GetAttribute ("BeMaxAmsduSize", size); |
| 3121 |
break; |
| 3122 |
case AC_BK: |
| 3123 |
heConfiguration->GetAttribute ("BkMaxAmsduSize", size); |
| 3124 |
break; |
| 3125 |
case AC_VI: |
| 3126 |
heConfiguration->GetAttribute ("ViMaxAmsduSize", size); |
| 3127 |
break; |
| 3128 |
case AC_VO: |
| 3129 |
heConfiguration->GetAttribute ("VoMaxAmsduSize", size); |
| 3130 |
break; |
| 3131 |
default: |
| 3132 |
NS_ASSERT (false); |
| 3133 |
return 0; |
| 3134 |
} |
| 3135 |
} |
| 3136 |
return size.Get (); |
| 3137 |
} |
| 3138 |
|
| 3139 |
uint32_t |
| 3140 |
MacLow::GetMaxAmpduSize (AcIndex ac) const |
| 3141 |
{ |
| 3142 |
UintegerValue size; |
| 3143 |
WifiModulationClass modulation = GetDataTxVector (m_currentPacket, &m_currentHdr).GetMode ().GetModulationClass (); |
| 3144 |
if (modulation == WIFI_MOD_CLASS_HT) |
| 3145 |
{ |
| 3146 |
Ptr<HtConfiguration> htConfiguration = m_mac->GetHtConfiguration (); |
| 3147 |
NS_ASSERT (htConfiguration); //If modulation to transmit A-MPDU is HT, we should have a HT configuration attached |
| 3148 |
switch (ac) |
| 3149 |
{ |
| 3150 |
case AC_BE: |
| 3151 |
htConfiguration->GetAttribute ("BeMaxAmpduSize", size); |
| 3152 |
break; |
| 3153 |
case AC_BK: |
| 3154 |
htConfiguration->GetAttribute ("BkMaxAmpduSize", size); |
| 3155 |
break; |
| 3156 |
case AC_VI: |
| 3157 |
htConfiguration->GetAttribute ("ViMaxAmpduSize", size); |
| 3158 |
break; |
| 3159 |
case AC_VO: |
| 3160 |
htConfiguration->GetAttribute ("VoMaxAmpduSize", size); |
| 3161 |
break; |
| 3162 |
default: |
| 3163 |
NS_ASSERT (false); |
| 3164 |
return 0; |
| 3165 |
} |
| 3166 |
} |
| 3167 |
else if (modulation == WIFI_MOD_CLASS_VHT) |
| 3168 |
{ |
| 3169 |
Ptr<VhtConfiguration> vhtConfiguration = m_mac->GetVhtConfiguration (); |
| 3170 |
NS_ASSERT (vhtConfiguration); //If modulation to transmit A-MPDU is VHT, we should have a VHT configuration attached |
| 3171 |
switch (ac) |
| 3172 |
{ |
| 3173 |
case AC_BE: |
| 3174 |
vhtConfiguration->GetAttribute ("BeMaxAmpduSize", size); |
| 3175 |
break; |
| 3176 |
case AC_BK: |
| 3177 |
vhtConfiguration->GetAttribute ("BkMaxAmpduSize", size); |
| 3178 |
break; |
| 3179 |
case AC_VI: |
| 3180 |
vhtConfiguration->GetAttribute ("ViMaxAmpduSize", size); |
| 3181 |
break; |
| 3182 |
case AC_VO: |
| 3183 |
vhtConfiguration->GetAttribute ("VoMaxAmpduSize", size); |
| 3184 |
break; |
| 3185 |
default: |
| 3186 |
NS_ASSERT (false); |
| 3187 |
return 0; |
| 3188 |
} |
| 3189 |
} |
| 3190 |
else if (modulation == WIFI_MOD_CLASS_HE) |
| 3191 |
{ |
| 3192 |
Ptr<HeConfiguration> heConfiguration = m_mac->GetHeConfiguration (); |
| 3193 |
NS_ASSERT (heConfiguration); //If modulation to transmit A-MPDU is HE, we should have a HE configuration attached |
| 3194 |
switch (ac) |
| 3195 |
{ |
| 3196 |
case AC_BE: |
| 3197 |
heConfiguration->GetAttribute ("BeMaxAmpduSize", size); |
| 3198 |
break; |
| 3199 |
case AC_BK: |
| 3200 |
heConfiguration->GetAttribute ("BkMaxAmpduSize", size); |
| 3201 |
break; |
| 3202 |
case AC_VI: |
| 3203 |
heConfiguration->GetAttribute ("ViMaxAmpduSize", size); |
| 3204 |
break; |
| 3205 |
case AC_VO: |
| 3206 |
heConfiguration->GetAttribute ("VoMaxAmpduSize", size); |
| 3207 |
break; |
| 3208 |
default: |
| 3209 |
NS_ASSERT (false); |
| 3210 |
return 0; |
| 3211 |
} |
| 3212 |
} |
| 3213 |
return size.Get (); |
| 3214 |
} |
| 3215 |
|
| 2989 |
} //namespace ns3 |
3216 |
} //namespace ns3 |