View | Details | Raw Unified | Return to bug 2213
Collapse All | Expand All

(-)a/examples/wireless/ht-wifi-network.cc (-2 / +2 lines)
 Lines 108-115    Link Here 
108
                  return 0;
108
                  return 0;
109
                }
109
                }
110
110
111
              HtWifiMacHelper mac = HtWifiMacHelper::Default ();
111
              QosWifiMacHelper mac = QosWifiMacHelper::Default ();
112
              StringValue DataRate = HtWifiMacHelper::DataRateForMcs (i);
112
              StringValue DataRate = McsHelper::DataRateForHtMcs (i);
113
              wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager","DataMode", DataRate,
113
              wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager","DataMode", DataRate,
114
                                            "ControlMode", DataRate);
114
                                            "ControlMode", DataRate);
115
                
115
                
(-)a/examples/wireless/simple-ht-hidden-stations.cc (-1 / +1 lines)
 Lines 90-96    Link Here 
90
  WifiHelper wifi = WifiHelper::Default ();
90
  WifiHelper wifi = WifiHelper::Default ();
91
  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
91
  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
92
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("HtMcs7"), "ControlMode", StringValue ("HtMcs0"));
92
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("HtMcs7"), "ControlMode", StringValue ("HtMcs0"));
93
  HtWifiMacHelper mac = HtWifiMacHelper::Default ();
93
  QosWifiMacHelper mac = QosWifiMacHelper::Default ();
94
94
95
  Ssid ssid = Ssid ("simple-mpdu-aggregation");
95
  Ssid ssid = Ssid ("simple-mpdu-aggregation");
96
  mac.SetType ("ns3::StaWifiMac",
96
  mac.SetType ("ns3::StaWifiMac",
(-)a/examples/wireless/simple-mpdu-aggregation.cc (-1 / +1 lines)
 Lines 88-94    Link Here 
88
  WifiHelper wifi = WifiHelper::Default ();
88
  WifiHelper wifi = WifiHelper::Default ();
89
  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
89
  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
90
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("HtMcs7"), "ControlMode", StringValue ("HtMcs0"));
90
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("HtMcs7"), "ControlMode", StringValue ("HtMcs0"));
91
  HtWifiMacHelper mac = HtWifiMacHelper::Default ();
91
  QosWifiMacHelper mac = QosWifiMacHelper::Default ();
92
92
93
  Ssid ssid = Ssid ("simple-mpdu-aggregation");
93
  Ssid ssid = Ssid ("simple-mpdu-aggregation");
94
  mac.SetType ("ns3::StaWifiMac",
94
  mac.SetType ("ns3::StaWifiMac",
(-)a/examples/wireless/simple-msdu-aggregation.cc (-1 / +1 lines)
 Lines 88-94    Link Here 
88
  WifiHelper wifi = WifiHelper::Default ();
88
  WifiHelper wifi = WifiHelper::Default ();
89
  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
89
  wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
90
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("HtMcs7"), "ControlMode", StringValue ("HtMcs0"));
90
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("HtMcs7"), "ControlMode", StringValue ("HtMcs0"));
91
  HtWifiMacHelper mac = HtWifiMacHelper::Default ();
91
  QosWifiMacHelper mac = QosWifiMacHelper::Default ();
92
92
93
  Ssid ssid = Ssid ("simple-msdu-aggregation");
93
  Ssid ssid = Ssid ("simple-msdu-aggregation");
94
  mac.SetType ("ns3::StaWifiMac",
94
  mac.SetType ("ns3::StaWifiMac",
(-)a/examples/wireless/simple-two-level-aggregation.cc (-1 / +1 lines)
 Lines 104-110    Link Here 
104
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
104
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
105
                                "DataMode", StringValue ("HtMcs7"),
105
                                "DataMode", StringValue ("HtMcs7"),
106
                                "ControlMode", StringValue ("HtMcs0"));
106
                                "ControlMode", StringValue ("HtMcs0"));
