src/wifi/model/wifi-phy-standard.h
author Ghada Badawy <gbadawy@gmail.com>
Tue, 13 Aug 2013 22:05:25 -0700
changeset 10139 17a71cd49da3
parent 9871 90c92578f680
child 10204 7a102bb70a36
permissions -rw-r--r--
partial 802.11n support
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7385
10beb0e53130 standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents: 7141
diff changeset
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2166
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
7141
072fb225b714 run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents: 7139
diff changeset
     6
 * it under the terms of the GNU General Public License version 2 as
2166
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
 */
7141
072fb225b714 run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents: 7139
diff changeset
    30
enum WifiPhyStandard
072fb225b714 run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents: 7139
diff changeset
    31
{
6643
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    32
  /** 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
    33
  WIFI_PHY_STANDARD_80211a,
6643
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    34
  /** DSSS PHY (Clause 15) and HR/DSSS PHY (Clause 18) */
4470
51b5c1a272d3 802.11b PHY support
Gary Pei <guangyu.pei@boeing.com>
parents: 2166
diff changeset
    35
  WIFI_PHY_STANDARD_80211b,
6643
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    36
  /** 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
    37
  WIFI_PHY_STANDARD_80211g,
6643
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    38
  /** OFDM PHY for the 5 GHz band (Clause 17 with 10 MHz channel bandwidth) */
7482
35c01487f7f7 _Mhz --> _MHZ in WIFI_PHY_STANDARD enums
Nicola Baldo <nbaldo@cttc.es>
parents: 7385
diff changeset
    39
  WIFI_PHY_STANDARD_80211_10MHZ,
6643
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    40
  /** OFDM PHY for the 5 GHz band (Clause 17 with 5 MHz channel bandwidth) */
7482
35c01487f7f7 _Mhz --> _MHZ in WIFI_PHY_STANDARD enums
Nicola Baldo <nbaldo@cttc.es>
parents: 7385
diff changeset
    41
  WIFI_PHY_STANDARD_80211_5MHZ,
6643
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    42
  /** This is intended to be the configuration used in this paper:
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    43
   *  Gavin Holland, Nitin Vaidya and Paramvir Bahl, "A Rate-Adaptive
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    44
   *  MAC Protocol for Multi-Hop Wireless Networks", in Proc. of
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    45
   *  ACM MOBICOM, 2001.
be1bb4b0431b documented enum WifiPhyStandard
Nicola Baldo <nbaldo@cttc.es>
parents: 6597
diff changeset
    46
   */
4713
3fdb8f60a863 bug 654: avoid segfault with ConfigStore loading
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4680
diff changeset
    47
  WIFI_PHY_STANDARD_holland,
9871
90c92578f680 [Doxygen] use \deprecated
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 7482
diff changeset
    48
  /** \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
    49
  WIFI_PHY_STANDARD_80211p_CCH,
9871
90c92578f680 [Doxygen] use \deprecated
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents: 7482
diff changeset
    50
  /** \deprecated see <A HREF="http://www.nsnam.org/bugzilla/show_bug.cgi?id=945">bug 945</A> */
10139
17a71cd49da3 partial 802.11n support
Ghada Badawy <gbadawy@gmail.com>
parents: 9871
diff changeset
    51
  WIFI_PHY_STANDARD_80211p_SCH,
17a71cd49da3 partial 802.11n support
Ghada Badawy <gbadawy@gmail.com>
parents: 9871
diff changeset
    52
  // 11n support
17a71cd49da3 partial 802.11n support
Ghada Badawy <gbadawy@gmail.com>
parents: 9871
diff changeset
    53
  WIFI_PHY_STANDARD_80211n_2_4GHZ,
17a71cd49da3 partial 802.11n support
Ghada Badawy <gbadawy@gmail.com>
parents: 9871
diff changeset
    54
  // needed for different mac parameters
17a71cd49da3 partial 802.11n support
Ghada Badawy <gbadawy@gmail.com>
parents: 9871
diff changeset
    55
  WIFI_PHY_STANDARD_80211n_5GHZ
2166
00b5eb43dba2 Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff changeset
    56
};
00b5eb43dba2 Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff changeset
    57
00b5eb43dba2 Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff changeset
    58
} // namespace ns3
00b5eb43dba2 Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff changeset
    59
00b5eb43dba2 Improve the accuracy of 802.11a tx duration calculations.
Federico Maguolo <federico.maguolo@dei.unipd.it>
parents:
diff changeset
    60
#endif /* WIFI_PHY_STANDARD_H */