aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-19 20:43:37 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-19 20:43:37 +0100
commit21bbda242e572ad1b5248742b645c710debe37cb (patch)
tree0cb99ff2a10d7e18b319457bb56cb25a31de131f /openbsc/src
parent4d54d0b883dcf85cd92290dd4cea51754c70b621 (diff)
BSC: Fix empty neighbor list in case of manual SI/SI5 mode
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/system_information.c6
1 files changed, 3 insertions, 3 deletions
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)