Skip to content

Commit

Permalink
uan: (fixes #1127) Fixed bug in energy update in UanPhyGen::RxEndEven…
Browse files Browse the repository at this point in the history
…t() (thanks to donghuiyong)
  • Loading branch information
MetalKnight authored and tomhenderson committed Sep 2, 2024
1 parent c288ebb commit e266e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand Down
3 changes: 2 additions & 1 deletion src/uan/model/uan-phy-gen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e266e0a

Please sign in to comment.