|
|
| 330 |
uint8_t nss = (mode.GetMcsValue () / 8) + 1; |
330 |
uint8_t nss = (mode.GetMcsValue () / 8) + 1; |
| 331 |
txVector.SetNss (nss); |
331 |
txVector.SetNss (nss); |
| 332 |
if (WifiPhy::IsValidTxVector (txVector) == false || |
332 |
if (WifiPhy::IsValidTxVector (txVector) == false || |
| 333 |
nss > GetNumberOfSupportedStreams (st)) |
333 |
nss > std::min (GetMaxNumberOfTransmitStreams (), GetNumberOfSupportedStreams (st))) |
| 334 |
{ |
334 |
{ |
| 335 |
NS_LOG_DEBUG ("Skipping mode " << mode.GetUniqueName () << |
335 |
NS_LOG_DEBUG ("Skipping mode " << mode.GetUniqueName () << |
| 336 |
" nss " << (uint16_t) nss << " width " << |
336 |
" nss " << (uint16_t) nss << " width " << |
|
|
| 370 |
{ |
370 |
{ |
| 371 |
continue; |
371 |
continue; |
| 372 |
} |
372 |
} |
| 373 |
for (uint8_t nss = 1; nss <= GetNumberOfSupportedStreams (station); nss++) |
373 |
for (uint8_t nss = 1; nss <= std::min (GetMaxNumberOfTransmitStreams (), GetNumberOfSupportedStreams (station)); nss++) |
| 374 |
{ |
374 |
{ |
| 375 |
txVector.SetNss (nss); |
375 |
txVector.SetNss (nss); |
| 376 |
if (WifiPhy::IsValidTxVector (txVector) == false) |
376 |
if (WifiPhy::IsValidTxVector (txVector) == false) |