Add link params to model with attributes

This commit is contained in:
Tim Schubert 2020-08-10 13:31:01 +02:00
parent 1224169ff5
commit 27ee6a3697
8 changed files with 77 additions and 12 deletions

View file

@ -173,7 +173,8 @@ MockChannel::Deliver (
Ptr<PropagationLossModel> pLoss = GetPropagationLoss ();
if (pLoss != 0)
{
if (pLoss->CalcRxPower (1.0, srcMob, dstMob) == 0.0)
// check if Rx power is below link margin
if (pLoss->CalcRxPower (src->GetTxPower (), srcMob, dstMob) == 0.0)
{
return false;
}