wifi: Simplify condition in WifiTxVector::GetContentChannels

This commit is contained in:
Sébastien Deronne
2023-05-04 22:34:04 +02:00
committed by Sébastien Deronne
parent ab4a782bb7
commit 77643aec3a

View File

@@ -678,8 +678,7 @@ WifiTxVector::GetContentChannels(uint8_t p20Index) const
const auto& userInfo = GetHeMuUserInfo(staId);
NS_ASSERT(ru == userInfo.ru);
if ((ruType == HeRu::RU_484_TONE) || (ruType == HeRu::RU_996_TONE) ||
(ruType == HeRu::RU_2x996_TONE))
if (ruType > HeRu::RU_242_TONE)
{
for (auto i = 0; i < ((ruType == HeRu::RU_2x996_TONE) ? 2 : 1); ++i)
{