This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Neels Hofmeyr gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/5902 fixup: neigh_meas_avg: detect invalid window size as <=0, log if invalid Change-Id: I8c5d0642aeb4fbee73a035b9f73cf3a09b1bcf90 --- M src/libbsc/handover_decision.c 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/02/5902/1 diff --git a/src/libbsc/handover_decision.c b/src/libbsc/handover_decision.c index 04ca144..1ad4b36 100644 --- a/src/libbsc/handover_decision.c +++ b/src/libbsc/handover_decision.c @@ -103,8 +103,10 @@ if (window < nmp->rxlev_cnt) window = nmp->rxlev_cnt; /* this should never happen */ - if (window == 0) + if (window <= 0) { + LOGP(DHO, LOGL_ERROR, "Requested Neighbor RxLev for invalid window size of %d\n", window); return 0; + } idx = calc_initial_idx(ARRAY_SIZE(nmp->rxlev), nmp->rxlev_cnt % ARRAY_SIZE(nmp->rxlev), -- To view, visit https://gerrit.osmocom.org/5902 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8c5d0642aeb4fbee73a035b9f73cf3a09b1bcf90 Gerrit-PatchSet: 1 Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>