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
This commit is contained in:
Andreas Eversberg 2013-06-23 10:44:34 +02:00 committed by Neels Hofmeyr
parent 30b6df607e
commit 9869203f65
2 changed files with 3 additions and 1 deletions

View File

@ -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 {

View File

@ -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;