107
  HtWifiMacHelper mac = HtWifiMacHelper::Default ();
107
  QosWifiMacHelper mac = QosWifiMacHelper::Default ();
108
108
109
  Ssid ssid = Ssid ("simple-two-level-aggregation");
109
  Ssid ssid = Ssid ("simple-two-level-aggregation");
110
  mac.SetType ("ns3::StaWifiMac",
110
  mac.SetType ("ns3::StaWifiMac",
(-)a/examples/wireless/vht-wifi-network.cc (-2 / +2 lines)
 Lines 96-104    Link Here 
96
96
97
              WifiHelper wifi = WifiHelper::Default ();
97
              WifiHelper wifi = WifiHelper::Default ();
98
              wifi.SetStandard (WIFI_PHY_STANDARD_80211ac);
98
              wifi.SetStandard (WIFI_PHY_STANDARD_80211ac);
99
              VhtWifiMacHelper mac = VhtWifiMacHelper::Default ();
99
              QosWifiMacHelper mac = QosWifiMacHelper::Default ();
100
                
100
                
101
              StringValue DataRate = VhtWifiMacHelper::DataRateForMcs (i);
101
              StringValue DataRate = McsHelper::DataRateForVhtMcs (i);
102
              wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager","DataMode", DataRate,
102
              wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager","DataMode", DataRate,
103
                                            "ControlMode", DataRate);
103
                                            "ControlMode", DataRate);
104
                
104
                
(-)a/examples/wireless/wifi-timing-attributes.cc (-1 / +1 lines)
 Lines 87-93    Link Here 
87
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
87
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
88
                                "DataMode", StringValue("OfdmRate65MbpsBW20MHz"),
88
                                "DataMode", StringValue("OfdmRate65MbpsBW20MHz"),
89
                                "ControlMode", StringValue("OfdmRate6_5MbpsBW20MHz"));
89
                                "ControlMode", StringValue("OfdmRate6_5MbpsBW20MHz"));
90
  HtWifiMacHelper mac = HtWifiMacHelper::Default ();
90
  QosWifiMacHelper mac = QosWifiMacHelper::Default ();
91
91
92
  //Install PHY and MAC
92
  //Install PHY and MAC
93
  Ssid ssid = Ssid ("ns3-wifi");
93
  Ssid ssid = Ssid ("ns3-wifi");
(-)a/src/test/ns3wifi/wifi-interference-test-suite.cc (-4 / +17 lines)
 Lines 30-35    Link Here 
30
#include "ns3/string.h"
30
#include "ns3/string.h"
31
#include "ns3/uinteger.h"
31
#include "ns3/uinteger.h"
32
#include "ns3/double.h"
32
#include "ns3/double.h"
33
#include "ns3/boolean.h"
33
#include "ns3/data-rate.h"
34
#include "ns3/data-rate.h"
34
#include "ns3/inet-socket-address.h"
35
#include "ns3/inet-socket-address.h"
35
#include "ns3/internet-stack-helper.h"
36
#include "ns3/internet-stack-helper.h"
 Lines 168-181    Link Here 
168
  wifiChannel.AddPropagationLoss ("ns3::LogDistancePropagationLossModel");
169
  wifiChannel.AddPropagationLoss ("ns3::LogDistancePropagationLossModel");
169
  wifiPhy.SetChannel (wifiChannel.Create ());
170
  wifiPhy.SetChannel (wifiChannel.Create ());
170
171
171
  // Add a non-QoS upper mac, and disable rate control
172
  // Add an upper mac, and disable rate control
172
  NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
173
  NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
173
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
174
  wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
174
                                "DataMode",StringValue (phyMode),
175
                                "DataMode",StringValue (phyMode),
175
                                "ControlMode",StringValue (phyMode));
176
                                "ControlMode",StringValue (phyMode));
176
  // Set it to adhoc mode
177
177
  wifiMac.SetType ("ns3::AdhocWifiMac");
