diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index f6776c29c..79ffdb20e 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 2eff55d96..fae12dea8 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);