Temporarily force a 10 MHz channel width in WAVE
authorSébastien Deronne <sebastien.deronne@gmail.com>
Fri, 04 Sep 2015 22:18:05 +0200
changeset 11639 b3b5505b8dc4
parent 11638 553cf6229117
child 11640 8dfcbf71cb06
Temporarily force a 10 MHz channel width in WAVE
src/wave/model/vsa-manager.cc
src/wave/model/wave-mac-low.cc
src/wave/model/wave-net-device.cc
--- a/src/wave/model/vsa-manager.cc	Fri Sep 04 22:18:04 2015 +0200
+++ b/src/wave/model/vsa-manager.cc	Fri Sep 04 22:18:05 2015 +0200
@@ -174,6 +174,7 @@
   vsc->AddPacketTag (qosTag);
 
   WifiTxVector txVector;
+  txVector.SetChannelWidth (10);
   txVector.SetTxPowerLevel (manager->GetManagementPowerLevel (channel));
   txVector.SetMode (manager->GetManagementDataRate (channel));
   HigherLayerTxVectorTag tag = HigherLayerTxVectorTag (txVector, manager->GetManagementAdaptable (channel));
--- a/src/wave/model/wave-mac-low.cc	Fri Sep 04 22:18:04 2015 +0200
+++ b/src/wave/model/wave-mac-low.cc	Fri Sep 04 22:18:05 2015 +0200
@@ -82,6 +82,7 @@
   WifiTxVector txHigher = datatag.GetTxVector ();
   WifiTxVector txMac = MacLow::GetDataTxVector (packet, hdr);
   WifiTxVector txAdapter;
+  txAdapter.SetChannelWidth (10);
   // the DataRate set by higher layer is the minimum data rate
   // which is the lower bound for the actual data rate.
   if (txHigher.GetMode ().GetDataRate (txHigher.GetChannelWidth (), txHigher.IsShortGuardInterval (), 1) > txMac.GetMode ().GetDataRate (txMac.GetChannelWidth (), txMac.IsShortGuardInterval (), 1))
--- a/src/wave/model/wave-net-device.cc	Fri Sep 04 22:18:04 2015 +0200
+++ b/src/wave/model/wave-net-device.cc	Fri Sep 04 22:18:05 2015 +0200
@@ -408,6 +408,7 @@
             }
         }
       WifiTxVector txVector;
+      txVector.SetChannelWidth (10);
       txVector.SetTxPowerLevel (txInfo.txPowerLevel);
       txVector.SetMode (txInfo.dataRate);
       HigherLayerTxVectorTag tag = HigherLayerTxVectorTag (txVector, false);