178
  // Set it to adhoc mode (and enable QOS for HT/VHT stations)
179
  if (wifiStandard == WIFI_PHY_STANDARD_80211n_2_4GHZ
180
      || wifiStandard == WIFI_PHY_STANDARD_80211n_5GHZ
181
      || wifiStandard == WIFI_PHY_STANDARD_80211ac)
182
    {
183
      wifiMac.SetType ("ns3::AdhocWifiMac",
184
                       "QosSupported", BooleanValue (true));
185
    }
186
  else
187
    {
188
      wifiMac.SetType ("ns3::AdhocWifiMac");
189
    }
178
  NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c.Get (0));
190
  NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c.Get (0));
191
179
  // This will disable these sending devices from detecting a signal 
192
  // This will disable these sending devices from detecting a signal 
180
  // so that they do not backoff
193
  // so that they do not backoff
181
  wifiPhy.Set ("EnergyDetectionThreshold", DoubleValue (0.0) );
194
  wifiPhy.Set ("EnergyDetectionThreshold", DoubleValue (0.0) );
 Lines 274-280    Link Here 
274
  NS_TEST_ASSERT_MSG_EQ (PERDiff1, PERDiff2, 
287
  NS_TEST_ASSERT_MSG_EQ (PERDiff1, PERDiff2, 
275
                         "The PER difference due to 1 microsecond difference in arrival shouldn't depend on absolute arrival");
288
                         "The PER difference due to 1 microsecond difference in arrival shouldn't depend on absolute arrival");
276
  //Now rerun for 11n
289
  //Now rerun for 11n
277
  wifiStandard=WIFI_PHY_STANDARD_80211n_2_4GHZ;
290
  wifiStandard = WIFI_PHY_STANDARD_80211n_2_4GHZ;
278
  // Compute the packet error rate (PER) when delta=0 microseconds.  This
291
  // Compute the packet error rate (PER) when delta=0 microseconds.  This
279
  // means that the interferer arrives at exactly the same time as the
292
  // means that the interferer arrives at exactly the same time as the
280
  // intended packet
293
  // intended packet
(-)a/src/wifi/helper/ht-wifi-mac-helper.cc (-63 lines)
Removed Link Here 
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
 * Copyright (c) 2009 MIRKO BANCHI
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 2 as
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: Ghada Badawy <gbadawy@gmail.com>
19
 */
20
21
#include "ht-wifi-mac-helper.h"
22
#include "ns3/wifi-mac.h"
23
#include "ns3/edca-txop-n.h"
24
#include "ns3/pointer.h"
25
#include "ns3/boolean.h"
26
#include "ns3/uinteger.h"
27
28
namespace ns3 {
29
30
HtWifiMacHelper::HtWifiMacHelper ()
31
{
32
}
33
34
HtWifiMacHelper::~HtWifiMacHelper ()
35
{
36
}
37
38
HtWifiMacHelper
39
HtWifiMacHelper::Default (void)
40
{
41
  HtWifiMacHelper helper;
42
43
  helper.SetType ("ns3::StaWifiMac",
44
                  "QosSupported", BooleanValue (true),
45
                  "HtSupported", BooleanValue (true));
46
47
  return helper;
48
}
49
50
StringValue
51
HtWifiMacHelper::DataRateForMcs (int mcs)
52
{
53
  std::stringstream sstmp;
54
  std::string strtmp, dataRate;
55
56
  sstmp << mcs;
57
  sstmp >> strtmp;
58
  dataRate = "HtMcs" + strtmp;
59
  
60
  return StringValue (dataRate);
61
}
62
63
} //namespace ns3
(-)a/src/wifi/helper/ht-wifi-mac-helper.h (-65 lines)
Removed Link Here 
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
 * Copyright (c) 2009 MIRKO BANCHI
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 2 as
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: Ghada Badawy <gbadawy@gmail.com>
19
 */
