author | Nicola Baldo <nbaldo@cttc.es> |
Fri, 06 May 2011 18:34:24 +0200 | |
changeset 7139 | 79dd02ed46ec |
parent 6852 | 8f1a53d3f6ca |
child 7141 | 072fb225b714 |
permissions | -rw-r--r-- |
2166
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
2 |
/* |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
3 |
* Copyright (c) 2007 INRIA |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
4 |
* |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
8 |
* |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
13 |
* |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
17 |
* |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
18 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
19 |
*/ |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
20 |
#ifndef WIFI_PHY_STANDARD_H |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
21 |
#define WIFI_PHY_STANDARD_H |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
22 |
|
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
23 |
namespace ns3 { |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
24 |
|
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
6852
diff
changeset
|
25 |
|
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
6852
diff
changeset
|
26 |
/** |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
6852
diff
changeset
|
27 |
* \ingroup wifi |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
6852
diff
changeset
|
28 |
* Identifies the PHY specification that a Wifi device is configured to use. |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
6852
diff
changeset
|
29 |
*/ |
2166
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
30 |
enum WifiPhyStandard { |
6643
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
31 |
/** OFDM PHY for the 5 GHz band (Clause 17) */ |
2166
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
32 |
WIFI_PHY_STANDARD_80211a, |
6643
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
33 |
/** DSSS PHY (Clause 15) and HR/DSSS PHY (Clause 18) */ |
4470 | 34 |
WIFI_PHY_STANDARD_80211b, |
6643
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
35 |
/** ERP-OFDM PHY (Clause 19, Section 19.5) */ |
6597
7fbc895f7361
Bug 852: Support ERP-OFDM rates and thus '802.11g'
Dean Armstrong <deanarm@gmail.com>
parents:
5747
diff
changeset
|
36 |
WIFI_PHY_STANDARD_80211g, |
6643
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
37 |
/** OFDM PHY for the 5 GHz band (Clause 17 with 10 MHz channel bandwidth) */ |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4470
diff
changeset
|
38 |
WIFI_PHY_STANDARD_80211_10Mhz, |
6643
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
39 |
/** OFDM PHY for the 5 GHz band (Clause 17 with 5 MHz channel bandwidth) */ |
4680
a52c39181dd4
Support for 5 and 10Mhz wifi channels
Ramon Bauza <monbauza@gmail.com>
parents:
4470
diff
changeset
|
40 |
WIFI_PHY_STANDARD_80211_5Mhz, |
6643
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
41 |
/** This is intended to be the configuration used in this paper: |
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
42 |
* Gavin Holland, Nitin Vaidya and Paramvir Bahl, "A Rate-Adaptive |
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
43 |
* MAC Protocol for Multi-Hop Wireless Networks", in Proc. of |
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
44 |
* ACM MOBICOM, 2001. |
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
45 |
*/ |
4713
3fdb8f60a863
bug 654: avoid segfault with ConfigStore loading
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4680
diff
changeset
|
46 |
WIFI_PHY_STANDARD_holland, |
6643
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
47 |
/** deprecated, see <A HREF="http://www.nsnam.org/bugzilla/show_bug.cgi?id=945">bug 945</A> */ |
5747
a171e73c4dae
add support for 802.11p PHY and MAC parameters
Michael Nowatkowski <nowatkom@gmail.com>
parents:
4713
diff
changeset
|
48 |
WIFI_PHY_STANDARD_80211p_CCH, |
6643
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
49 |
/** deprecated, see <A HREF="http://www.nsnam.org/bugzilla/show_bug.cgi?id=945">bug 945</A> */ |
be1bb4b0431b
documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents:
6597
diff
changeset
|
50 |
WIFI_PHY_STANDARD_80211p_SCH |
2166
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
51 |
}; |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
52 |
|
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
53 |
} // namespace ns3 |
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
54 |
|
00b5eb43dba2
Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff
changeset
|
55 |
#endif /* WIFI_PHY_STANDARD_H */ |