|
|
| 321 |
maxThreshold << " last snr observed " << |
321 |
maxThreshold << " last snr observed " << |
| 322 |
station->m_lastSnrObserved << " cached " << |
322 |
station->m_lastSnrObserved << " cached " << |
| 323 |
station->m_lastSnrCached); |
323 |
station->m_lastSnrCached); |
| 324 |
if (threshold > maxThreshold && threshold < station->m_lastSnrObserved) |
324 |
if (threshold >= maxThreshold && threshold < station->m_lastSnrObserved) |
| 325 |
{ |
325 |
{ |
| 326 |
NS_LOG_DEBUG ("Candidate mode = " << mode.GetUniqueName () << |
326 |
NS_LOG_DEBUG ("Candidate mode = " << mode.GetUniqueName () << |
| 327 |
" threshold " << threshold << |
327 |
" threshold " << threshold << |
|
|
| 347 |
" threshold " << threshold << |
347 |
" threshold " << threshold << |
| 348 |
" last snr observed " << |
348 |
" last snr observed " << |
| 349 |
station->m_lastSnrObserved); |
349 |
station->m_lastSnrObserved); |
| 350 |
if (threshold > maxThreshold && threshold < station->m_lastSnrObserved) |
350 |
if (threshold >= maxThreshold && threshold < station->m_lastSnrObserved) |
| 351 |
{ |
351 |
{ |
| 352 |
NS_LOG_DEBUG ("Candidate mode = " << mode.GetUniqueName () << |
352 |
NS_LOG_DEBUG ("Candidate mode = " << mode.GetUniqueName () << |
| 353 |
" threshold " << threshold << |
353 |
" threshold " << threshold << |
|
|
| 396 |
txVector.SetNss (nss); |
396 |
txVector.SetNss (nss); |
| 397 |
txVector.SetChannelWidth (GetChannelWidthForMode (mode)); |
397 |
txVector.SetChannelWidth (GetChannelWidthForMode (mode)); |
| 398 |
double threshold = GetSnrThreshold (txVector); |
398 |
double threshold = GetSnrThreshold (txVector); |
| 399 |
if (threshold > maxThreshold && threshold < station->m_lastSnrObserved) |
399 |
if (threshold >= maxThreshold && threshold < station->m_lastSnrObserved) |
| 400 |
{ |
400 |
{ |
| 401 |
maxThreshold = threshold; |
401 |
maxThreshold = threshold; |
| 402 |
maxMode = mode; |
402 |
maxMode = mode; |