wifi: Fix setting TX power for HE TB PPDUs

...in case AP requested using the max TX power
This commit is contained in:
Stefano Avallone
2022-05-20 17:37:49 +02:00
parent 4be4ab41dd
commit a0cf461037
2 changed files with 8 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ Release 3-dev
### Bugs fixed
- (wifi) Fix setting of stations' max supported channel width
- (wifi) Fix setting TX power for HE TB PPDUs in case AP requested using the max TX power
Release 3.36.1
--------------

View File

@@ -1084,6 +1084,13 @@ HeFrameExchangeManager::GetHeTbTxVector (CtrlTriggerHeader trigger, Mac48Address
NS_ASSERT_MSG (heConfiguration != 0, "This STA has to be an HE station to send an HE TB PPDU");
v.SetBssColor (heConfiguration->GetBssColor ());
if (userInfoIt->IsUlTargetRssiMaxTxPower ())
{
NS_LOG_LOGIC ("AP requested using the max transmit power (" << m_phy->GetTxPowerEnd () << " dBm)");
v.SetTxPowerLevel (m_phy->GetNTxPower ());
return v;
}
uint8_t powerLevel = m_mac->GetWifiRemoteStationManager ()->GetDefaultTxPowerLevel ();
/**
* Get the transmit power to use for an HE TB PPDU