From e5b30b5c0eb6f50b9b5162584753d67b3eeb4c8d Mon Sep 17 00:00:00 2001 From: Sebastien Deronne Date: Sat, 23 Apr 2022 12:37:12 +0200 Subject: [PATCH] wifi: Always add PPDU received with unsupported modulation as interference --- src/wifi/model/wifi-phy.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index fac810b03..1f4547091 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -1612,11 +1612,8 @@ WifiPhy::StartReceivePreamble (Ptr ppdu, RxPowerWattPerChannelBand& rx { //TODO find a fallback PHY for receiving the PPDU (e.g. 11a for 11ax due to preamble structure) NS_LOG_DEBUG ("Unsupported modulation received (" << modulation << "), consider as noise"); - if (ppdu->GetTxDuration () > m_state->GetDelayUntilIdle ()) - { - m_interference.Add (ppdu, ppdu->GetTxVector (), rxDuration, rxPowersW); - SwitchMaybeToCcaBusy (GetMeasurementChannelWidth (nullptr)); - } + m_interference.Add (ppdu, ppdu->GetTxVector (), rxDuration, rxPowersW); + SwitchMaybeToCcaBusy (GetMeasurementChannelWidth (nullptr)); } }