Lines 411-417
WaveNetDevice::SendX (Ptr<Packet> packet, const Address & dest, uint32_t protoco
|
Link Here
|
---|
|
411 |
txVector.SetTxPowerLevel (txInfo.txPowerLevel); |
411 |
txVector.SetTxPowerLevel (txInfo.txPowerLevel); |
412 |
txVector.SetMode (txInfo.dataRate); |
412 |
txVector.SetMode (txInfo.dataRate); |
413 |
HigherLayerTxVectorTag tag = HigherLayerTxVectorTag (txVector, false); |
413 |
HigherLayerTxVectorTag tag = HigherLayerTxVectorTag (txVector, false); |
414 |
packet->AddPacketTag (tag); |
414 |
packet->ReplacePacketTag (tag); |
415 |
} |
415 |
} |
416 |
|
416 |
|
417 |
LlcSnapHeader llc; |
417 |
LlcSnapHeader llc; |
Lines 421-427
WaveNetDevice::SendX (Ptr<Packet> packet, const Address & dest, uint32_t protoco
|
Link Here
|
---|
|
421 |
// according to channel number and priority, |
421 |
// according to channel number and priority, |
422 |
// route the packet to a proper queue. |
422 |
// route the packet to a proper queue. |
423 |
QosTag qos = QosTag (txInfo.priority); |
423 |
QosTag qos = QosTag (txInfo.priority); |
424 |
packet->AddPacketTag (qos); |
424 |
packet->ReplacePacketTag (qos); |
425 |
Ptr<WifiMac> mac = GetMac (txInfo.channelNumber); |
425 |
Ptr<WifiMac> mac = GetMac (txInfo.channelNumber); |
426 |
Mac48Address realTo = Mac48Address::ConvertFrom (dest); |
426 |
Mac48Address realTo = Mac48Address::ConvertFrom (dest); |
427 |
mac->NotifyTx (packet); |
427 |
mac->NotifyTx (packet); |
Lines 617-623
WaveNetDevice::Send (Ptr<Packet> packet, const Address& dest, uint16_t protocol)
|
Link Here
|
---|
|
617 |
txVector.SetTxPowerLevel (m_txProfile->txPowerLevel); |
617 |
txVector.SetTxPowerLevel (m_txProfile->txPowerLevel); |
618 |
txVector.SetMode (m_txProfile->dataRate); |
618 |
txVector.SetMode (m_txProfile->dataRate); |
619 |
HigherLayerTxVectorTag tag = HigherLayerTxVectorTag (txVector, m_txProfile->adaptable); |
619 |
HigherLayerTxVectorTag tag = HigherLayerTxVectorTag (txVector, m_txProfile->adaptable); |
620 |
packet->AddPacketTag (tag); |
620 |
packet->ReplacePacketTag (tag); |
621 |
} |
621 |
} |
622 |
|
622 |
|
623 |
LlcSnapHeader llc; |
623 |
LlcSnapHeader llc; |