LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2008 INRIA | 3 * Copyright (c) 2008 INRIA |
4 * Copyright (c) 2009 MIRKO BANCHI | 4 * Copyright (c) 2009 MIRKO BANCHI |
5 * Copyright (c) 2013 Dalian University of Technology | 5 * Copyright (c) 2013 Dalian University of Technology |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License version 2 as | 8 * it under the terms of the GNU General Public License version 2 as |
9 * published by the Free Software Foundation; | 9 * published by the Free Software Foundation; |
10 * | 10 * |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 Wifi80211pHelper helper; | 44 Wifi80211pHelper helper; |
45 helper.SetStandard (WIFI_PHY_STANDARD_80211_10MHZ); | 45 helper.SetStandard (WIFI_PHY_STANDARD_80211_10MHZ); |
46 helper.SetRemoteStationManager ("ns3::ConstantRateWifiManager", | 46 helper.SetRemoteStationManager ("ns3::ConstantRateWifiManager", |
47 "DataMode", StringValue ("OfdmRate6MbpsBW10MHz
"), | 47 "DataMode", StringValue ("OfdmRate6MbpsBW10MHz
"), |
48 "ControlMode",StringValue ("OfdmRate6MbpsBW10M
Hz"), | 48 "ControlMode",StringValue ("OfdmRate6MbpsBW10M
Hz"), |
49 "NonUnicastMode", StringValue ("OfdmRate6MbpsB
W10MHz")); | 49 "NonUnicastMode", StringValue ("OfdmRate6MbpsB
W10MHz")); |
50 return helper; | 50 return helper; |
51 } | 51 } |
52 | 52 |
53 void | 53 void |
54 Wifi80211pHelper::SetStandard (enum WifiPhyStandard standard) | 54 Wifi80211pHelper::SetStandard (WifiPhyStandard standard) |
55 { | 55 { |
56 if ((standard == WIFI_PHY_STANDARD_80211a) || (standard == WIFI_PHY_STANDARD_8
0211_10MHZ)) | 56 if ((standard == WIFI_PHY_STANDARD_80211a) || (standard == WIFI_PHY_STANDARD_8
0211_10MHZ)) |
57 { | 57 { |
58 WifiHelper::SetStandard (standard); | 58 WifiHelper::SetStandard (standard); |
59 } | 59 } |
60 else | 60 else |
61 { | 61 { |
62 NS_FATAL_ERROR ("802.11p only use 802.11 standard with 10MHz or 20MHz"); | 62 NS_FATAL_ERROR ("802.11p only use 802.11 standard with 10MHz or 20MHz"); |
63 } | 63 } |
64 } | 64 } |
(...skipping 21 matching lines...) Expand all Loading... |
86 ", or should be the subclass of QosWaveMacHelper or Nq
osWaveMacHelper"); | 86 ", or should be the subclass of QosWaveMacHelper or Nq
osWaveMacHelper"); |
87 } | 87 } |
88 NS_UNUSED (nqosMac); | 88 NS_UNUSED (nqosMac); |
89 } | 89 } |
90 | 90 |
91 NS_UNUSED (qosMac); | 91 NS_UNUSED (qosMac); |
92 return WifiHelper::Install (phyHelper, macHelper, c); | 92 return WifiHelper::Install (phyHelper, macHelper, c); |
93 } | 93 } |
94 | 94 |
95 } // namespace ns3 | 95 } // namespace ns3 |
LEFT | RIGHT |