src/wave/model/wave-mac-low.cc
changeset 11628 243b71de25a0
parent 11330 995dac2d45cd
child 11639 b3b5505b8dc4
--- a/src/wave/model/wave-mac-low.cc	Wed Sep 02 16:37:05 2015 -0700
+++ b/src/wave/model/wave-mac-low.cc	Thu Sep 03 22:16:49 2015 +0200
@@ -84,7 +84,7 @@
   WifiTxVector txAdapter;
   // 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 () > txMac.GetMode ().GetDataRate ())
+  if (txHigher.GetMode ().GetDataRate (txHigher.GetChannelWidth (), txHigher.IsShortGuardInterval (), 1) > txMac.GetMode ().GetDataRate (txMac.GetChannelWidth (), txMac.IsShortGuardInterval (), 1))
     {
       txAdapter.SetMode (txHigher.GetMode ());
     }