author | S. Deronne <sebastien.deronne@umons.ac.be> |
Wed, 13 Nov 2013 16:49:02 -0500 | |
changeset 10402 | b4e0285d2f22 |
parent 10139 | 17a71cd49da3 |
child 10410 | 4d4eb8097fa3 |
permissions | -rw-r--r-- |
7385
10beb0e53130
standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents:
7334
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
1889 | 2 |
/* |
3 |
* Copyright (c) 2005,2006 INRIA |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or modify |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
1889 | 7 |
* published by the Free Software Foundation; |
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
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 |
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 |
* |
|
18 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
|
19 |
*/ |
|
20 |
||
21 |
#include "wifi-phy.h" |
|
1891
add6fb8761f3
use WifiMode rather than TransmissionMode
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1890
diff
changeset
|
22 |
#include "wifi-mode.h" |
add6fb8761f3
use WifiMode rather than TransmissionMode
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1890
diff
changeset
|
23 |
#include "wifi-channel.h" |
1920
1d4864775cf8
replace header mode with preamble mode
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1919
diff
changeset
|
24 |
#include "wifi-preamble.h" |
1889 | 25 |
#include "ns3/simulator.h" |
26 |
#include "ns3/packet.h" |
|
1974
0d6b3bead74a
replace cassert by ns3/assert.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
27 |
#include "ns3/assert.h" |
1979
d535a38b7fc4
convert TRACE to NS_LOG
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1978
diff
changeset
|
28 |
#include "ns3/log.h" |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
29 |
#include "ns3/double.h" |
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
30 |
#include "ns3/uinteger.h" |
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
31 |
#include "ns3/enum.h" |
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
32 |
#include "ns3/trace-source-accessor.h" |
9063
32755d0516f4
Bug 1237 - code cleanups related to includes
Vedran Miletić <rivanvx@gmail.com>
parents:
8981
diff
changeset
|
33 |
#include <cmath> |
1889 | 34 |
|
1979
d535a38b7fc4
convert TRACE to NS_LOG
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1978
diff
changeset
|
35 |
NS_LOG_COMPONENT_DEFINE ("WifiPhy"); |
1891
add6fb8761f3
use WifiMode rather than TransmissionMode
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1890
diff
changeset
|
36 |
|
1889 | 37 |
namespace ns3 { |
38 |
||
39 |
/**************************************************************** |
|
40 |
* This destructor is needed. |
|
41 |
****************************************************************/ |
|
42 |
||
1890
a2b30c6456c9
Phy80211 -> WifiPhy
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1889
diff
changeset
|
43 |
WifiPhyListener::~WifiPhyListener () |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
44 |
{ |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
45 |
} |
1889 | 46 |
|
47 |
/**************************************************************** |
|
1890
a2b30c6456c9
Phy80211 -> WifiPhy
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1889
diff
changeset
|
48 |
* The actual WifiPhy class |
1889 | 49 |
****************************************************************/ |
50 |
||
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
51 |
NS_OBJECT_ENSURE_REGISTERED (WifiPhy); |
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
52 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
53 |
TypeId |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
54 |
WifiPhy::GetTypeId (void) |
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
55 |
{ |
2602
d9262bff6df2
add back support for introspected doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2530
diff
changeset
|
56 |
static TypeId tid = TypeId ("ns3::WifiPhy") |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
57 |
.SetParent<Object> () |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
58 |
.AddTraceSource ("PhyTxBegin", |
4263
fec2f830d015
trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents:
4040
diff
changeset
|
59 |
"Trace source indicating a packet has begun transmitting over the channel medium", |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
60 |
MakeTraceSourceAccessor (&WifiPhy::m_phyTxBeginTrace)) |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
61 |
.AddTraceSource ("PhyTxEnd", |
6217
8f7571fea7cf
Bug 805 - WifiPhy PhyTxEnd trace not working
Nicola Baldo <nbaldo@cttc.es>
parents:
5901
diff
changeset
|
62 |
"Trace source indicating a packet has been completely transmitted over the channel. NOTE: the only official WifiPhy implementation available to this date (YansWifiPhy) never fires this trace source.", |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
63 |
MakeTraceSourceAccessor (&WifiPhy::m_phyTxEndTrace)) |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
64 |
.AddTraceSource ("PhyTxDrop", |
4263
fec2f830d015
trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents:
4040
diff
changeset
|
65 |
"Trace source indicating a packet has been dropped by the device during transmission", |
fec2f830d015
trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents:
4040
diff
changeset
|
66 |
MakeTraceSourceAccessor (&WifiPhy::m_phyTxDropTrace)) |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
67 |
.AddTraceSource ("PhyRxBegin", |
4263
fec2f830d015
trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents:
4040
diff
changeset
|
68 |
"Trace source indicating a packet has begun being received from the channel medium by the device", |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
69 |
MakeTraceSourceAccessor (&WifiPhy::m_phyRxBeginTrace)) |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
70 |
.AddTraceSource ("PhyRxEnd", |
4263
fec2f830d015
trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents:
4040
diff
changeset
|
71 |
"Trace source indicating a packet has been completely received from the channel medium by the device", |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
72 |
MakeTraceSourceAccessor (&WifiPhy::m_phyRxEndTrace)) |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
73 |
.AddTraceSource ("PhyRxDrop", |
4263
fec2f830d015
trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents:
4040
diff
changeset
|
74 |
"Trace source indicating a packet has been dropped by the device during reception", |
fec2f830d015
trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents:
4040
diff
changeset
|
75 |
MakeTraceSourceAccessor (&WifiPhy::m_phyRxDropTrace)) |
7334
21b6b53ba0d5
[Bug 827] Rename promisc trace to monitor in WifiPhy
Ruben Merz <ruben@net.t-labs.tu-berlin.de>
parents:
7143
diff
changeset
|
76 |
.AddTraceSource ("MonitorSnifferRx", |
4492
3ebeb7bf3c15
added support for radiotap and prism headers
Nicola Baldo <nbaldo@cttc.es>
parents:
4470
diff
changeset
|
77 |
"Trace source simulating a wifi device in monitor mode sniffing all received frames", |
7334
21b6b53ba0d5
[Bug 827] Rename promisc trace to monitor in WifiPhy
Ruben Merz <ruben@net.t-labs.tu-berlin.de>
parents:
7143
diff
changeset
|
78 |
MakeTraceSourceAccessor (&WifiPhy::m_phyMonitorSniffRxTrace)) |
21b6b53ba0d5
[Bug 827] Rename promisc trace to monitor in WifiPhy
Ruben Merz <ruben@net.t-labs.tu-berlin.de>
parents:
7143
diff
changeset
|
79 |
.AddTraceSource ("MonitorSnifferTx", |
4492
3ebeb7bf3c15
added support for radiotap and prism headers
Nicola Baldo <nbaldo@cttc.es>
parents:
4470
diff
changeset
|
80 |
"Trace source simulating the capability of a wifi device in monitor mode to sniff all frames being transmitted", |
7334
21b6b53ba0d5
[Bug 827] Rename promisc trace to monitor in WifiPhy
Ruben Merz <ruben@net.t-labs.tu-berlin.de>
parents:
7143
diff
changeset
|
81 |
MakeTraceSourceAccessor (&WifiPhy::m_phyMonitorSniffTxTrace)) |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
82 |
; |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
83 |
return tid; |
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
84 |
} |
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
85 |
|
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
86 |
WifiPhy::WifiPhy () |
2985
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2782
diff
changeset
|
87 |
{ |
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2782
diff
changeset
|
88 |
NS_LOG_FUNCTION (this); |
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2782
diff
changeset
|
89 |
} |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
90 |
|
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2503
diff
changeset
|
91 |
WifiPhy::~WifiPhy () |
2985
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2782
diff
changeset
|
92 |
{ |
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2782
diff
changeset
|
93 |
NS_LOG_FUNCTION (this); |
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2782
diff
changeset
|
94 |
} |
2530
05f9cec44621
avoid memory leaks
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2524
diff
changeset
|
95 |
|
10139 | 96 |
//Added by Ghada to support 11n |
97 |
||
98 |
//return the L-SIG |
|
99 |
WifiMode |
|
100 |
WifiPhy::GetMFPlcpHeaderMode (WifiMode payloadMode, WifiPreamble preamble) |
|
101 |
{ |
|
102 |
switch (payloadMode.GetBandwidth ()) |
|
103 |
{ |
|
104 |
case 20000000: |
|
105 |
return WifiPhy::GetOfdmRate6_5MbpsBW20MHz (); |
|
106 |
case 40000000: |
|
107 |
return WifiPhy::GetOfdmRate13_5MbpsBW40MHz (); |
|
108 |
default: |
|
109 |
return WifiPhy::GetOfdmRate6_5MbpsBW20MHz (); |
|
110 |
} |
|
111 |
} |
|
112 |
uint32_t |
|
113 |
WifiPhy::GetPlcpHtTrainingSymbolDurationMicroSeconds (WifiMode payloadMode, WifiPreamble preamble, WifiTxVector txvector) |
|
114 |
{ |
|
115 |
switch (preamble) |
|
116 |
{ |
|
117 |
case WIFI_PREAMBLE_HT_MF: |
|
118 |
return 4+ (4* txvector.GetNss()); |
|
119 |
case WIFI_PREAMBLE_HT_GF: |
|
120 |
return (4*txvector.GetNss())+(4*txvector.GetNess()); |
|
121 |
default: |
|
122 |
// no training for non HT |
|
123 |
return 0; |
|
124 |
} |
|
125 |
} |
|
126 |
||
127 |
//return L-SIG |
|
128 |
uint32_t |
|
129 |
WifiPhy::GetPlcpHtSigHeaderDurationMicroSeconds (WifiMode payloadMode, WifiPreamble preamble) |
|
130 |
{ |
|
131 |
switch (preamble) |
|
132 |
{ |
|
133 |
case WIFI_PREAMBLE_HT_MF: |
|
134 |
// HT-SIG |
|
135 |
return 8; |
|
136 |
case WIFI_PREAMBLE_HT_GF: |
|
137 |
//HT-SIG |
|
138 |
return 8; |
|
139 |
default: |
|
140 |
// no HT-SIG for non HT |
|
141 |
return 0; |
|
142 |
} |
|
143 |
||
144 |
} |
|
145 |
//end added by Ghada |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
146 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
147 |
WifiMode |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
148 |
WifiPhy::GetPlcpHeaderMode (WifiMode payloadMode, WifiPreamble preamble) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
149 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
150 |
switch (payloadMode.GetModulationClass ()) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
151 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
152 |
case WIFI_MOD_CLASS_OFDM: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
153 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
154 |
switch (payloadMode.GetBandwidth ()) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
155 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
156 |
case 5000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
157 |
return WifiPhy::GetOfdmRate1_5MbpsBW5MHz (); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
158 |
case 10000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
159 |
return WifiPhy::GetOfdmRate3MbpsBW10MHz (); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
160 |
default: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
161 |
// IEEE Std 802.11-2007, 17.3.2 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
162 |
// actually this is only the first part of the PlcpHeader, |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
163 |
// because the last 16 bits of the PlcpHeader are using the |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
164 |
// same mode of the payload |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
165 |
return WifiPhy::GetOfdmRate6Mbps (); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
166 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
167 |
} |
10139 | 168 |
//Added by Ghada to support 11n |
169 |
case WIFI_MOD_CLASS_HT: |
|
170 |
{ //return the HT-SIG |
|
171 |
// IEEE Std 802.11n, 20.3.23 |
|
172 |
switch (preamble) |
|
173 |
{ |
|
174 |
case WIFI_PREAMBLE_HT_MF: |
|
175 |
switch (payloadMode.GetBandwidth ()) |
|
176 |
{ |
|
177 |
case 20000000: |
|
178 |
return WifiPhy::GetOfdmRate13MbpsBW20MHz (); |
|
179 |
case 40000000: |
|
180 |
return WifiPhy::GetOfdmRate27MbpsBW40MHz (); |
|
181 |
default: |
|
182 |
return WifiPhy::GetOfdmRate13MbpsBW20MHz (); |
|
183 |
} |
|
184 |
case WIFI_PREAMBLE_HT_GF: |
|
185 |
switch (payloadMode.GetBandwidth ()) |
|
186 |
{ |
|
187 |
case 20000000: |
|
188 |
return WifiPhy::GetOfdmRate13MbpsBW20MHz (); |
|
189 |
case 40000000: |
|
190 |
return WifiPhy::GetOfdmRate27MbpsBW40MHz (); |
|
191 |
default: |
|
192 |
return WifiPhy::GetOfdmRate13MbpsBW20MHz (); |
|
193 |
} |
|
194 |
default: |
|
195 |
return WifiPhy::GetOfdmRate6Mbps (); |
|
196 |
} |
|
197 |
} |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
198 |
case WIFI_MOD_CLASS_ERP_OFDM: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
199 |
return WifiPhy::GetErpOfdmRate6Mbps (); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
200 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
201 |
case WIFI_MOD_CLASS_DSSS: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
202 |
if (preamble == WIFI_PREAMBLE_LONG) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
203 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
204 |
// IEEE Std 802.11-2007, sections 15.2.3 and 18.2.2.1 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
205 |
return WifiPhy::GetDsssRate1Mbps (); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
206 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
207 |
else // WIFI_PREAMBLE_SHORT |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
208 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
209 |
// IEEE Std 802.11-2007, section 18.2.2.2 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
210 |
return WifiPhy::GetDsssRate2Mbps (); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
211 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
212 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
213 |
default: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
214 |
NS_FATAL_ERROR ("unsupported modulation class"); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
215 |
return WifiMode (); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
216 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
217 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
218 |
|
10139 | 219 |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
220 |
uint32_t |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
221 |
WifiPhy::GetPlcpHeaderDurationMicroSeconds (WifiMode payloadMode, WifiPreamble preamble) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
222 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
223 |
switch (payloadMode.GetModulationClass ()) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
224 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
225 |
case WIFI_MOD_CLASS_OFDM: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
226 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
227 |
switch (payloadMode.GetBandwidth ()) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
228 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
229 |
case 20000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
230 |
default: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
231 |
// IEEE Std 802.11-2007, section 17.3.3 and figure 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
232 |
// also section 17.3.2.3, table 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
233 |
// We return the duration of the SIGNAL field only, since the |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
234 |
// SERVICE field (which strictly speaking belongs to the PLCP |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
235 |
// header, see section 17.3.2 and figure 17-1) is sent using the |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
236 |
// payload mode. |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
237 |
return 4; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
238 |
case 10000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
239 |
// IEEE Std 802.11-2007, section 17.3.2.3, table 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
240 |
return 8; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
241 |
case 5000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
242 |
// IEEE Std 802.11-2007, section 17.3.2.3, table 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
243 |
return 16; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
244 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
245 |
} |
10139 | 246 |
//Added by Ghada to support 11n |
247 |
case WIFI_MOD_CLASS_HT: |
|
248 |
{ //IEEE 802.11n Figure 20.1 |
|
249 |
switch (preamble) |
|
250 |
{ |
|
251 |
case WIFI_PREAMBLE_HT_MF: |
|
252 |
// L-SIG |
|
253 |
return 4; |
|
254 |
case WIFI_PREAMBLE_HT_GF: |
|
255 |
//L-SIG |
|
256 |
return 0; |
|
257 |
default: |
|
258 |
// L-SIG |
|
259 |
return 4; |
|
260 |
} |
|
261 |
} |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
262 |
case WIFI_MOD_CLASS_ERP_OFDM: |
10402
b4e0285d2f22
Bug 1799 - Wrong ERP-OFDM PLCP preamble and header values
S. Deronne <sebastien.deronne@umons.ac.be>
parents:
10139
diff
changeset
|
263 |
return 4; |
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
264 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
265 |
case WIFI_MOD_CLASS_DSSS: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
266 |
if (preamble == WIFI_PREAMBLE_SHORT) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
267 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
268 |
// IEEE Std 802.11-2007, section 18.2.2.2 and figure 18-2 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
269 |
return 24; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
270 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
271 |
else // WIFI_PREAMBLE_LONG |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
272 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
273 |
// IEEE Std 802.11-2007, sections 18.2.2.1 and figure 18-1 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
274 |
return 48; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
275 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
276 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
277 |
default: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
278 |
NS_FATAL_ERROR ("unsupported modulation class"); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
279 |
return 0; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
280 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
281 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
282 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
283 |
uint32_t |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
284 |
WifiPhy::GetPlcpPreambleDurationMicroSeconds (WifiMode payloadMode, WifiPreamble preamble) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
285 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
286 |
switch (payloadMode.GetModulationClass ()) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
287 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
288 |
case WIFI_MOD_CLASS_OFDM: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
289 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
290 |
switch (payloadMode.GetBandwidth ()) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
291 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
292 |
case 20000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
293 |
default: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
294 |
// IEEE Std 802.11-2007, section 17.3.3, figure 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
295 |
// also section 17.3.2.3, table 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
296 |
return 16; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
297 |
case 10000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
298 |
// IEEE Std 802.11-2007, section 17.3.3, table 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
299 |
// also section 17.3.2.3, table 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
300 |
return 32; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
301 |
case 5000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
302 |
// IEEE Std 802.11-2007, section 17.3.3 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
303 |
// also section 17.3.2.3, table 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
304 |
return 64; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
305 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
306 |
} |
10139 | 307 |
case WIFI_MOD_CLASS_HT: |
308 |
{ //IEEE 802.11n Figure 20.1 the training symbols before L_SIG or HT_SIG |
|
309 |
return 16; |
|
310 |
} |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
311 |
case WIFI_MOD_CLASS_ERP_OFDM: |
10402
b4e0285d2f22
Bug 1799 - Wrong ERP-OFDM PLCP preamble and header values
S. Deronne <sebastien.deronne@umons.ac.be>
parents:
10139
diff
changeset
|
312 |
return 16; |
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
313 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
314 |
case WIFI_MOD_CLASS_DSSS: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
315 |
if (preamble == WIFI_PREAMBLE_SHORT) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
316 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
317 |
// IEEE Std 802.11-2007, section 18.2.2.2 and figure 18-2 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
318 |
return 72; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
319 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
320 |
else // WIFI_PREAMBLE_LONG |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
321 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
322 |
// IEEE Std 802.11-2007, sections 18.2.2.1 and figure 18-1 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
323 |
return 144; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
324 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
325 |
default: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
326 |
NS_FATAL_ERROR ("unsupported modulation class"); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
327 |
return 0; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
328 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
329 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
330 |
|
10139 | 331 |
double |
332 |
WifiPhy::GetPayloadDurationMicroSeconds (uint32_t size, WifiTxVector txvector) |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
333 |
{ |
10139 | 334 |
WifiMode payloadMode=txvector.GetMode(); |
335 |
||
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
336 |
NS_LOG_FUNCTION (size << payloadMode); |
10139 | 337 |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
338 |
switch (payloadMode.GetModulationClass ()) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
339 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
340 |
case WIFI_MOD_CLASS_OFDM: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
341 |
case WIFI_MOD_CLASS_ERP_OFDM: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
342 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
343 |
// IEEE Std 802.11-2007, section 17.3.2.3, table 17-4 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
344 |
// corresponds to T_{SYM} in the table |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
345 |
uint32_t symbolDurationUs; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
346 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
347 |
switch (payloadMode.GetBandwidth ()) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
348 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
349 |
case 20000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
350 |
default: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
351 |
symbolDurationUs = 4; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
352 |
break; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
353 |
case 10000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
354 |
symbolDurationUs = 8; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
355 |
break; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
356 |
case 5000000: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
357 |
symbolDurationUs = 16; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
358 |
break; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
359 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
360 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
361 |
// IEEE Std 802.11-2007, section 17.3.2.2, table 17-3 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
362 |
// corresponds to N_{DBPS} in the table |
10139 | 363 |
double numDataBitsPerSymbol = payloadMode.GetDataRate () * symbolDurationUs / 1e6; |
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
364 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
365 |
// IEEE Std 802.11-2007, section 17.3.5.3, equation (17-11) |
10139 | 366 |
uint32_t numSymbols = lrint (ceil ((16 + size * 8.0 + 6.0) / numDataBitsPerSymbol)); |
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
367 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
368 |
// Add signal extension for ERP PHY |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
369 |
if (payloadMode.GetModulationClass () == WIFI_MOD_CLASS_ERP_OFDM) |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
370 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
371 |
return numSymbols * symbolDurationUs + 6; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
372 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
373 |
else |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
374 |
{ |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
375 |
return numSymbols * symbolDurationUs; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
376 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
377 |
} |
10139 | 378 |
case WIFI_MOD_CLASS_HT: |
379 |
{ |
|
380 |
double symbolDurationUs; |
|
381 |
double m_Stbc; |
|
382 |
//if short GI data rate is used then symbol duration is 3.6us else symbol duration is 4us |
|
383 |
//In the future has to create a stationmanager that only uses these data rates if sender and reciever support GI |
|
384 |
if (payloadMode.GetUniqueName() == "OfdmRate135MbpsBW40MHzShGi" || payloadMode.GetUniqueName() == "OfdmRate65MbpsBW20MHzShGi" ) |
|
385 |
{ |
|
386 |
symbolDurationUs=3.6; |
|
387 |
} |
|
388 |
else |
|
389 |
{ |
|
390 |
switch (payloadMode.GetDataRate ()/ (txvector.GetNss())) |
|
391 |
{ //shortGi |
|
392 |
case 7200000: |
|
393 |
case 14400000: |
|
394 |
case 21700000: |
|
395 |
case 28900000: |
|
396 |
case 43300000: |
|
397 |
case 57800000: |
|
398 |
case 72200000: |
|
399 |
case 15000000: |
|
400 |
case 30000000: |
|
401 |
case 45000000: |
|
402 |
case 60000000: |
|
403 |
case 90000000: |
|
404 |
case 120000000: |
|
405 |
case 150000000: |
|
406 |
symbolDurationUs=3.6; |
|
407 |
break; |
|
408 |
default: |
|
409 |
symbolDurationUs=4; |
|
410 |
} |
|
411 |
} |
|
412 |
if (txvector.IsStbc()) |
|
413 |
m_Stbc=2; |
|
414 |
else |
|
415 |
m_Stbc=1; |
|
416 |
double numDataBitsPerSymbol = payloadMode.GetDataRate () *txvector.GetNss() * symbolDurationUs / 1e6; |
|
417 |
//check tables 20-35 and 20-36 in the standard to get cases when nes =2 |
|
418 |
double Nes=1; |
|
419 |
// IEEE Std 802.11n, section 20.3.11, equation (20-32) |
|
420 |
uint32_t numSymbols = lrint (m_Stbc*ceil ((16 + size * 8.0 + 6.0*Nes) / (m_Stbc* numDataBitsPerSymbol))); |
|
421 |
||
422 |
return numSymbols * symbolDurationUs; |
|
423 |
||
424 |
} |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
425 |
case WIFI_MOD_CLASS_DSSS: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
426 |
// IEEE Std 802.11-2007, section 18.2.3.5 |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
427 |
NS_LOG_LOGIC (" size=" << size |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
428 |
<< " mode=" << payloadMode |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
429 |
<< " rate=" << payloadMode.GetDataRate () ); |
10139 | 430 |
return lrint (ceil ((size * 8.0) / (payloadMode.GetDataRate () / 1.0e6))); |
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
431 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
432 |
default: |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
433 |
NS_FATAL_ERROR ("unsupported modulation class"); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
434 |
return 0; |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
435 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
436 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
437 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
438 |
Time |
10139 | 439 |
WifiPhy::CalculateTxDuration (uint32_t size, WifiTxVector txvector, WifiPreamble preamble) |
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
440 |
{ |
10139 | 441 |
WifiMode payloadMode=txvector.GetMode(); |
442 |
double duration = GetPlcpPreambleDurationMicroSeconds (payloadMode, preamble) |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
443 |
+ GetPlcpHeaderDurationMicroSeconds (payloadMode, preamble) |
10139 | 444 |
+ GetPlcpHtSigHeaderDurationMicroSeconds (payloadMode, preamble) |
445 |
+ GetPlcpHtTrainingSymbolDurationMicroSeconds (payloadMode, preamble,txvector) |
|
446 |
+ GetPayloadDurationMicroSeconds (size, txvector); |
|
7143
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
447 |
return MicroSeconds (duration); |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
448 |
} |
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
449 |
|
0146b1916bc0
wifi tx duration calculations moved from InterferenceHelper to WifiPhy
Nicola Baldo <nicola@baldo.biz>
parents:
7141
diff
changeset
|
450 |
|
10139 | 451 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
452 |
void |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
453 |
WifiPhy::NotifyTxBegin (Ptr<const Packet> packet) |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
454 |
{ |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
455 |
m_phyTxBeginTrace (packet); |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
456 |
} |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
457 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
458 |
void |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
459 |
WifiPhy::NotifyTxEnd (Ptr<const Packet> packet) |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
460 |
{ |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
461 |
m_phyTxEndTrace (packet); |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
462 |
} |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
463 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
464 |
void |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
465 |
WifiPhy::NotifyTxDrop (Ptr<const Packet> packet) |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
466 |
{ |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
467 |
m_phyTxDropTrace (packet); |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
468 |
} |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
469 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
470 |
void |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
471 |
WifiPhy::NotifyRxBegin (Ptr<const Packet> packet) |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
472 |
{ |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
473 |
m_phyRxBeginTrace (packet); |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
474 |
} |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
475 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
476 |
void |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
477 |
WifiPhy::NotifyRxEnd (Ptr<const Packet> packet) |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
478 |
{ |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
479 |
m_phyRxEndTrace (packet); |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
480 |
} |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
481 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
482 |
void |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
483 |
WifiPhy::NotifyRxDrop (Ptr<const Packet> packet) |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
484 |
{ |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
485 |
m_phyRxDropTrace (packet); |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
486 |
} |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
487 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
488 |
void |
7334
21b6b53ba0d5
[Bug 827] Rename promisc trace to monitor in WifiPhy
Ruben Merz <ruben@net.t-labs.tu-berlin.de>
parents:
7143
diff
changeset
|
489 |
WifiPhy::NotifyMonitorSniffRx (Ptr<const Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, double signalDbm, double noiseDbm) |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
490 |
{ |
7334
21b6b53ba0d5
[Bug 827] Rename promisc trace to monitor in WifiPhy
Ruben Merz <ruben@net.t-labs.tu-berlin.de>
parents:
7143
diff
changeset
|
491 |
m_phyMonitorSniffRxTrace (packet, channelFreqMhz, channelNumber, rate, isShortPreamble, signalDbm, noiseDbm); |
4492
3ebeb7bf3c15
added support for radiotap and prism headers
Nicola Baldo <nbaldo@cttc.es>
parents:
4470
diff
changeset
|
492 |
} |
3ebeb7bf3c15
added support for radiotap and prism headers
Nicola Baldo <nbaldo@cttc.es>
parents:
4470
diff
changeset
|
493 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
494 |
void |
10139 | 495 |
WifiPhy::NotifyMonitorSniffTx (Ptr<const Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, uint8_t txPower) |
4492
3ebeb7bf3c15
added support for radiotap and prism headers
Nicola Baldo <nbaldo@cttc.es>
parents:
4470
diff
changeset
|
496 |
{ |
10139 | 497 |
m_phyMonitorSniffTxTrace (packet, channelFreqMhz, channelNumber, rate, isShortPreamble, txPower); |
4264
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
498 |
} |
9d2e96c4e6e4
Piles of changes for tracing rework
Craig Dowell <craigdo@ee.washington.edu>
parents:
4263
diff
changeset
|
499 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
500 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
501 |
/** |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
502 |
* Clause 15 rates (DSSS) |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
503 |
*/ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
504 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
505 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
506 |
WifiPhy::GetDsssRate1Mbps () |
4470 | 507 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
508 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
509 |
WifiModeFactory::CreateWifiMode ("DsssRate1Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
510 |
WIFI_MOD_CLASS_DSSS, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
511 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
512 |
22000000, 1000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
513 |
WIFI_CODE_RATE_UNDEFINED, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
514 |
2); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
515 |
return mode; |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
516 |
} |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
517 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
518 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
519 |
WifiPhy::GetDsssRate2Mbps () |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
520 |
{ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
521 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
522 |
WifiModeFactory::CreateWifiMode ("DsssRate2Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
523 |
WIFI_MOD_CLASS_DSSS, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
524 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
525 |
22000000, 2000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
526 |
WIFI_CODE_RATE_UNDEFINED, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
527 |
4); |
4470 | 528 |
return mode; |
529 |
} |
|
530 |
||
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
531 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
532 |
/** |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
533 |
* Clause 18 rates (HR/DSSS) |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
534 |
*/ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
535 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
536 |
WifiPhy::GetDsssRate5_5Mbps () |
4470 | 537 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
538 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
539 |
WifiModeFactory::CreateWifiMode ("DsssRate5_5Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
540 |
WIFI_MOD_CLASS_DSSS, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
541 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
542 |
22000000, 5500000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
543 |
WIFI_CODE_RATE_UNDEFINED, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
544 |
4); |
4470 | 545 |
return mode; |
546 |
} |
|
547 |
||
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
548 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
549 |
WifiPhy::GetDsssRate11Mbps () |
4470 | 550 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
551 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
552 |
WifiModeFactory::CreateWifiMode ("DsssRate11Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
553 |
WIFI_MOD_CLASS_DSSS, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
554 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
555 |
22000000, 11000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
556 |
WIFI_CODE_RATE_UNDEFINED, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
557 |
4); |
4470 | 558 |
return mode; |
559 |
} |
|
560 |
||
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
561 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
562 |
/** |
6597
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
563 |
* Clause 19.5 rates (ERP-OFDM) |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
564 |
*/ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
565 |
WifiMode |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
566 |
WifiPhy::GetErpOfdmRate6Mbps () |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
567 |
{ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
568 |
static WifiMode mode = |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
569 |
WifiModeFactory::CreateWifiMode ("ErpOfdmRate6Mbps", |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
570 |
WIFI_MOD_CLASS_ERP_OFDM, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
571 |
true, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
572 |
20000000, 6000000, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
573 |
WIFI_CODE_RATE_1_2, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
574 |
2); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
575 |
return mode; |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
576 |
} |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
577 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
578 |
WifiMode |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
579 |
WifiPhy::GetErpOfdmRate9Mbps () |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
580 |
{ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
581 |
static WifiMode mode = |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
582 |
WifiModeFactory::CreateWifiMode ("ErpOfdmRate9Mbps", |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
583 |
WIFI_MOD_CLASS_ERP_OFDM, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
584 |
false, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
585 |
20000000, 9000000, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
586 |
WIFI_CODE_RATE_3_4, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
587 |
2); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
588 |
return mode; |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
589 |
} |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
590 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
591 |
WifiMode |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
592 |
WifiPhy::GetErpOfdmRate12Mbps () |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
593 |
{ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
594 |
static WifiMode mode = |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
595 |
WifiModeFactory::CreateWifiMode ("ErpOfdmRate12Mbps", |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
596 |
WIFI_MOD_CLASS_ERP_OFDM, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
597 |
true, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
598 |
20000000, 12000000, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
599 |
WIFI_CODE_RATE_1_2, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
600 |
4); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
601 |
return mode; |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
602 |
} |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
603 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
604 |
WifiMode |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
605 |
WifiPhy::GetErpOfdmRate18Mbps () |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
606 |
{ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
607 |
static WifiMode mode = |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
608 |
WifiModeFactory::CreateWifiMode ("ErpOfdmRate18Mbps", |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
609 |
WIFI_MOD_CLASS_ERP_OFDM, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
610 |
false, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
611 |
20000000, 18000000, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
612 |
WIFI_CODE_RATE_3_4, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
613 |
4); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
614 |
return mode; |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
615 |
} |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
616 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
617 |
WifiMode |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
618 |
WifiPhy::GetErpOfdmRate24Mbps () |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
619 |
{ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
620 |
static WifiMode mode = |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
621 |
WifiModeFactory::CreateWifiMode ("ErpOfdmRate24Mbps", |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
622 |
WIFI_MOD_CLASS_ERP_OFDM, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
623 |
true, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
624 |
20000000, 24000000, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
625 |
WIFI_CODE_RATE_1_2, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
626 |
16); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
627 |
return mode; |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
628 |
} |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
629 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
630 |
WifiMode |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
631 |
WifiPhy::GetErpOfdmRate36Mbps () |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
632 |
{ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
633 |
static WifiMode mode = |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
634 |
WifiModeFactory::CreateWifiMode ("ErpOfdmRate36Mbps", |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
635 |
WIFI_MOD_CLASS_ERP_OFDM, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
636 |
false, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
637 |
20000000, 36000000, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
638 |
WIFI_CODE_RATE_3_4, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
639 |
16); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
640 |
return mode; |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
641 |
} |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
642 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
643 |
WifiMode |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
644 |
WifiPhy::GetErpOfdmRate48Mbps () |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
645 |
{ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
646 |
static WifiMode mode = |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
647 |
WifiModeFactory::CreateWifiMode ("ErpOfdmRate48Mbps", |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
648 |
WIFI_MOD_CLASS_ERP_OFDM, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
649 |
false, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
650 |
20000000, 48000000, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
651 |
WIFI_CODE_RATE_2_3, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
652 |
64); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
653 |
return mode; |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
654 |
} |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
655 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
656 |
WifiMode |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
657 |
WifiPhy::GetErpOfdmRate54Mbps () |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
658 |
{ |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
659 |
static WifiMode mode = |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
660 |
WifiModeFactory::CreateWifiMode ("ErpOfdmRate54Mbps", |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
661 |
WIFI_MOD_CLASS_ERP_OFDM, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
662 |
false, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
663 |
20000000, 54000000, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
664 |
WIFI_CODE_RATE_3_4, |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
665 |
64); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
666 |
return mode; |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
667 |
} |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
668 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
669 |
|
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
670 |
/** |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
671 |
* Clause 17 rates (OFDM) |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
672 |
*/ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
673 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
674 |
WifiPhy::GetOfdmRate6Mbps () |
4470 | 675 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
676 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
677 |
WifiModeFactory::CreateWifiMode ("OfdmRate6Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
678 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
679 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
680 |
20000000, 6000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
681 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
682 |
2); |
4470 | 683 |
return mode; |
684 |
} |
|
685 |
||
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
686 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
687 |
WifiPhy::GetOfdmRate9Mbps () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
688 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
689 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
690 |
WifiModeFactory::CreateWifiMode ("OfdmRate9Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
691 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
692 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
693 |
20000000, 9000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
694 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
695 |
2); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
696 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
697 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
698 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
699 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
700 |
WifiPhy::GetOfdmRate12Mbps () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
701 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
702 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
703 |
WifiModeFactory::CreateWifiMode ("OfdmRate12Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
704 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
705 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
706 |
20000000, 12000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
707 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
708 |
4); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
709 |
return mode; |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
710 |
} |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
711 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
712 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
713 |
WifiPhy::GetOfdmRate18Mbps () |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
714 |
{ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
715 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
716 |
WifiModeFactory::CreateWifiMode ("OfdmRate18Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
717 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
718 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
719 |
20000000, 18000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
720 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
721 |
4); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
722 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
723 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
724 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
725 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
726 |
WifiPhy::GetOfdmRate24Mbps () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
727 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
728 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
729 |
WifiModeFactory::CreateWifiMode ("OfdmRate24Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
730 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
731 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
732 |
20000000, 24000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
733 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
734 |
16); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
735 |
return mode; |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
736 |
} |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
737 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
738 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
739 |
WifiPhy::GetOfdmRate36Mbps () |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
740 |
{ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
741 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
742 |
WifiModeFactory::CreateWifiMode ("OfdmRate36Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
743 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
744 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
745 |
20000000, 36000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
746 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
747 |
16); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
748 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
749 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
750 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
751 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
752 |
WifiPhy::GetOfdmRate48Mbps () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
753 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
754 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
755 |
WifiModeFactory::CreateWifiMode ("OfdmRate48Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
756 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
757 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
758 |
20000000, 48000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
759 |
WIFI_CODE_RATE_2_3, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
760 |
64); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
761 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
762 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
763 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
764 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
765 |
WifiPhy::GetOfdmRate54Mbps () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
766 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
767 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
768 |
WifiModeFactory::CreateWifiMode ("OfdmRate54Mbps", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
769 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
770 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
771 |
20000000, 54000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
772 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
773 |
64); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
774 |
return mode; |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
775 |
} |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
776 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
777 |
/* 10 MHz channel rates */ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
778 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
779 |
WifiPhy::GetOfdmRate3MbpsBW10MHz () |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
780 |
{ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
781 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
782 |
WifiModeFactory::CreateWifiMode ("OfdmRate3MbpsBW10MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
783 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
784 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
785 |
10000000, 3000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
786 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
787 |
2); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
788 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
789 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
790 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
791 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
792 |
WifiPhy::GetOfdmRate4_5MbpsBW10MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
793 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
794 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
795 |
WifiModeFactory::CreateWifiMode ("OfdmRate4_5MbpsBW10MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
796 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
797 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
798 |
10000000, 4500000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
799 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
800 |
2); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
801 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
802 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
803 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
804 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
805 |
WifiPhy::GetOfdmRate6MbpsBW10MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
806 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
807 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
808 |
WifiModeFactory::CreateWifiMode ("OfdmRate6MbpsBW10MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
809 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
810 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
811 |
10000000, 6000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
812 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
813 |
4); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
814 |
return mode; |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
815 |
} |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
816 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
817 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
818 |
WifiPhy::GetOfdmRate9MbpsBW10MHz () |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
819 |
{ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
820 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
821 |
WifiModeFactory::CreateWifiMode ("OfdmRate9MbpsBW10MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
822 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
823 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
824 |
10000000, 9000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
825 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
826 |
4); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
827 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
828 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
829 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
830 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
831 |
WifiPhy::GetOfdmRate12MbpsBW10MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
832 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
833 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
834 |
WifiModeFactory::CreateWifiMode ("OfdmRate12MbpsBW10MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
835 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
836 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
837 |
10000000, 12000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
838 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
839 |
16); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
840 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
841 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
842 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
843 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
844 |
WifiPhy::GetOfdmRate18MbpsBW10MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
845 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
846 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
847 |
WifiModeFactory::CreateWifiMode ("OfdmRate18MbpsBW10MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
848 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
849 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
850 |
10000000, 18000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
851 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
852 |
16); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
853 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
854 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
855 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
856 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
857 |
WifiPhy::GetOfdmRate24MbpsBW10MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
858 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
859 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
860 |
WifiModeFactory::CreateWifiMode ("OfdmRate24MbpsBW10MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
861 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
862 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
863 |
10000000, 24000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
864 |
WIFI_CODE_RATE_2_3, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
865 |
64); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
866 |
return mode; |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
867 |
} |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
868 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
869 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
870 |
WifiPhy::GetOfdmRate27MbpsBW10MHz () |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
871 |
{ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
872 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
873 |
WifiModeFactory::CreateWifiMode ("OfdmRate27MbpsBW10MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
874 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
875 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
876 |
10000000, 27000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
877 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
878 |
64); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
879 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
880 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
881 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
882 |
/* 5 MHz channel rates */ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
883 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
884 |
WifiPhy::GetOfdmRate1_5MbpsBW5MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
885 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
886 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
887 |
WifiModeFactory::CreateWifiMode ("OfdmRate1_5MbpsBW5MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
888 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
889 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
890 |
5000000, 1500000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
891 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
892 |
2); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
893 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
894 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
895 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
896 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
897 |
WifiPhy::GetOfdmRate2_25MbpsBW5MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
898 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
899 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
900 |
WifiModeFactory::CreateWifiMode ("OfdmRate2_25MbpsBW5MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
901 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
902 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
903 |
5000000, 2250000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
904 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
905 |
2); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
906 |
return mode; |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
907 |
} |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
908 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
909 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
910 |
WifiPhy::GetOfdmRate3MbpsBW5MHz () |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
911 |
{ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
912 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
913 |
WifiModeFactory::CreateWifiMode ("OfdmRate3MbpsBW5MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
914 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
915 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
916 |
5000000, 3000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
917 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
918 |
4); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
919 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
920 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
921 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
922 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
923 |
WifiPhy::GetOfdmRate4_5MbpsBW5MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
924 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
925 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
926 |
WifiModeFactory::CreateWifiMode ("OfdmRate4_5MbpsBW5MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
927 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
928 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
929 |
5000000, 4500000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
930 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
931 |
4); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
932 |
return mode; |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
933 |
} |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
934 |
|
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
935 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
936 |
WifiPhy::GetOfdmRate6MbpsBW5MHz () |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
937 |
{ |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
938 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
939 |
WifiModeFactory::CreateWifiMode ("OfdmRate6MbpsBW5MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
940 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
941 |
true, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
942 |
5000000, 6000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
943 |
WIFI_CODE_RATE_1_2, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
944 |
16); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
945 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
946 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
947 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
948 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
949 |
WifiPhy::GetOfdmRate9MbpsBW5MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
950 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
951 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
952 |
WifiModeFactory::CreateWifiMode ("OfdmRate9MbpsBW5MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
953 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
954 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
955 |
5000000, 9000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
956 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
957 |
16); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
958 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
959 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
960 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
961 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
962 |
WifiPhy::GetOfdmRate12MbpsBW5MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
963 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
964 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
965 |
WifiModeFactory::CreateWifiMode ("OfdmRate12MbpsBW5MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
966 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
967 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
968 |
5000000, 12000000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
969 |
WIFI_CODE_RATE_2_3, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
970 |
64); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
971 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
972 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
973 |
|
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
974 |
WifiMode |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
975 |
WifiPhy::GetOfdmRate13_5MbpsBW5MHz () |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
976 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
977 |
static WifiMode mode = |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
978 |
WifiModeFactory::CreateWifiMode ("OfdmRate13_5MbpsBW5MHz", |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
979 |
WIFI_MOD_CLASS_OFDM, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
980 |
false, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
981 |
5000000, 13500000, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
982 |
WIFI_CODE_RATE_3_4, |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
983 |
64); |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
984 |
return mode; |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
985 |
} |
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4492
diff
changeset
|
986 |
|
10139 | 987 |
/*Clause 20*/ |
988 |
||
989 |
WifiMode |
|
990 |
WifiPhy::GetOfdmRate6_5MbpsBW20MHz () |
|
991 |
{ |
|
992 |
static WifiMode mode = |
|
993 |
WifiModeFactory::CreateWifiMode ("OfdmRate6_5MbpsBW20MHz", |
|
994 |
WIFI_MOD_CLASS_HT, |
|
995 |
true, |
|
996 |
20000000, 6500000, |
|
997 |
WIFI_CODE_RATE_1_2, |
|
998 |
2); |
|
999 |
return mode; |
|
1000 |
} |
|
1001 |
WifiMode |
|
1002 |
WifiPhy::GetOfdmRate7_2MbpsBW20MHz () |
|
1003 |
{ |
|
1004 |
static WifiMode mode = |
|
1005 |
WifiModeFactory::CreateWifiMode ("OfdmRate7_2MbpsBW20MHz", |
|
1006 |
WIFI_MOD_CLASS_HT, |
|
1007 |
false, |
|
1008 |
20000000, 7200000, |
|
1009 |
WIFI_CODE_RATE_1_2, |
|
1010 |
2); |
|
1011 |
return mode; |
|
1012 |
} |
|
1013 |
||
1014 |
WifiMode |
|
1015 |
WifiPhy::GetOfdmRate13MbpsBW20MHz () |
|
1016 |
{ |
|
1017 |
static WifiMode mode = |
|
1018 |
WifiModeFactory::CreateWifiMode ("OfdmRate13MbpsBW20MHz", |
|
1019 |
WIFI_MOD_CLASS_HT, |
|
1020 |
true, |
|
1021 |
20000000, 13000000, |
|
1022 |
WIFI_CODE_RATE_1_2, |
|
1023 |
4); |
|
1024 |
return mode; |
|
1025 |
} |
|
1026 |
||
1027 |
WifiMode |
|
1028 |
WifiPhy::GetOfdmRate14_4MbpsBW20MHz () |
|
1029 |
{ |
|
1030 |
static WifiMode mode = |
|
1031 |
WifiModeFactory::CreateWifiMode ("OfdmRate14_4MbpsBW20MHz", |
|
1032 |
WIFI_MOD_CLASS_HT, |
|
1033 |
false, |
|
1034 |
20000000, 14400000, |
|
1035 |
WIFI_CODE_RATE_1_2, |
|
1036 |
4); |
|
1037 |
return mode; |
|
1038 |
} |
|
1039 |
WifiMode |
|
1040 |
WifiPhy::GetOfdmRate19_5MbpsBW20MHz () |
|
1041 |
{ |
|
1042 |
static WifiMode mode = |
|
1043 |
WifiModeFactory::CreateWifiMode ("OfdmRate19_5MbpsBW20MHz", |
|
1044 |
WIFI_MOD_CLASS_HT, |
|
1045 |
true, |
|
1046 |
20000000, 19500000, |
|
1047 |
WIFI_CODE_RATE_3_4, |
|
1048 |
4); |
|
1049 |
return mode; |
|
1050 |
} |
|
1051 |
||
1052 |
WifiMode |
|
1053 |
WifiPhy::GetOfdmRate21_7MbpsBW20MHz () |
|
1054 |
{ |
|
1055 |
static WifiMode mode = |
|
1056 |
WifiModeFactory::CreateWifiMode ("OfdmRate21_7MbpsBW20MHz", |
|
1057 |
WIFI_MOD_CLASS_HT, |
|
1058 |
false, |
|
1059 |
20000000, 21700000, |
|
1060 |
WIFI_CODE_RATE_3_4, |
|
1061 |
4); |
|
1062 |
return mode; |
|
1063 |
} |
|
1064 |
||
1065 |
||
1066 |
WifiMode |
|
1067 |
WifiPhy::GetOfdmRate26MbpsBW20MHz () |
|
1068 |
{ |
|
1069 |
static WifiMode mode = |
|
1070 |
WifiModeFactory::CreateWifiMode ("OfdmRate26MbpsBW20MHz", |
|
1071 |
WIFI_MOD_CLASS_HT, |
|
1072 |
true, |
|
1073 |
20000000, 26000000, |
|
1074 |
WIFI_CODE_RATE_1_2, |
|
1075 |
16); |
|
1076 |
return mode; |
|
1077 |
} |
|
1078 |
||
1079 |
WifiMode |
|
1080 |
WifiPhy::GetOfdmRate28_9MbpsBW20MHz () |
|
1081 |
{ |
|
1082 |
static WifiMode mode = |
|
1083 |
WifiModeFactory::CreateWifiMode ("OfdmRate28_9MbpsBW20MHz", |
|
1084 |
WIFI_MOD_CLASS_HT, |
|
1085 |
false, |
|
1086 |
20000000, 28900000, |
|
1087 |
WIFI_CODE_RATE_1_2, |
|
1088 |
16); |
|
1089 |
return mode; |
|
1090 |
} |
|
1091 |
||
1092 |
WifiMode |
|
1093 |
WifiPhy::GetOfdmRate39MbpsBW20MHz () |
|
1094 |
{ |
|
1095 |
static WifiMode mode = |
|
1096 |
WifiModeFactory::CreateWifiMode ("OfdmRate39MbpsBW20MHz", |
|
1097 |
WIFI_MOD_CLASS_HT, |
|
1098 |
true, |
|
1099 |
20000000, 39000000, |
|
1100 |
WIFI_CODE_RATE_3_4, |
|
1101 |
16); |
|
1102 |
return mode; |
|
1103 |
} |
|
1104 |
||
1105 |
WifiMode |
|
1106 |
WifiPhy::GetOfdmRate43_3MbpsBW20MHz () |
|
1107 |
{ |
|
1108 |
static WifiMode mode = |
|
1109 |
WifiModeFactory::CreateWifiMode ("OfdmRate43_3MbpsBW20MHz", |
|
1110 |
WIFI_MOD_CLASS_HT, |
|
1111 |
false, |
|
1112 |
20000000, 43300000, |
|
1113 |
WIFI_CODE_RATE_3_4, |
|
1114 |
16); |
|
1115 |
return mode; |
|
1116 |
} |
|
1117 |
||
1118 |
WifiMode |
|
1119 |
WifiPhy::GetOfdmRate52MbpsBW20MHz () |
|
1120 |
{ |
|
1121 |
static WifiMode mode = |
|
1122 |
WifiModeFactory::CreateWifiMode ("OfdmRate52MbpsBW20MHz", |
|
1123 |
WIFI_MOD_CLASS_HT, |
|
1124 |
true, |
|
1125 |
20000000, 52000000, |
|
1126 |
WIFI_CODE_RATE_2_3, |
|
1127 |
64); |
|
1128 |
return mode; |
|
1129 |
} |
|
1130 |
||
1131 |
WifiMode |
|
1132 |
WifiPhy::GetOfdmRate57_8MbpsBW20MHz () |
|
1133 |
{ |
|
1134 |
static WifiMode mode = |
|
1135 |
WifiModeFactory::CreateWifiMode ("OfdmRate57_8MbpsBW20MHz", |
|
1136 |
WIFI_MOD_CLASS_HT, |
|
1137 |
false, |
|
1138 |
20000000, 57800000, |
|
1139 |
WIFI_CODE_RATE_2_3, |
|
1140 |
64); |
|
1141 |
return mode; |
|
1142 |
} |
|
1143 |
||
1144 |
||
1145 |
WifiMode |
|
1146 |
WifiPhy::GetOfdmRate58_5MbpsBW20MHz () |
|
1147 |
{ |
|
1148 |
static WifiMode mode = |
|
1149 |
WifiModeFactory::CreateWifiMode ("OfdmRate58_5MbpsBW20MHz", |
|
1150 |
WIFI_MOD_CLASS_HT, |
|
1151 |
true, |
|
1152 |
20000000, 58500000, |
|
1153 |
WIFI_CODE_RATE_3_4, |
|
1154 |
64); |
|
1155 |
return mode; |
|
1156 |
} |
|
1157 |
||
1158 |
WifiMode |
|
1159 |
WifiPhy::GetOfdmRate65MbpsBW20MHzShGi () |
|
1160 |
{ |
|
1161 |
static WifiMode mode = |
|
1162 |
WifiModeFactory::CreateWifiMode ("OfdmRate65MbpsBW20MHzShGi", |
|
1163 |
WIFI_MOD_CLASS_HT, |
|
1164 |
false, |
|
1165 |
20000000, 65000000, |
|
1166 |
WIFI_CODE_RATE_3_4, |
|
1167 |
64); |
|
1168 |
return mode; |
|
1169 |
} |
|
1170 |
||
1171 |
WifiMode |
|
1172 |
WifiPhy::GetOfdmRate65MbpsBW20MHz () |
|
1173 |
{ |
|
1174 |
static WifiMode mode = |
|
1175 |
WifiModeFactory::CreateWifiMode ("OfdmRate65MbpsBW20MHz", |
|
1176 |
WIFI_MOD_CLASS_HT, |
|
1177 |
true, |
|
1178 |
20000000, 65000000, |
|
1179 |
WIFI_CODE_RATE_5_6, |
|
1180 |
64); |
|
1181 |
return mode; |
|
1182 |
} |
|
1183 |
||
1184 |
WifiMode |
|
1185 |
WifiPhy::GetOfdmRate72_2MbpsBW20MHz () |
|
1186 |
{ |
|
1187 |
static WifiMode mode = |
|
1188 |
WifiModeFactory::CreateWifiMode ("OfdmRate72_2MbpsBW20MHz", |
|
1189 |
WIFI_MOD_CLASS_HT, |
|
1190 |
false, |
|
1191 |
20000000, 72200000, |
|
1192 |
WIFI_CODE_RATE_5_6, |
|
1193 |
64); |
|
1194 |
return mode; |
|
1195 |
} |
|
1196 |
||
1197 |
WifiMode |
|
1198 |
WifiPhy::GetOfdmRate13_5MbpsBW40MHz () |
|
1199 |
{ |
|
1200 |
static WifiMode mode = |
|
1201 |
WifiModeFactory::CreateWifiMode ("OfdmRate13_5MbpsBW40MHz", |
|
1202 |
WIFI_MOD_CLASS_HT, |
|
1203 |
false, |
|
1204 |
40000000, 13500000, |
|
1205 |
WIFI_CODE_RATE_1_2, |
|
1206 |
2); |
|
1207 |
return mode; |
|
1208 |
} |
|
1209 |
||
1210 |
WifiMode |
|
1211 |
WifiPhy::GetOfdmRate15MbpsBW40MHz () |
|
1212 |
{ |
|
1213 |
static WifiMode mode = |
|
1214 |
WifiModeFactory::CreateWifiMode ("OfdmRate15MbpsBW40MHz", |
|
1215 |
WIFI_MOD_CLASS_HT, |
|
1216 |
false, |
|
1217 |
40000000, 15000000, |
|
1218 |
WIFI_CODE_RATE_1_2, |
|
1219 |
2); |
|
1220 |
return mode; |
|
1221 |
} |
|
1222 |
||
1223 |
WifiMode |
|
1224 |
WifiPhy::GetOfdmRate27MbpsBW40MHz () |
|
1225 |
{ |
|
1226 |
static WifiMode mode = |
|
1227 |
WifiModeFactory::CreateWifiMode ("OfdmRate27MbpsBW40MHz", |
|
1228 |
WIFI_MOD_CLASS_HT, |
|
1229 |
false, |
|
1230 |
40000000, 27000000, |
|
1231 |
WIFI_CODE_RATE_1_2, |
|
1232 |
4); |
|
1233 |
return mode; |
|
1234 |
} |
|
1235 |
WifiMode |
|
1236 |
WifiPhy::GetOfdmRate30MbpsBW40MHz () |
|
1237 |
{ |
|
1238 |
static WifiMode mode = |
|
1239 |
WifiModeFactory::CreateWifiMode ("OfdmRate30MbpsBW40MHz", |
|
1240 |
WIFI_MOD_CLASS_HT, |
|
1241 |
false, |
|
1242 |
40000000, 30000000, |
|
1243 |
WIFI_CODE_RATE_1_2, |
|
1244 |
4); |
|
1245 |
return mode; |
|
1246 |
} |
|
1247 |
||
1248 |
WifiMode |
|
1249 |
WifiPhy::GetOfdmRate40_5MbpsBW40MHz () |
|
1250 |
{ |
|
1251 |
static WifiMode mode = |
|
1252 |
WifiModeFactory::CreateWifiMode ("OfdmRate40_5MbpsBW40MHz", |
|
1253 |
WIFI_MOD_CLASS_HT, |
|
1254 |
false, |
|
1255 |
40000000, 40500000, |
|
1256 |
WIFI_CODE_RATE_3_4, |
|
1257 |
4); |
|
1258 |
return mode; |
|
1259 |
} |
|
1260 |
WifiMode |
|
1261 |
WifiPhy::GetOfdmRate45MbpsBW40MHz () |
|
1262 |
{ |
|
1263 |
static WifiMode mode = |
|
1264 |
WifiModeFactory::CreateWifiMode ("OfdmRate45MbpsBW40MHz", |
|
1265 |
WIFI_MOD_CLASS_HT, |
|
1266 |
false, |
|
1267 |
40000000, 45000000, |
|
1268 |
WIFI_CODE_RATE_3_4, |
|
1269 |
4); |
|
1270 |
return mode; |
|
1271 |
} |
|
1272 |
||
1273 |
WifiMode |
|
1274 |
WifiPhy::GetOfdmRate54MbpsBW40MHz () |
|
1275 |
{ |
|
1276 |
static WifiMode mode = |
|
1277 |
WifiModeFactory::CreateWifiMode ("OfdmRate54MbpsBW40MHz", |
|
1278 |
WIFI_MOD_CLASS_HT, |
|
1279 |
false, |
|
1280 |
40000000, 54000000, |
|
1281 |
WIFI_CODE_RATE_1_2, |
|
1282 |
16); |
|
1283 |
return mode; |
|
1284 |
} |
|
1285 |
||
1286 |
WifiMode |
|
1287 |
WifiPhy::GetOfdmRate60MbpsBW40MHz () |
|
1288 |
{ |
|
1289 |
static WifiMode mode = |
|
1290 |
WifiModeFactory::CreateWifiMode ("OfdmRate60MbpsBW40MHz", |
|
1291 |
WIFI_MOD_CLASS_HT, |
|
1292 |
false, |
|
1293 |
40000000, 60000000, |
|
1294 |
WIFI_CODE_RATE_1_2, |
|
1295 |
16); |
|
1296 |
return mode; |
|
1297 |
} |
|
1298 |
||
1299 |
WifiMode |
|
1300 |
WifiPhy::GetOfdmRate81MbpsBW40MHz () |
|
1301 |
{ |
|
1302 |
static WifiMode mode = |
|
1303 |
WifiModeFactory::CreateWifiMode ("OfdmRate81MbpsBW40MHz", |
|
1304 |
WIFI_MOD_CLASS_HT, |
|
1305 |
false, |
|
1306 |
40000000, 81000000, |
|
1307 |
WIFI_CODE_RATE_3_4, |
|
1308 |
16); |
|
1309 |
return mode; |
|
1310 |
} |
|
1311 |
WifiMode |
|
1312 |
WifiPhy::GetOfdmRate90MbpsBW40MHz () |
|
1313 |
{ |
|
1314 |
static WifiMode mode = |
|
1315 |
WifiModeFactory::CreateWifiMode ("OfdmRate90MbpsBW40MHz", |
|
1316 |
WIFI_MOD_CLASS_HT, |
|
1317 |
false, |
|
1318 |
40000000, 90000000, |
|
1319 |
WIFI_CODE_RATE_3_4, |
|
1320 |
16); |
|
1321 |
return mode; |
|
1322 |
} |
|
1323 |
||
1324 |
WifiMode |
|
1325 |
WifiPhy::GetOfdmRate108MbpsBW40MHz () |
|
1326 |
{ |
|
1327 |
static WifiMode mode = |
|
1328 |
WifiModeFactory::CreateWifiMode ("OfdmRate108MbpsBW40MHz", |
|
1329 |
WIFI_MOD_CLASS_HT, |
|
1330 |
false, |
|
1331 |
40000000, 108000000, |
|
1332 |
WIFI_CODE_RATE_2_3, |
|
1333 |
64); |
|
1334 |
return mode; |
|
1335 |
} |
|
1336 |
WifiMode |
|
1337 |
WifiPhy::GetOfdmRate120MbpsBW40MHz () |
|
1338 |
{ |
|
1339 |
static WifiMode mode = |
|
1340 |
WifiModeFactory::CreateWifiMode ("OfdmRate120MbpsBW40MHz", |
|
1341 |
WIFI_MOD_CLASS_HT, |
|
1342 |
false, |
|
1343 |
40000000, 120000000, |
|
1344 |
WIFI_CODE_RATE_2_3, |
|
1345 |
64); |
|
1346 |
return mode; |
|
1347 |
} |
|
1348 |
WifiMode |
|
1349 |
WifiPhy::GetOfdmRate121_5MbpsBW40MHz () |
|
1350 |
{ |
|
1351 |
static WifiMode mode = |
|
1352 |
WifiModeFactory::CreateWifiMode ("OfdmRate121_5MbpsBW40MHz", |
|
1353 |
WIFI_MOD_CLASS_HT, |
|
1354 |
false, |
|
1355 |
40000000, 121500000, |
|
1356 |
WIFI_CODE_RATE_3_4, |
|
1357 |
64); |
|
1358 |
return mode; |
|
1359 |
} |
|
1360 |
WifiMode |
|
1361 |
WifiPhy::GetOfdmRate135MbpsBW40MHzShGi () |
|
1362 |
{ |
|
1363 |
static WifiMode mode = |
|
1364 |
WifiModeFactory::CreateWifiMode ("OfdmRate135MbpsBW40MHzShGi", |
|
1365 |
WIFI_MOD_CLASS_HT, |
|
1366 |
false, |
|
1367 |
40000000, 135000000, |
|
1368 |
WIFI_CODE_RATE_3_4, |
|
1369 |
64); |
|
1370 |
return mode; |
|
1371 |
} |
|
1372 |
WifiMode |
|
1373 |
WifiPhy::GetOfdmRate135MbpsBW40MHz () |
|
1374 |
{ |
|
1375 |
static WifiMode mode = |
|
1376 |
WifiModeFactory::CreateWifiMode ("OfdmRate135MbpsBW40MHz", |
|
1377 |
WIFI_MOD_CLASS_HT, |
|
1378 |
false, |
|
1379 |
40000000, 135000000, |
|
1380 |
WIFI_CODE_RATE_5_6, |
|
1381 |
64); |
|
1382 |
return mode; |
|
1383 |
} |
|
1384 |
||
1385 |
WifiMode |
|
1386 |
WifiPhy::GetOfdmRate150MbpsBW40MHz () |
|
1387 |
{ |
|
1388 |
static WifiMode mode = |
|
1389 |
WifiModeFactory::CreateWifiMode ("OfdmRate150MbpsBW40MHz", |
|
1390 |
WIFI_MOD_CLASS_HT, |
|
1391 |
false, |
|
1392 |
40000000, 150000000, |
|
1393 |
WIFI_CODE_RATE_5_6, |
|
1394 |
64); |
|
1395 |
return mode; |
|
1396 |
} |
|
1397 |
||
1398 |
||
1399 |
||
5820
1c02054740eb
Renaming WifiPhy state SYNC to RX to avoid confusion with "synchronizing".
Timo Bingmann <tbns@idlebox.net>
parents:
5294
diff
changeset
|
1400 |
std::ostream& operator<< (std::ostream& os, enum WifiPhy::State state) |
1c02054740eb
Renaming WifiPhy state SYNC to RX to avoid confusion with "synchronizing".
Timo Bingmann <tbns@idlebox.net>
parents:
5294
diff
changeset
|
1401 |
{ |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1402 |
switch (state) |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1403 |
{ |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1404 |
case WifiPhy::IDLE: |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1405 |
return (os << "IDLE"); |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1406 |
case WifiPhy::CCA_BUSY: |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1407 |
return (os << "CCA_BUSY"); |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1408 |
case WifiPhy::TX: |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1409 |
return (os << "TX"); |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1410 |
case WifiPhy::RX: |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1411 |
return (os << "RX"); |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1412 |
case WifiPhy::SWITCHING: |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1413 |
return (os << "SWITCHING"); |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1414 |
default: |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1415 |
NS_FATAL_ERROR ("Invalid WifiPhy state"); |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1416 |
return (os << "INVALID"); |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1417 |
} |
5820
1c02054740eb
Renaming WifiPhy state SYNC to RX to avoid confusion with "synchronizing".
Timo Bingmann <tbns@idlebox.net>
parents:
5294
diff
changeset
|
1418 |
} |
4470 | 1419 |
|
10139 | 1420 |
|
1421 |
||
1977
4303409f3d8e
remove uneeded trailing ';'
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1974
diff
changeset
|
1422 |
} // namespace ns3 |
4040
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1423 |
|
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1424 |
namespace { |
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1425 |
|
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1426 |
static class Constructor |
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1427 |
{ |
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1428 |
public: |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1429 |
Constructor () |
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
6852
diff
changeset
|
1430 |
{ |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1431 |
ns3::WifiPhy::GetDsssRate1Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1432 |
ns3::WifiPhy::GetDsssRate2Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1433 |
ns3::WifiPhy::GetDsssRate5_5Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1434 |
ns3::WifiPhy::GetDsssRate11Mbps (); |
6597
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
1435 |
ns3::WifiPhy::GetErpOfdmRate6Mbps (); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
1436 |
ns3::WifiPhy::GetErpOfdmRate9Mbps (); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
1437 |
ns3::WifiPhy::GetErpOfdmRate12Mbps (); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
1438 |
ns3::WifiPhy::GetErpOfdmRate18Mbps (); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
1439 |
ns3::WifiPhy::GetErpOfdmRate24Mbps (); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
1440 |
ns3::WifiPhy::GetErpOfdmRate36Mbps (); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
1441 |
ns3::WifiPhy::GetErpOfdmRate48Mbps (); |
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
6360
diff
changeset
|
1442 |
ns3::WifiPhy::GetErpOfdmRate54Mbps (); |
6360
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1443 |
ns3::WifiPhy::GetOfdmRate6Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1444 |
ns3::WifiPhy::GetOfdmRate9Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1445 |
ns3::WifiPhy::GetOfdmRate12Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1446 |
ns3::WifiPhy::GetOfdmRate18Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1447 |
ns3::WifiPhy::GetOfdmRate24Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1448 |
ns3::WifiPhy::GetOfdmRate36Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1449 |
ns3::WifiPhy::GetOfdmRate48Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1450 |
ns3::WifiPhy::GetOfdmRate54Mbps (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1451 |
ns3::WifiPhy::GetOfdmRate3MbpsBW10MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1452 |
ns3::WifiPhy::GetOfdmRate4_5MbpsBW10MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1453 |
ns3::WifiPhy::GetOfdmRate6MbpsBW10MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1454 |
ns3::WifiPhy::GetOfdmRate9MbpsBW10MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1455 |
ns3::WifiPhy::GetOfdmRate12MbpsBW10MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1456 |
ns3::WifiPhy::GetOfdmRate18MbpsBW10MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1457 |
ns3::WifiPhy::GetOfdmRate24MbpsBW10MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1458 |
ns3::WifiPhy::GetOfdmRate27MbpsBW10MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1459 |
ns3::WifiPhy::GetOfdmRate1_5MbpsBW5MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1460 |
ns3::WifiPhy::GetOfdmRate2_25MbpsBW5MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1461 |
ns3::WifiPhy::GetOfdmRate3MbpsBW5MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1462 |
ns3::WifiPhy::GetOfdmRate4_5MbpsBW5MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1463 |
ns3::WifiPhy::GetOfdmRate6MbpsBW5MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1464 |
ns3::WifiPhy::GetOfdmRate9MbpsBW5MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1465 |
ns3::WifiPhy::GetOfdmRate12MbpsBW5MHz (); |
d8975477ff6a
Bug 871: Rework construction of Wi-Fi rates
Dean Armstrong <deanarm@gmail.com>
parents:
6217
diff
changeset
|
1466 |
ns3::WifiPhy::GetOfdmRate13_5MbpsBW5MHz (); |
10139 | 1467 |
ns3::WifiPhy::GetOfdmRate6_5MbpsBW20MHz (); |
1468 |
ns3::WifiPhy::GetOfdmRate13MbpsBW20MHz (); |
|
1469 |
ns3::WifiPhy::GetOfdmRate19_5MbpsBW20MHz (); |
|
1470 |
ns3::WifiPhy::GetOfdmRate26MbpsBW20MHz (); |
|
1471 |
ns3::WifiPhy::GetOfdmRate39MbpsBW20MHz (); |
|
1472 |
ns3::WifiPhy::GetOfdmRate52MbpsBW20MHz (); |
|
1473 |
ns3::WifiPhy::GetOfdmRate58_5MbpsBW20MHz (); |
|
1474 |
ns3::WifiPhy::GetOfdmRate65MbpsBW20MHz (); |
|
1475 |
ns3::WifiPhy::GetOfdmRate13_5MbpsBW40MHz (); |
|
1476 |
ns3::WifiPhy::GetOfdmRate27MbpsBW40MHz (); |
|
1477 |
ns3::WifiPhy::GetOfdmRate40_5MbpsBW40MHz (); |
|
1478 |
ns3::WifiPhy::GetOfdmRate54MbpsBW40MHz (); |
|
1479 |
ns3::WifiPhy::GetOfdmRate81MbpsBW40MHz (); |
|
1480 |
ns3::WifiPhy::GetOfdmRate108MbpsBW40MHz (); |
|
1481 |
ns3::WifiPhy::GetOfdmRate121_5MbpsBW40MHz (); |
|
1482 |
ns3::WifiPhy::GetOfdmRate135MbpsBW40MHz (); |
|
1483 |
ns3::WifiPhy::GetOfdmRate7_2MbpsBW20MHz (); |
|
1484 |
ns3::WifiPhy::GetOfdmRate14_4MbpsBW20MHz (); |
|
1485 |
ns3::WifiPhy::GetOfdmRate21_7MbpsBW20MHz (); |
|
1486 |
ns3::WifiPhy::GetOfdmRate28_9MbpsBW20MHz (); |
|
1487 |
ns3::WifiPhy::GetOfdmRate43_3MbpsBW20MHz (); |
|
1488 |
ns3::WifiPhy::GetOfdmRate57_8MbpsBW20MHz (); |
|
1489 |
ns3::WifiPhy::GetOfdmRate65MbpsBW20MHzShGi (); |
|
1490 |
ns3::WifiPhy::GetOfdmRate72_2MbpsBW20MHz (); |
|
1491 |
||
4040
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1492 |
} |
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1493 |
} g_constructor; |
df2f5e1ea15b
ensure that all wifi modes are registered
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4039
diff
changeset
|
1494 |
} |