wifi: Use HeRu::GetNRus directly in GetHeSigBContentChannels

This commit is contained in:
Sébastien Deronne
2023-03-27 20:43:44 +02:00
parent d1c11e162f
commit 11054861a9

View File

@@ -702,9 +702,7 @@ HePpdu::GetHeSigBContentChannels(const WifiTxVector& txVector, uint8_t p20Index)
continue;
}
std::size_t numRus = (ruType >= HeRu::RU_242_TONE)
? 1
: HeRu::m_heRuSubcarrierGroups.at({MHz_u{20}, ruType}).size();
const auto numRus = HeRu::GetNRus(MHz_u{20}, ruType);
auto ruIdx = ru.GetIndex();
while (prevRuIndex < ruIndex - 1)
{