From 593c5401bff73c9d328d214978cf4ba960f62e7e Mon Sep 17 00:00:00 2001 From: Federico Guerra Date: Sun, 4 Aug 2024 15:59:22 +0200 Subject: [PATCH] uan: (fixes #1112) Fix Thorp attenuation formula (fix due to donghuiyong) --- RELEASE_NOTES.md | 1 + src/uan/model/uan-prop-model-thorp.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 6e7bdec4f..d9c454860 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -43,6 +43,7 @@ been tested on Linux. As of this release, the latest known version to work with - (wifi) Avoid firing WifiMac::DroppedMpdu trace twice in some cases - (wifi) Fix assignment of AIDs to non-AP STAs/MLDs to ensure they are unique - (wifi) Fix starting Sequence Number when ADDBA Response arrives after timeout +- (uan) !2087 - Fix Thorp attenuation formula Release 3.42 ------------ diff --git a/src/uan/model/uan-prop-model-thorp.cc b/src/uan/model/uan-prop-model-thorp.cc index 167f839e0..1a2af7ce9 100644 --- a/src/uan/model/uan-prop-model-thorp.cc +++ b/src/uan/model/uan-prop-model-thorp.cc @@ -93,7 +93,7 @@ UanPropModelThorp::GetAttenDbKm(double freqKhz) } else { - atten = 0.002 + 0.11 * (freqKhz / (1 + freqKhz)) + 0.011 * freqKhz; + atten = 0.002 + 0.11 * (fsq / (1 + fsq)) + 0.011 * fsq; } return atten;