|
|
| 415 |
m_edPower.lastUpdate = now; |
415 |
m_edPower.lastUpdate = now; |
| 416 |
} |
416 |
} |
| 417 |
|
417 |
|
| 418 |
CheckInterference (); |
418 |
Ptr<LrWpanSpectrumSignalParameters> currentRxParams = m_currentRxPacket.first; |
|
|
419 |
|
| 420 |
if (currentRxParams == params) |
| 421 |
{ |
| 422 |
CheckInterference (); |
| 423 |
} |
| 419 |
|
424 |
|
| 420 |
// Update the interference. |
425 |
// Update the interference. |
| 421 |
m_signal->RemoveSignal (params->psd); |
426 |
m_signal->RemoveSignal (params->psd); |
| 422 |
|
427 |
|
| 423 |
// If this is the end of the currently received packet, check if reception was successfull. |
428 |
// If this is the end of the currently received packet, check if reception was successfull. |
| 424 |
Ptr<LrWpanSpectrumSignalParameters> currentRxParams = m_currentRxPacket.first; |
|
|
| 425 |
if (currentRxParams == params) |
429 |
if (currentRxParams == params) |
| 426 |
{ |
430 |
{ |
| 427 |
Ptr<Packet> currentPacket = currentRxParams->packetBurst->GetPackets ().front (); |
431 |
Ptr<Packet> currentPacket = currentRxParams->packetBurst->GetPackets ().front (); |