10139
|
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 |
#include "ht-wifi-mac-helper.h"
|
|
21 |
#include "ns3/wifi-mac.h"
|
|
22 |
#include "ns3/edca-txop-n.h"
|
|
23 |
#include "ns3/pointer.h"
|
|
24 |
#include "ns3/boolean.h"
|
|
25 |
#include "ns3/uinteger.h"
|
|
26 |
|
|
27 |
namespace ns3 {
|
|
28 |
|
|
29 |
HtWifiMacHelper::HtWifiMacHelper ()
|
|
30 |
{
|
|
31 |
}
|
|
32 |
|
|
33 |
HtWifiMacHelper::~HtWifiMacHelper ()
|
|
34 |
{
|
|
35 |
}
|
|
36 |
|
|
37 |
HtWifiMacHelper
|
|
38 |
HtWifiMacHelper::Default (void)
|
|
39 |
{
|
|
40 |
HtWifiMacHelper helper;
|
|
41 |
|
|
42 |
// We're making Ht-enabled Wi-Fi MACs here, so we set the necessary
|
|
43 |
// attribute. I've carefully positioned this here so that someone
|
|
44 |
// who knows what they're doing can override with explicit
|
|
45 |
// attributes.
|
|
46 |
helper.SetType ("ns3::StaWifiMac",
|
|
47 |
"QosSupported", BooleanValue (true),
|
|
48 |
"HtSupported", BooleanValue (true));
|
|
49 |
|
|
50 |
return helper;
|
|
51 |
}
|
|
52 |
|
|
53 |
|
|
54 |
} // namespace ns3
|
|
55 |
|