uan: (fixes #1127) Fixed bug in energy update in UanPhyGen::RxEndEvent() (thanks to donghuiyong)

This commit is contained in:
Federico Guerra
2024-09-01 19:20:00 +02:00
committed by Tom Henderson
parent c288ebbbe7
commit e266e0a2c8
2 changed files with 3 additions and 1 deletions

View File

@@ -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
------------

View File

@@ -857,9 +857,10 @@ UanPhyGen::RxEndEvent(Ptr<Packet> 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);