|
Lines 358-363
IdealWifiManager::DoGetDataTxVector (WifiRemoteStation *st)
|
Link Here
|
|---|
|
| 358 |
NS_LOG_DEBUG ("Updating cached values for station to " << maxMode.GetUniqueName () << " snr " << station->m_lastSnrObserved); |
358 |
NS_LOG_DEBUG ("Updating cached values for station to " << maxMode.GetUniqueName () << " snr " << station->m_lastSnrObserved); |
| 359 |
station->m_lastSnrCached = station->m_lastSnrObserved; |
359 |
station->m_lastSnrCached = station->m_lastSnrObserved; |
| 360 |
station->m_lastMode = maxMode; |
360 |
station->m_lastMode = maxMode; |
|
|
361 |
if (maxMode.GetModulationClass () == WIFI_MOD_CLASS_HT) |
| 362 |
{ |
| 363 |
//derive NSS from the Mcs index |
| 364 |
nss = (maxMode.GetMcsValue () / 8) + 1; |
| 365 |
} |
| 366 |
else |
| 367 |
{ |
| 368 |
nss = GetPhy ()->GetMaxSupportedTxSpatialStreams (); |
| 369 |
} |
| 361 |
station->m_nss = nss; |
370 |
station->m_nss = nss; |
| 362 |
} |
371 |
} |
| 363 |
uint8_t channelWidth = GetChannelWidth (station); |
372 |
uint8_t channelWidth = GetChannelWidth (station); |