wifi: Extend RU allocation to 9 bits

This commit is contained in:
Sébastien Deronne
2024-09-15 13:17:32 +02:00
parent 9de61b5076
commit 4a586f1ca9
3 changed files with 5 additions and 5 deletions

View File

@@ -106,7 +106,7 @@ class EhtPpdu : public HePpdu
static std::pair<std::size_t, std::size_t> GetNumRusPerEhtSigBContentChannel(
MHz_u channelWidth,
uint8_t ehtPpduType,
const std::vector<uint8_t>& ruAllocation,
const RuAllocation& ruAllocation,
bool compression,
std::size_t numMuMimoUsers);
@@ -131,7 +131,7 @@ class EhtPpdu : public HePpdu
* \return field size in bytes
*/
static uint32_t GetEhtSigFieldSize(MHz_u channelWidth,
const std::vector<uint8_t>& ruAllocation,
const RuAllocation& ruAllocation,
uint8_t ehtPpduType,
bool compression,
std::size_t numMuMimoUsers);

View File

@@ -51,8 +51,8 @@ struct HeMuUserInfo
bool operator!=(const HeMuUserInfo& other) const;
};
/// 8 bit RU_ALLOCATION per 20 MHz
using RuAllocation = std::vector<uint8_t>;
/// 9 bits RU_ALLOCATION per 20 MHz
using RuAllocation = std::vector<uint16_t>;
/**
* \ingroup wifi

View File

@@ -1377,7 +1377,7 @@ TestDlOfdmaPhyPuncturing::SendMuPpdu(uint16_t rxStaId1,
txVector.SetMode(HePhy::GetHeMcs9(), rxStaId2);
txVector.SetNss(1, rxStaId2);
std::vector<uint8_t> ruAlloc;
RuAllocation ruAlloc;
if (puncturedSubchannels.empty())
{
std::fill_n(std::back_inserter(ruAlloc), 4, 200);