20
21
#ifndef HT_WIFI_MAC_HELPER_H
22
#define HT_WIFI_MAC_HELPER_H
23
24
#include "ns3/string.h"
25
#include "wifi-helper.h"
26
#include "ns3/qos-utils.h"
27
#include "qos-wifi-mac-helper.h"
28
#include <map>
29
30
namespace ns3 {
31
32
/**
33
 * \brief create HT-enabled MAC layers for a ns3::WifiNetDevice.
34
 *
35
 * This class can create MACs of type ns3::ApWifiMac, ns3::StaWifiMac,
36
 * and, ns3::AdhocWifiMac, with QosSupported and HTSupported attributes set to True.
37
 */
38
class HtWifiMacHelper : public QosWifiMacHelper
39
{
40
public:
41
  /**
42
   * Create a HtWifiMacHelper that is used to make life easier when working
43
   * with Wifi devices using a QOS MAC layer.
44
   */
45
  HtWifiMacHelper ();
46
47
  /**
48
   * Destroy a HtWifiMacHelper
49
   */
50
  virtual ~HtWifiMacHelper ();
51
52
  /**
53
   * Create a mac helper in a default working state.
54
   */
55
  static HtWifiMacHelper Default (void);
56
57
  /**
58
   * Converts a HT MCS value into a DataRate value
59
   */
60
  static StringValue DataRateForMcs (int mcs);
61
};
62
63
} //namespace ns3
64
65
#endif /* HT_WIFI_MAC_HELPER_H */
(-)4076d7089dcd (+59 lines)
Added Link Here 
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
 * Copyright (c) 2014 SEBASTIEN DERONNE
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 2 as
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: Sébastien Deronne <sebastien.deronne@gmail.com>
19
 */
20
21
#include "mcs-helper.h"
22
23
namespace ns3 {
24
25
McsHelper::McsHelper ()
26
{
27
}
28
29
McsHelper::~McsHelper ()
30
{
31
}
32
33
StringValue
34
McsHelper::DataRateForHtMcs (int mcs)
35
{
36
  std::stringstream sstmp;
37
  std::string strtmp, dataRate;
38
39
  sstmp << mcs;
40
  sstmp >> strtmp;
41
  dataRate = "HtMcs" + strtmp;
42
  
43
  return StringValue (dataRate);
44
}
45
46
StringValue
47
McsHelper::DataRateForVhtMcs (int mcs)
48
{
49
  std::stringstream sstmp;
50
  std::string strtmp, dataRate;
51
52
  sstmp << mcs;
53
  sstmp >> strtmp;
54
  dataRate = "VhtMcs" + strtmp;
55
  
56
  return StringValue (dataRate);
57
}
58
59
} //namespace ns3
(-)4076d7089dcd (+45 lines)
Added Link Here 
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
 * Copyright (c) 2014 SEBASTIEN DERONNE
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 2 as
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: Sébastien Deronne <sebastien.deronne@gmail.com>
19
 */
20
21
#ifndef MCS_HELPER_H
22
#define MCS_HELPER_H
23
24
#include "ns3/string.h"
25
26
namespace ns3 {
27
28
class McsHelper
29
{
30
public:
31
  McsHelper ();
32
  ~McsHelper ();
33
  /**
34
   * Converts a HT MCS value into a DataRate value
35
   */
36
  static StringValue DataRateForHtMcs (int mcs);
37
  /**
38
   * Converts a VHT MCS value into a DataRate value
39
   */
40
  static StringValue DataRateForVhtMcs (int mcs);
41
};
42
43
} //namespace ns3
44
45
#endif /* MCS_HELPER_H */
(-)a/src/wifi/helper/vht-wifi-mac-helper.cc (-70 lines)
Removed Link Here 
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
 * Copyright (c) 2014 SEBASTIEN DERONNE
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 2 as
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: Sébastien Deronne <sebastien.deronne@gmail.com>
19
 */
