From 00a07ea95fa4c20cd5631c0d628ddda295e1c0bc Mon Sep 17 00:00:00 2001 From: Sebastien Deronne Date: Tue, 14 Jun 2022 20:05:05 +0200 Subject: [PATCH] wifi: Do not use the received PPDU to compute the measurement channel width if its received signal is too weak to process --- src/wifi/model/spectrum-wifi-phy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi/model/spectrum-wifi-phy.cc b/src/wifi/model/spectrum-wifi-phy.cc index 8da9162a8..a7361a035 100644 --- a/src/wifi/model/spectrum-wifi-phy.cc +++ b/src/wifi/model/spectrum-wifi-phy.cc @@ -349,7 +349,7 @@ SpectrumWifiPhy::StartRx (Ptr rxParams) NS_LOG_INFO ("Received signal too weak to process: " << WToDbm (totalRxPowerW) << " dBm"); m_interference->Add (wifiRxParams->ppdu, wifiRxParams->ppdu->GetTxVector (), rxDuration, rxPowerW); - SwitchMaybeToCcaBusy (GetMeasurementChannelWidth (wifiRxParams->ppdu)); + SwitchMaybeToCcaBusy (GetMeasurementChannelWidth (nullptr)); return; }