From e266e0a2c8d86985c024113f822854e18327e86a Mon Sep 17 00:00:00 2001 From: Federico Guerra Date: Sun, 1 Sep 2024 19:20:00 +0200 Subject: [PATCH] uan: (fixes #1127) Fixed bug in energy update in UanPhyGen::RxEndEvent() (thanks to donghuiyong) --- RELEASE_NOTES.md | 1 + src/uan/model/uan-phy-gen.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index f6776c29c4..79ffdb20ec 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -47,6 +47,7 @@ been tested on Linux. As of this release, the latest known version to work with - (wifi) Fix starting Sequence Number when ADDBA Response arrives after timeout - (uan) !2087 - Fix Thorp attenuation formula - (uan) !2088 - Fix PER calculation of M-QAM +- (uan) !2127 - Fix bug in energy update in UanPhyGen::RxEndEvent() Release 3.42 ------------ diff --git a/src/uan/model/uan-phy-gen.cc b/src/uan/model/uan-phy-gen.cc index 2eff55d967..fae12dea8a 100644 --- a/src/uan/model/uan-phy-gen.cc +++ b/src/uan/model/uan-phy-gen.cc @@ -857,9 +857,10 @@ UanPhyGen::RxEndEvent(Ptr pkt, double /* rxPowerDb */, UanTxMode txMode) else { m_state = IDLE; - UpdatePowerConsumption(IDLE); } + UpdatePowerConsumption(IDLE); + if (m_pg->GetValue(0, 1) > m_per->CalcPer(m_pktRx, m_minRxSinrDb, txMode)) { m_rxOkLogger(pkt, m_minRxSinrDb, txMode);