OLD | NEW |
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) 2004,2005 INRIA | 3 * Copyright (c) 2004,2005 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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> | 18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 */ | 19 */ |
20 | 20 |
21 #include "constant-rate-wifi-manager.h" | |
22 #include "wifi-utils.h" | |
23 #include "ns3/string.h" | 21 #include "ns3/string.h" |
24 #include "ns3/log.h" | 22 #include "ns3/log.h" |
| 23 #include "constant-rate-wifi-manager.h" |
| 24 #include "wifi-tx-vector.h" |
| 25 #include "wifi-utils.h" |
25 | 26 |
26 #define Min(a,b) ((a < b) ? a : b) | 27 #define Min(a,b) ((a < b) ? a : b) |
27 | 28 |
28 namespace ns3 { | 29 namespace ns3 { |
29 | 30 |
30 NS_LOG_COMPONENT_DEFINE ("ConstantRateWifiManager"); | 31 NS_LOG_COMPONENT_DEFINE ("ConstantRateWifiManager"); |
31 | 32 |
32 NS_OBJECT_ENSURE_REGISTERED (ConstantRateWifiManager); | 33 NS_OBJECT_ENSURE_REGISTERED (ConstantRateWifiManager); |
33 | 34 |
34 TypeId | 35 TypeId |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 return WifiTxVector (m_ctlMode, GetDefaultTxPowerLevel (), GetPreambleForTrans
mission (m_ctlMode, GetAddress (st)), ConvertGuardIntervalToNanoSeconds (m_ctlMo
de, GetShortGuardInterval (st), NanoSeconds (GetGuardInterval (st))), 1, 1, 0, G
etChannelWidthForTransmission (m_ctlMode, GetChannelWidth (st)), GetAggregation
(st), false); | 128 return WifiTxVector (m_ctlMode, GetDefaultTxPowerLevel (), GetPreambleForTrans
mission (m_ctlMode, GetAddress (st)), ConvertGuardIntervalToNanoSeconds (m_ctlMo
de, GetShortGuardInterval (st), NanoSeconds (GetGuardInterval (st))), 1, 1, 0, G
etChannelWidthForTransmission (m_ctlMode, GetChannelWidth (st)), GetAggregation
(st), false); |
128 } | 129 } |
129 | 130 |
130 bool | 131 bool |
131 ConstantRateWifiManager::IsLowLatency (void) const | 132 ConstantRateWifiManager::IsLowLatency (void) const |
132 { | 133 { |
133 return true; | 134 return true; |
134 } | 135 } |
135 | 136 |
136 } //namespace ns3 | 137 } //namespace ns3 |
OLD | NEW |