From 21bbda242e572ad1b5248742b645c710debe37cb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 19 Feb 2011 20:43:37 +0100 Subject: BSC: Fix empty neighbor list in case of manual SI/SI5 mode --- openbsc/src/system_information.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/system_information.c b/openbsc/src/system_information.c index 1dc1bb0ea..8a99c565e 100644 --- a/openbsc/src/system_information.c +++ b/openbsc/src/system_information.c @@ -209,11 +209,11 @@ static int generate_bcch_chan_list(u_int8_t *chan_list, struct gsm_bts *bts, int else bv = &bts->si_common.neigh_list; - /* Zero-initialize the bit-vector */ - memset(bv->data, 0, bv->data_len); - /* Generate list of neighbor cells if we are in automatic mode */ if (bts->neigh_list_manual_mode == NL_MODE_AUTOMATIC) { + /* Zero-initialize the bit-vector */ + memset(bv->data, 0, bv->data_len); + /* first we generate a bitvec of the BCCH ARFCN's in our BSC */ llist_for_each_entry(cur_bts, &bts->network->bts_list, list) { if (cur_bts == bts) -- cgit v1.2.3