20
21
#include "vht-wifi-mac-helper.h"
22
#include "ns3/wifi-mac.h"
23
#include "ns3/edca-txop-n.h"
24
#include "ns3/pointer.h"
25
#include "ns3/boolean.h"
26
#include "ns3/uinteger.h"
27
28
namespace ns3 {
29
30
VhtWifiMacHelper::VhtWifiMacHelper ()
31
{
32
}
33
34
VhtWifiMacHelper::~VhtWifiMacHelper ()
35
{
36
}
37
38
VhtWifiMacHelper
39
VhtWifiMacHelper::Default (void)
40
{
41
  VhtWifiMacHelper helper;
42
43
  helper.SetType ("ns3::StaWifiMac",
44
                  "QosSupported", BooleanValue (true),
45
                  "HtSupported", BooleanValue (true), //by default, it also supports HT features
46
                  "VhtSupported", BooleanValue (true));
47
48
  //MPDU aggregation is always supported
49
  helper.SetMpduAggregatorForAc (AC_VO, "ns3::MpduStandardAggregator");
50
  helper.SetMpduAggregatorForAc (AC_VI, "ns3::MpduStandardAggregator");
51
  helper.SetMpduAggregatorForAc (AC_BE, "ns3::MpduStandardAggregator");
52
  helper.SetMpduAggregatorForAc (AC_BK, "ns3::MpduStandardAggregator");
53
54
  return helper;
55
}
56
57
StringValue
58
VhtWifiMacHelper::DataRateForMcs (int mcs)
59
{
60
  std::stringstream sstmp;
61
  std::string strtmp, dataRate;
62
63
  sstmp << mcs;
64
  sstmp >> strtmp;
65
  dataRate = "VhtMcs" + strtmp;
66
  
67
  return StringValue (dataRate);
68
}
69
70
} //namespace ns3
(-)a/src/wifi/helper/vht-wifi-mac-helper.h (-66 lines)
Removed Link Here 
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
 * Copyright (c) 2014 SEBASTIEN DERONNE
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 2 as
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: Sébastien Deronne <sebastien.deronne@gmail.com>
19
 */
20
21
#ifndef VHT_WIFI_MAC_HELPER_H
22
#define VHT_WIFI_MAC_HELPER_H
23
24
#include "ns3/string.h"
25
#include "wifi-helper.h"
26
#include "ns3/qos-utils.h"
27
#include "qos-wifi-mac-helper.h"
28
#include <map>
29
30
namespace ns3 {
31
32
/**
33
 * \brief create VHT-enabled MAC layers for a ns3::WifiNetDevice.
34
 *
35
 * This class can create MACs of type ns3::ApWifiMac, ns3::StaWifiMac,
36
 * and, ns3::AdhocWifiMac, with QosSupported, HTSupported and VHTSupported attributes set to True.
37
 */
38
class VhtWifiMacHelper : public QosWifiMacHelper
39
{
40
public:
41
  /**
42
   * Create a VhtWifiMacHelper that is used to make life easier when working
43
   * with Wifi devices using a QOS MAC layer.
44
   */
45
  VhtWifiMacHelper ();
46
47
  /**
48
   * \internal
49
   * Destroy a VhtWifiMacHelper
50
   */
51
  virtual ~VhtWifiMacHelper ();
52
53
  /**
54
   * Create a mac helper in a default working state.
55
   */
56
  static VhtWifiMacHelper Default (void);
57
58
  /**
59
   * Converts a VHT MCS value into a DataRate value
60
   */
61
  static StringValue DataRateForMcs (int mcs);
62
};
63
64
} //namespace ns3
65
66
#endif /* VHT_WIFI_MAC_HELPER_H */
(-)a/src/wifi/model/regular-wifi-mac.cc (-3 / +6 lines)
 Lines 728-741    Link Here 
728
728
729
  switch (standard)
729
  switch (standard)
