laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bts/+/15005
Change subject: osmo-bts-trx: Don't increment rssi_valid_count twice
......................................................................
osmo-bts-trx: Don't increment rssi_valid_count twice
In the ms_power_val() function, don't increment the number of
valid RSSI values counter twice.
Change-Id: I19d9d933a69f7ad6252cbe51751d5db41790c698
---
M src/osmo-bts-trx/loops.c
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/05/15005/1
diff --git a/src/osmo-bts-trx/loops.c b/src/osmo-bts-trx/loops.c
index c17f548..380bac5 100644
--- a/src/osmo-bts-trx/loops.c
+++ b/src/osmo-bts-trx/loops.c
@@ -109,7 +109,6 @@
if (chan_state->meas.rssi_valid_count ==
ARRAY_SIZE(chan_state->meas.rssi))
return;
chan_state->meas.rssi[chan_state->meas.rssi_valid_count++] = rssi;
- chan_state->meas.rssi_valid_count++;
}
/*! Process a single clock tick of the MS power control loop.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/15005
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I19d9d933a69f7ad6252cbe51751d5db41790c698
Gerrit-Change-Number: 15005
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange