aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-06-23 10:44:34 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-01-19 16:03:16 +0100
commit9869203f655858088fbcaf04fbecf61e7d7a72f3 (patch)
tree709511aa476c9be82d24d46c6d4e1e2a86c1c337
parent30b6df607e899a3e6d6ac742d8501cab2e69264a (diff)
HO: fix: increase the number of measurement report history to 10
If we want to average over up to 10 measurement reports (as configurable at VTY), we need a history of at least 10 measurements. Change-Id: Ia7cfac073bdc464092ca3e51dec319ac30401dd1
-rw-r--r--include/osmocom/bsc/gsm_data.h2
-rw-r--r--include/osmocom/bsc/gsm_data_shared.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index c09d54680..6659b722f 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -50,6 +50,8 @@ typedef int gsm_cbfn(unsigned int hooknum,
#define MAX_NEIGH_MEAS 10
/* Maximum size of the averaging window for neighbor cells */
#define MAX_WIN_NEIGH_AVG 10
+/* Maximum number of report history we store */
+#define MAX_MEAS_REP 10
/* processed neighbor measurements for one cell */
struct neigh_meas_proc {
diff --git a/include/osmocom/bsc/gsm_data_shared.h b/include/osmocom/bsc/gsm_data_shared.h
index fed3494da..86c5ca928 100644
--- a/include/osmocom/bsc/gsm_data_shared.h
+++ b/include/osmocom/bsc/gsm_data_shared.h
@@ -266,7 +266,7 @@ struct gsm_lchan {
struct neigh_meas_proc neigh_meas[MAX_NEIGH_MEAS];
/* cache of last measurement reports on this lchan */
- struct gsm_meas_rep meas_rep[6];
+ struct gsm_meas_rep meas_rep[MAX_MEAS_REP];
int meas_rep_idx;
int meas_rep_count;