LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2006 INRIA | 3 * Copyright (c) 2006 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 } | 481 } |
482 else | 482 else |
483 { | 483 { |
484 guardInterval = std::max (GetShortGuardInterval (station) ? 400 : 800, Get
Phy ()->GetShortGuardInterval () ? 400 : 800); | 484 guardInterval = std::max (GetShortGuardInterval (station) ? 400 : 800, Get
Phy ()->GetShortGuardInterval () ? 400 : 800); |
485 } | 485 } |
486 if (m_currentRate != maxMode.GetDataRate (channelWidth, guardInterval, selecte
dNss)) | 486 if (m_currentRate != maxMode.GetDataRate (channelWidth, guardInterval, selecte
dNss)) |
487 { | 487 { |
488 NS_LOG_DEBUG ("New datarate: " << maxMode.GetDataRate (channelWidth, guard
Interval, selectedNss)); | 488 NS_LOG_DEBUG ("New datarate: " << maxMode.GetDataRate (channelWidth, guard
Interval, selectedNss)); |
489 m_currentRate = maxMode.GetDataRate (channelWidth, guardInterval, selected
Nss); | 489 m_currentRate = maxMode.GetDataRate (channelWidth, guardInterval, selected
Nss); |
490 } | 490 } |
491 return WifiTxVector (maxMode, GetDefaultTxPowerLevel (), GetLongRetryCount (st
ation), GetPreambleForTransmission (maxMode, GetAddress (station)), guardInterva
l, GetNumberOfAntennas (), selectedNss, 0, channelWidth, GetAggregation (station
), false); | 491 return WifiTxVector (maxMode, GetDefaultTxPowerLevel (), GetLongRetryCount (st
ation), GetPreambleForTransmission (maxMode, GetAddress (station)), guardInterva
l, GetNumberOfAntennas (), selectedNss, 0, GetChannelWidthForTransmission (maxMo
de, channelWidth), GetAggregation (station), false); |
492 } | 492 } |
493 | 493 |
494 WifiTxVector | 494 WifiTxVector |
495 IdealWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) | 495 IdealWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) |
496 { | 496 { |
497 NS_LOG_FUNCTION (this << st); | 497 NS_LOG_FUNCTION (this << st); |
498 IdealWifiRemoteStation *station = (IdealWifiRemoteStation *)st; | 498 IdealWifiRemoteStation *station = (IdealWifiRemoteStation *)st; |
499 //We search within the Basic rate set the mode with the highest | 499 //We search within the Basic rate set the mode with the highest |
500 //snr threshold possible which is smaller than m_lastSnr to | 500 //snr threshold possible which is smaller than m_lastSnr to |
501 //ensure correct packet delivery. | 501 //ensure correct packet delivery. |
(...skipping 20 matching lines...) Expand all Loading... |
522 return WifiTxVector (maxMode, GetDefaultTxPowerLevel (), GetShortRetryCount (s
tation), GetPreambleForTransmission (maxMode, GetAddress (station)), 800, GetNum
berOfAntennas (), nss, 0, GetChannelWidthForMode (maxMode), GetAggregation (stat
ion), false); | 522 return WifiTxVector (maxMode, GetDefaultTxPowerLevel (), GetShortRetryCount (s
tation), GetPreambleForTransmission (maxMode, GetAddress (station)), 800, GetNum
berOfAntennas (), nss, 0, GetChannelWidthForMode (maxMode), GetAggregation (stat
ion), false); |
523 } | 523 } |
524 | 524 |
525 bool | 525 bool |
526 IdealWifiManager::IsLowLatency (void) const | 526 IdealWifiManager::IsLowLatency (void) const |
527 { | 527 { |
528 return true; | 528 return true; |
529 } | 529 } |
530 | 530 |
531 } //namespace ns3 | 531 } //namespace ns3 |
LEFT | RIGHT |