wifi: Use RuAllocation alias instead of std::vector<uint8_t>
This commit is contained in:
committed by
Sebastien Deronne
parent
ba7930d397
commit
64a2970a60
@@ -112,7 +112,7 @@ EhtPpdu::SetTxVectorFromPhyHeaders(WifiTxVector& txVector,
|
||||
std::pair<std::size_t, std::size_t>
|
||||
EhtPpdu::GetNumRusPerEhtSigBContentChannel(uint16_t channelWidth,
|
||||
uint8_t ehtPpduType,
|
||||
const std::vector<uint8_t>& ruAllocation)
|
||||
const RuAllocation& ruAllocation)
|
||||
{
|
||||
if (ehtPpduType == 1)
|
||||
{
|
||||
|
||||
@@ -429,8 +429,7 @@ HePpdu::UpdateTxVectorForUlMu(const std::optional<WifiTxVector>& trigVector) con
|
||||
}
|
||||
|
||||
std::pair<std::size_t, std::size_t>
|
||||
HePpdu::GetNumRusPerHeSigBContentChannel(uint16_t channelWidth,
|
||||
const std::vector<uint8_t>& ruAllocation)
|
||||
HePpdu::GetNumRusPerHeSigBContentChannel(uint16_t channelWidth, const RuAllocation& ruAllocation)
|
||||
{
|
||||
// MU-MIMO is not handled for now, i.e. one station per RU
|
||||
NS_ASSERT_MSG(!ruAllocation.empty(), "RU allocation is not set");
|
||||
|
||||
@@ -309,7 +309,7 @@ class HePpdu : public OfdmPpdu
|
||||
*/
|
||||
static std::pair<std::size_t, std::size_t> GetNumRusPerHeSigBContentChannel(
|
||||
uint16_t channelWidth,
|
||||
const std::vector<uint8_t>& ruAllocation);
|
||||
const RuAllocation& ruAllocation);
|
||||
|
||||
/**
|
||||
* Get variable length HE SIG-B field size
|
||||
@@ -317,8 +317,7 @@ class HePpdu : public OfdmPpdu
|
||||
* \param ruAllocation 8 bit RU_ALLOCATION per 20 MHz
|
||||
* \return field size in bytes
|
||||
*/
|
||||
static uint32_t GetSigBFieldSize(uint16_t channelWidth,
|
||||
const std::vector<uint8_t>& ruAllocation);
|
||||
static uint32_t GetSigBFieldSize(uint16_t channelWidth, const RuAllocation& ruAllocation);
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user