wifi: No need to call SwitchMaybeToCcaBusy upon reception from a non-active PHY interface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user