wifi: Limit TXOP bandwidth upon every transmission
This commit is contained in:
committed by
Stefano Avallone
parent
2e3dbaea4e
commit
61a6921a89
@@ -525,6 +525,7 @@ FrameExchangeManager::ForwardMpduDown(Ptr<WifiMpdu> mpdu, WifiTxVector& txVector
|
||||
|
||||
auto psdu = Create<WifiPsdu>(mpdu, false);
|
||||
FinalizeMacHeader(psdu);
|
||||
m_allowedWidth = std::min(m_allowedWidth, txVector.GetChannelWidth());
|
||||
m_phy->Send(psdu, txVector);
|
||||
}
|
||||
|
||||
|
||||
@@ -918,6 +918,8 @@ HeFrameExchangeManager::ForwardPsduMapDown(WifiConstPsduMap psduMap, WifiTxVecto
|
||||
FinalizeMacHeader(psdu);
|
||||
NotifyTxToEdca(psdu);
|
||||
}
|
||||
m_allowedWidth = std::min(m_allowedWidth, txVector.GetChannelWidth());
|
||||
|
||||
if (psduMap.size() > 1 || psduMap.begin()->second->IsAggregate() ||
|
||||
psduMap.begin()->second->IsSingle())
|
||||
{
|
||||
|
||||
@@ -1131,6 +1131,7 @@ HtFrameExchangeManager::ForwardPsduDown(Ptr<const WifiPsdu> psdu, WifiTxVector&
|
||||
NS_LOG_DEBUG("Transmitting a PSDU: " << *psdu << " TXVECTOR: " << txVector);
|
||||
FinalizeMacHeader(psdu);
|
||||
NotifyTxToEdca(psdu);
|
||||
m_allowedWidth = std::min(m_allowedWidth, txVector.GetChannelWidth());
|
||||
|
||||
if (psdu->IsAggregate())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user