summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-06-23 10:44:34 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2013-07-29 12:45:03 +0200
commit4f26f1ee4281916e98d9ddc6291d38a8fbaffc43 (patch)
treef36e482cf4e4bd33a1303c009147518d5f14fef1
parent77d13e901b9e5d962709828c0c5e7ee68655d3cb (diff)
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.
-rw-r--r--openbsc/include/openbsc/gsm_data.h2
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 52937cc57..17ca5df57 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -87,6 +87,8 @@ struct gsm_anchor_operation {
#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/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index f57fae545..5ef3ef4ea 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -246,7 +246,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_cnt;