|
|
| 112 |
|
112 |
|
| 113 |
//Network B |
113 |
//Network B |
| 114 |
ssid = Ssid ("network-B"); |
114 |
ssid = Ssid ("network-B"); |
| 115 |
phy.Set ("ChannelNumber", UintegerValue(40)); |
115 |
phy.Set ("ChannelNumber", UintegerValue(36)); |
| 116 |
mac.SetType ("ns3::StaWifiMac", |
116 |
mac.SetType ("ns3::StaWifiMac", |
| 117 |
"Ssid", SsidValue (ssid), |
117 |
"Ssid", SsidValue (ssid), |
| 118 |
"ActiveProbing", BooleanValue (false), |
118 |
"ActiveProbing", BooleanValue (false)); |
| 119 |
"BE_MaxAmpduSize", UintegerValue (0)); //Disable A-MPDU |
|
|
| 120 |
|
119 |
|
| 121 |
staDeviceB = wifi.Install (phy, mac, wifiStaNode.Get(1)); |
120 |
staDeviceB = wifi.Install (phy, mac, wifiStaNode.Get(1)); |
| 122 |
|
121 |
|
|
|
| 167 |
|
166 |
|
| 168 |
//Set position for APs |
167 |
//Set position for APs |
| 169 |
positionAlloc->Add (Vector (0.0, 0.0, 0.0)); |
168 |
positionAlloc->Add (Vector (0.0, 0.0, 0.0)); |
| 170 |
positionAlloc->Add (Vector (10.0, 0.0, 0.0)); |
169 |
positionAlloc->Add (Vector (200.0, 0.0, 0.0)); |
| 171 |
positionAlloc->Add (Vector (20.0, 0.0, 0.0)); |
170 |
positionAlloc->Add (Vector (20.0, 0.0, 0.0)); |
| 172 |
positionAlloc->Add (Vector (30.0, 0.0, 0.0)); |
171 |
positionAlloc->Add (Vector (30.0, 0.0, 0.0)); |
| 173 |
//Set position for STAs |
172 |
//Set position for STAs |
| 174 |
positionAlloc->Add (Vector (distance, 0.0, 0.0)); |
173 |
positionAlloc->Add (Vector (10, 0.0, 0.0)); |
| 175 |
positionAlloc->Add (Vector (10 + distance, 0.0, 0.0)); |
174 |
positionAlloc->Add (Vector (180, 0.0, 0.0)); |
| 176 |
positionAlloc->Add (Vector (20 + distance, 0.0, 0.0)); |
175 |
positionAlloc->Add (Vector (20 + distance, 0.0, 0.0)); |
| 177 |
positionAlloc->Add (Vector (30 + distance, 0.0, 0.0)); |
176 |
positionAlloc->Add (Vector (30 + distance, 0.0, 0.0)); |
| 178 |
//Remark: while we set these positions 10 meters apart, the networks do not interact |
177 |
//Remark: while we set these positions 10 meters apart, the networks do not interact |