aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libbsc/handover_decision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libbsc/handover_decision.c b/src/libbsc/handover_decision.c
index 1ad4b3672..127b362c1 100644
--- a/src/libbsc/handover_decision.c
+++ b/src/libbsc/handover_decision.c
@@ -100,7 +100,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) {