From 6c40def716b757a1aa683d9414b2320d3fc20c8a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 14 Dec 2009 22:07:14 +0100 Subject: system_information: use bitvec to generate frequency lists We use a 1024-bit-sized bitvec to generate the BA and neighbor frequency list. This bitvec is still generated from the list of all BTS's inside the BSC, but this patch is the first step to generalize this, i.e. generate arbitrary neighbor lists. --- openbsc/include/openbsc/gsm_data.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openbsc/include/openbsc/gsm_data.h') diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index 9bddd7aad..52c6a030b 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -60,6 +60,7 @@ enum gsm_chreq_reason_t { #include #include #include +#include #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) @@ -381,6 +382,13 @@ struct gsm_bts { struct gsm48_cell_sel_par cell_sel_par; struct gsm48_cell_options cell_options; struct gsm48_control_channel_descr chan_desc; + struct bitvec neigh_list; + struct bitvec cell_alloc; + struct { + /* bitmask large enough for all possible ARFCN's */ + u_int8_t neigh_list[1024/8]; + u_int8_t cell_alloc[1024/8]; + } data; } si_common; /* ip.accesss Unit ID's have Site/BTS/TRX layout */ -- cgit v1.2.3