aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-05 01:03:39 +0100
committerIvan Kluchnikov <kluchnikovi@gmail.com>2018-09-03 15:05:10 +0300
commit2eee8d9728916fc9b6e3f0be970e2d6f3284ac7c (patch)
tree5df4f89c955c4472162e6bc9505b6b756cccfe57
parent42b39418cdc94eb76815180cb2a9ebe4aa1bcb7e (diff)
fixup: neigh_meas_avg: fix condition to reduce window size
-rw-r--r--openbsc/src/libbsc/handover_decision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/handover_decision.c b/openbsc/src/libbsc/handover_decision.c
index 98c9dce87..d93ef7a4f 100644
--- a/openbsc/src/libbsc/handover_decision.c
+++ b/openbsc/src/libbsc/handover_decision.c
@@ -77,7 +77,7 @@ static int neigh_meas_avg(struct neigh_meas_proc *nmp, int window)
int avg = 0;
/* reduce window to the actual number of existing measurements */
- if (window < nmp->rxlev_cnt)
+ if (window > nmp->rxlev_cnt)
window = nmp->rxlev_cnt;
/* this should never happen */
if (window <= 0) {