wifi: No need to call SwitchMaybeToCcaBusy upon reception from a non-active PHY interface

This commit is contained in:
Sébastien Deronne
2024-06-12 20:12:34 +02:00
parent 22af184c69
commit a0b80af33d

View File

@@ -564,6 +564,15 @@ SpectrumWifiPhy::StartRx(Ptr<SpectrumSignalParameters> rxParams,
m_signalCb(rxParams, senderNodeId, WToDbm(totalRxPowerW), rxDuration);
}
if (m_trackSignalsInactiveInterfaces && interface &&
(interface != m_currentSpectrumPhyInterface))
{
NS_LOG_INFO("Received Wi-Fi signal from a non-active PHY interface "
<< interface->GetFrequencyRange());
m_interference->AddForeignSignal(rxDuration, rxPowerW, interface->GetFrequencyRange());
return;
}
if (!wifiRxParams)
{
NS_LOG_INFO("Received non Wi-Fi signal");
@@ -584,16 +593,6 @@ SpectrumWifiPhy::StartRx(Ptr<SpectrumSignalParameters> rxParams,
return;
}
if (m_trackSignalsInactiveInterfaces && interface &&
(interface != m_currentSpectrumPhyInterface))
{
NS_LOG_INFO("Received Wi-Fi signal from a non-active PHY interface "
<< interface->GetFrequencyRange());
m_interference->AddForeignSignal(rxDuration, rxPowerW, interface->GetFrequencyRange());
SwitchMaybeToCcaBusy(nullptr);
return;
}
// Do no further processing if signal is too weak
// Current implementation assumes constant RX power over the PPDU duration
// Compare received TX power per MHz to normalized RX sensitivity