equal
deleted
inserted
replaced
138 wifiMac.SetType ("ns3::AdhocWifiMac"); |
138 wifiMac.SetType ("ns3::AdhocWifiMac"); |
139 YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); |
139 YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); |
140 YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default (); |
140 YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default (); |
141 wifiPhy.SetChannel (wifiChannel.Create ()); |
141 wifiPhy.SetChannel (wifiChannel.Create ()); |
142 WifiHelper wifi = WifiHelper::Default (); |
142 WifiHelper wifi = WifiHelper::Default (); |
143 wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("wifia-6mbs"), "RtsCtsThreshold", StringValue ("2200")); |
143 wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("OfdmRate6Mbps"), "RtsCtsThreshold", StringValue ("2200")); |
144 NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, *m_nodes); |
144 NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, *m_nodes); |
145 |
145 |
146 // 2. Setup TCP/IP & AODV |
146 // 2. Setup TCP/IP & AODV |
147 AodvHelper aodv; // Use default parameters here |
147 AodvHelper aodv; // Use default parameters here |
148 InternetStackHelper internetStack; |
148 InternetStackHelper internetStack; |