730
    {
730
    {
731
    case WIFI_PHY_STANDARD_80211ac:
732
      SetVhtSupported (true);
733
    case WIFI_PHY_STANDARD_80211n_5GHZ:
734
    case WIFI_PHY_STANDARD_80211n_2_4GHZ:
735
      NS_ASSERT (GetQosSupported ());
736
      SetHtSupported (true);
731
    case WIFI_PHY_STANDARD_holland:
737
    case WIFI_PHY_STANDARD_holland:
732
    case WIFI_PHY_STANDARD_80211a:
738
    case WIFI_PHY_STANDARD_80211a:
733
    case WIFI_PHY_STANDARD_80211g:
739
    case WIFI_PHY_STANDARD_80211g:
734
    case WIFI_PHY_STANDARD_80211_10MHZ:
740
    case WIFI_PHY_STANDARD_80211_10MHZ:
735
    case WIFI_PHY_STANDARD_80211_5MHZ:
741
    case WIFI_PHY_STANDARD_80211_5MHZ:
736
    case WIFI_PHY_STANDARD_80211n_5GHZ:
737
    case WIFI_PHY_STANDARD_80211n_2_4GHZ:
738
    case WIFI_PHY_STANDARD_80211ac:
739
      cwmin = 15;
742
      cwmin = 15;
740
      cwmax = 1023;
743
      cwmax = 1023;
741
      break;
744
      break;
(-)a/src/wifi/wscript (-5 / +3 lines)
 Lines 73-85    Link Here 
73
        'model/wifi-tx-current-model.cc',
73
        'model/wifi-tx-current-model.cc',
74
	'model/vht-capabilities.cc',
74
	'model/vht-capabilities.cc',
75
        'helper/wifi-radio-energy-model-helper.cc',
75
        'helper/wifi-radio-energy-model-helper.cc',
76
        'helper/vht-wifi-mac-helper.cc',
77
        'helper/ht-wifi-mac-helper.cc',
78
        'helper/athstats-helper.cc',
76
        'helper/athstats-helper.cc',
79
        'helper/wifi-helper.cc',
77
        'helper/wifi-helper.cc',
80
        'helper/yans-wifi-helper.cc',
78
        'helper/yans-wifi-helper.cc',
81
        'helper/nqos-wifi-mac-helper.cc',
79
        'helper/nqos-wifi-mac-helper.cc',
82
        'helper/qos-wifi-mac-helper.cc',
80
        'helper/qos-wifi-mac-helper.cc',
81
        'helper/mcs-helper.cc',
83
        ]
82
        ]
84
83
85
    obj_test = bld.create_ns3_module_test_library('wifi')
84
    obj_test = bld.create_ns3_module_test_library('wifi')
 Lines 162-176    Link Here 
162
        'model/ampdu-tag.h',
161
        'model/ampdu-tag.h',
163
        'model/wifi-radio-energy-model.h',
162
        'model/wifi-radio-energy-model.h',
164
        'model/wifi-tx-current-model.h',
163
        'model/wifi-tx-current-model.h',
165
	'model/vht-capabilities.h',
164
        'model/vht-capabilities.h',
166
        'helper/wifi-radio-energy-model-helper.h',
165
        'helper/wifi-radio-energy-model-helper.h',
167
        'helper/vht-wifi-mac-helper.h',
168
        'helper/ht-wifi-mac-helper.h',
169
        'helper/athstats-helper.h',
166
        'helper/athstats-helper.h',
170
        'helper/wifi-helper.h',
167
        'helper/wifi-helper.h',
171
        'helper/yans-wifi-helper.h',
168
        'helper/yans-wifi-helper.h',
172
        'helper/nqos-wifi-mac-helper.h',
169
        'helper/nqos-wifi-mac-helper.h',
173
        'helper/qos-wifi-mac-helper.h',
170
        'helper/qos-wifi-mac-helper.h',
171
        'helper/mcs-helper.h',
174
        ]
172
        ]
175
173
176
    if bld.env['ENABLE_GSL']:
174
    if bld.env['ENABLE_GSL']:

Return to bug 2213