aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-09-04 06:21:32 +0200
committerMichael McTernan <mike.mcternan@wavemobile.com>2016-01-05 15:44:20 +0000
commitf0a2bf3427793843ce0830a72c4373b5d651adb4 (patch)
tree46b9ddf1e9d1324cf88e846ac1a1cb387bae79ae
parent560ce909974c60105cfa0dcf73e558dae128f27b (diff)
Fix neighbor channel list generation for 1900 MHz PCS bandmmcternan/bb_maint
In the 1900 MHz PCS band, we always generated neighbor cell lists consisting of only a single neighbor cell, rather than al the configured BTSs.
-rw-r--r--openbsc/src/libbsc/system_information.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/libbsc/system_information.c b/openbsc/src/libbsc/system_information.c
index 5338c5794..e086b374b 100644
--- a/openbsc/src/libbsc/system_information.c
+++ b/openbsc/src/libbsc/system_information.c
@@ -151,9 +151,9 @@ static int enc_freq_lst_var_bitmap(uint8_t *chan_list,
for (i = 0; i < bv->data_len*8; i++) {
/* see notes in bitvec2freq_list */
if (bitvec_get_bit_pos(bv, i)
- && ((!bis && !ter && gsm_arfcn2band(i) == bts->band)
- || (bis && pgsm && gsm_arfcn2band(i) == bts->band && (i < 1 || i > 124))
- || (ter && gsm_arfcn2band(i) != bts->band))) {
+ && ((!bis && !ter && band_compatible(bts,i))
+ || (bis && pgsm && band_compatible(bts,i) && (i < 1 || i > 124))
+ || (ter && !band_compatible(bts, i)))) {
int rc = freq_list_bmrel_set_arfcn(chan_list, i);
if (rc < 0)
return rc;