wifi: Max value for UL MCS field of User Info fields depends on Trigger Frame variant
This commit is contained in:
committed by
Stefano Avallone
parent
a8237503c8
commit
ea3e894d7f
@@ -1451,7 +1451,8 @@ CtrlTriggerUserInfoField::GetUlFecCodingType() const
|
||||
void
|
||||
CtrlTriggerUserInfoField::SetUlMcs(uint8_t mcs)
|
||||
{
|
||||
NS_ABORT_MSG_IF(mcs > 11, "Invalid MCS index");
|
||||
uint8_t maxMcs = m_variant == TriggerFrameVariant::EHT ? 13 : 11;
|
||||
NS_ABORT_MSG_IF(mcs > maxMcs, "Invalid MCS index");
|
||||
m_ulMcs = mcs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user