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