From eed73f5e895ccf818f77dbc47cf63aef24eef38a Mon Sep 17 00:00:00 2001 From: Zhao Wen Chow Date: Mon, 9 Dec 2019 20:15:34 +0900 Subject: [PATCH] wifi: (fixes #116) Fix receptionOkAtLeastForOneMpdu assessment Fix the scenario where all MPDUs' reception failed but the receptionOkAtLeastForOneMpdu variable is true --- src/wifi/model/wifi-phy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index 6f2b3460b..8796b32ad 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -3049,7 +3049,7 @@ WifiPhy::EndReceive (Ptr event) Ptr packet = event->GetPacket (); Time relativeStart = NanoSeconds (0); - bool receptionOkAtLeastForOneMpdu = true; + bool receptionOkAtLeastForOneMpdu = false; std::pair rxInfo; WifiTxVector txVector = event->GetTxVector (); if (txVector.IsAggregation ())