PHY entity slightly modified so as to return a given STA-ID in case of DL MU for OfdmaSpectrumWifiPhy. More...
Public Member Functions | |
OfdmaTestPhy (uint16_t staId) | |
Constructor. | |
WifiSpectrumBandInfo | GetNonOfdmaBand (const WifiTxVector &txVector, uint16_t staId) const |
Get the band used to transmit the non-OFDMA part of an HE TB PPDU. | |
uint16_t | GetStaId (const Ptr< const WifiPpdu > ppdu) const override |
Return the STA ID that has been assigned to the station this PHY belongs to. | |
void | SetGlobalPpduUid (uint64_t uid) |
Set the global PPDU UID counter. | |
Private Attributes | |
uint16_t | m_staId |
ID of the STA to which this PHY belongs to. | |
PHY entity slightly modified so as to return a given STA-ID in case of DL MU for OfdmaSpectrumWifiPhy.
Definition at line 66 of file wifi-phy-ofdma-test.cc.
OfdmaTestPhy< PhyEntityType >::OfdmaTestPhy | ( | uint16_t | staId | ) |
Constructor.
staId | the ID of the STA to which this PHY belongs to |
Definition at line 109 of file wifi-phy-ofdma-test.cc.
WifiSpectrumBandInfo OfdmaTestPhy< PhyEntityType >::GetNonOfdmaBand | ( | const WifiTxVector & | txVector, |
uint16_t | staId ) const |
Get the band used to transmit the non-OFDMA part of an HE TB PPDU.
txVector | the TXVECTOR used for the transmission |
staId | the STA-ID of the station taking part of the UL MU |
Definition at line 136 of file wifi-phy-ofdma-test.cc.
References ns3::WifiRu::FindOverlappingRu(), ns3::WifiTxVector::GetChannelWidth(), ns3::WifiTxVector::GetModulationClass(), ns3::WifiRu::GetPhyIndex(), ns3::WifiTxVector::GetRu(), ns3::WifiRu::GetRuType(), ns3::WifiRu::GetSubcarrierGroup(), ns3::WifiSpectrumBandInfo::indices, ns3::WifiTxVector::IsUlMu(), NS_ASSERT, and ns3::WIFI_MOD_CLASS_HE.
|
override |
Return the STA ID that has been assigned to the station this PHY belongs to.
This is typically called for MU PPDUs, in order to pick the correct PSDU.
ppdu | the PPDU for which the STA ID is requested |
Definition at line 117 of file wifi-phy-ofdma-test.cc.
References NS_LOG_FUNCTION, and ns3::WIFI_PPDU_TYPE_DL_MU.
void OfdmaTestPhy< PhyEntityType >::SetGlobalPpduUid | ( | uint64_t | uid | ) |
Set the global PPDU UID counter.
uid | the value to which the global PPDU UID counter should be set |
Definition at line 129 of file wifi-phy-ofdma-test.cc.
|
private |
ID of the STA to which this PHY belongs to.
Definition at line 103 of file wifi-phy-ofdma-test.cc.