wifi: (fixes #917) Add missing STA-ID in GetMode() call from YansErrorRateModel

This commit is contained in:
Stefano Avallone
2023-06-15 11:18:36 +02:00
parent 14f77391fe
commit da28627dd8

View File

@@ -206,7 +206,7 @@ YansErrorRateModel::DoGetChunkSuccessRate(WifiMode mode,
if (mode.GetModulationClass() >= WIFI_MOD_CLASS_ERP_OFDM)
{
uint64_t phyRate;
if ((txVector.IsMu() && (staId == SU_STA_ID)) || (mode != txVector.GetMode()))
if ((txVector.IsMu() && (staId == SU_STA_ID)) || (mode != txVector.GetMode(staId)))
{
phyRate = mode.GetPhyRate(txVector.GetChannelWidth() >= 40
? 20