--- a/examples/wireless/wifi-wired-bridging.cc Thu Dec 02 07:51:34 2010 +0000
+++ b/examples/wireless/wifi-wired-bridging.cc Wed Dec 01 22:13:26 2010 +0000
@@ -29,7 +29,7 @@
// WIFI STA WIFI STA WIFI STA WIFI STA
// -------- -------- -------- --------
// ((*)) ((*)) | ((*)) ((*))
-// |
+// |
// ((*)) | ((*))
// ------- -------
// WIFI AP CSMA ========= CSMA WIFI AP
@@ -38,9 +38,9 @@
// BRIDGE BRIDGE
// ############## ##############
// 192.168.0.1 192.168.0.2
-// +---------+ +---------+
+// +---------+ +---------+
// | AP Node | | AP Node |
-// +---------+ +---------+
+// +---------+ +---------+
//
#include "ns3/core-module.h"
@@ -116,12 +116,12 @@
sta.Create (nStas);
mobility.SetPositionAllocator ("ns3::GridPositionAllocator",
- "MinX", DoubleValue (wifiX),
- "MinY", DoubleValue (0.0),
- "DeltaX", DoubleValue (5.0),
- "DeltaY", DoubleValue (5.0),
- "GridWidth", UintegerValue (1),
- "LayoutType", StringValue ("RowFirst"));
+ "MinX", DoubleValue (wifiX),
+ "MinY", DoubleValue (0.0),
+ "DeltaX", DoubleValue (5.0),
+ "DeltaY", DoubleValue (5.0),
+ "GridWidth", UintegerValue (1),
+ "LayoutType", StringValue ("RowFirst"));
// setup the AP.
@@ -140,10 +140,10 @@
// setup the STAs
stack.Install (sta);
mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel",
- "Mode", StringValue ("Time"),
- "Time", StringValue ("2s"),
- "Speed", StringValue ("Constant:1.0"),
- "Bounds", RectangleValue (Rectangle (wifiX, wifiX+5.0,0.0, (nStas+1)*5.0)));
+ "Mode", StringValue ("Time"),
+ "Time", StringValue ("2s"),
+ "Speed", StringValue ("Constant:1.0"),
+ "Bounds", RectangleValue (Rectangle (wifiX, wifiX+5.0,0.0, (nStas+1)*5.0)));
mobility.Install (sta);
wifiMac.SetType ("ns3::StaWifiMac",
"Ssid", SsidValue (ssid),
@@ -184,7 +184,7 @@
ApplicationContainer apps = onoff.Install (staNodes[0].Get (0));
apps.Start (Seconds (0.5));
apps.Stop (Seconds (3.0));
-
+
wifiPhy.EnablePcap ("wifi-wired-bridging", apDevices[0]);
wifiPhy.EnablePcap ("wifi-wired-bridging", apDevices[1]);