Temporarily force a 10 MHz channel width in WAVE
This commit is contained in:
@@ -174,6 +174,7 @@ VsaManager::DoSendVsa (enum VsaTransmitInterval interval, uint32_t channel,
|
||||
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));
|
||||
|
||||
@@ -82,6 +82,7 @@ WaveMacLow::GetDataTxVector (Ptr<const Packet> packet, const WifiMacHeader *hdr)
|
||||
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))
|
||||
|
||||
@@ -408,6 +408,7 @@ WaveNetDevice::SendX (Ptr<Packet> packet, const Address & dest, uint32_t protoco
|
||||
}
|
||||
}
|
||||
WifiTxVector txVector;
|
||||
txVector.SetChannelWidth (10);
|
||||
txVector.SetTxPowerLevel (txInfo.txPowerLevel);
|
||||
txVector.SetMode (txInfo.dataRate);
|
||||
HigherLayerTxVectorTag tag = HigherLayerTxVectorTag (txVector, false);
|
||||
|
||||
Reference in New Issue
Block a user