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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 NS_OBJECT_ENSURE_REGISTERED (ConstantRateWifiManager); | 28 NS_OBJECT_ENSURE_REGISTERED (ConstantRateWifiManager); |
29 | 29 |
30 TypeId· | 30 TypeId· |
31 ConstantRateWifiManager::GetTypeId (void) | 31 ConstantRateWifiManager::GetTypeId (void) |
32 { | 32 { |
33 static TypeId tid = TypeId ("ns3::ConstantRateWifiManager") | 33 static TypeId tid = TypeId ("ns3::ConstantRateWifiManager") |
34 .SetParent<WifiRemoteStationManager> () | 34 .SetParent<WifiRemoteStationManager> () |
35 .AddConstructor<ConstantRateWifiManager> () | 35 .AddConstructor<ConstantRateWifiManager> () |
36 .AddAttribute ("DataMode", "The transmission mode to use for every data pack
et transmission", | 36 .AddAttribute ("DataMode", "The transmission mode to use for every data pack
et transmission", |
37 StringValue ("wifia-6mbs"), | 37 StringValue ("OfdmRate6Mbps"), |
38 MakeWifiModeAccessor (&ConstantRateWifiManager::m_dataMode), | 38 MakeWifiModeAccessor (&ConstantRateWifiManager::m_dataMode), |
39 MakeWifiModeChecker ()) | 39 MakeWifiModeChecker ()) |
40 .AddAttribute ("ControlMode", "The transmission mode to use for every contro
l packet transmission.", | 40 .AddAttribute ("ControlMode", "The transmission mode to use for every contro
l packet transmission.", |
41 StringValue ("wifia-6mbs"), | 41 StringValue ("OfdmRate6Mbps"), |
42 MakeWifiModeAccessor (&ConstantRateWifiManager::m_ctlMode), | 42 MakeWifiModeAccessor (&ConstantRateWifiManager::m_ctlMode), |
43 MakeWifiModeChecker ()) | 43 MakeWifiModeChecker ()) |
44 ; | 44 ; |
45 return tid; | 45 return tid; |
46 } | 46 } |
47 | 47 |
48 ConstantRateWifiManager::ConstantRateWifiManager () | 48 ConstantRateWifiManager::ConstantRateWifiManager () |
49 {} | 49 {} |
50 ConstantRateWifiManager::~ConstantRateWifiManager () | 50 ConstantRateWifiManager::~ConstantRateWifiManager () |
51 {} | 51 {} |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 return m_ctlMode; | 97 return m_ctlMode; |
98 } | 98 } |
99 | 99 |
100 bool· | 100 bool· |
101 ConstantRateWifiManager::IsLowLatency (void) const | 101 ConstantRateWifiManager::IsLowLatency (void) const |
102 { | 102 { |
103 return true; | 103 return true; |
104 } | 104 } |
105 | 105 |
106 } // namespace ns3 | 106 } // namespace ns3 |
OLD | NEW |