eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 18c2c98ad5b541fb721a905aac747c1a8d7457a2
parent 8884fd8bbde92c3d9f4427b00e3c08fbe629f5bf
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 12 Dec 2019 16:04:07 -0800

rrm: fix bad sign for calculating RCPI

The first if case should be -10950, not 10950. Without the negative
this first case would get hit every time since signal strength values
are always negative.

Diffstat:
Msrc/rrm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rrm.c b/src/rrm.c @@ -243,7 +243,7 @@ static void rrm_build_measurement_report(struct rrm_request_info *info, /* 802.11 Table 9-154 */ static uint8_t mdb_to_rcpi(int32_t mdb) { - if (mdb <= 10950) + if (mdb <= -10950) return 0; else if (mdb >= -10950 && mdb < 0) return (2 * (mdb + 11000)) / 100;