From 27a887f666adb67450470d7240e25fce1d178c76 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 9 Sep 2020 03:23:30 +0200 Subject: gsm 04.08: encode the LTE neighbors measurement bandwindth in Channel Release Encoding missing measurement bandwidth of LTE neighbors in Channel Release (Cell selection indicator after release of all TCH and SDCCH value part). The measurement bandwidth was encoded in the neighbors description transmitted in SI2quater while missing in the Channel Release which would overwrite the SI2quater measurement bandwidth. Change-Id: I4847d840ba9d5ac56bd00e4f405dc47792008c0d --- src/osmo-bsc/gsm_04_08_rr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/osmo-bsc/gsm_04_08_rr.c b/src/osmo-bsc/gsm_04_08_rr.c index 848f62391..c2f430463 100644 --- a/src/osmo-bsc/gsm_04_08_rr.c +++ b/src/osmo-bsc/gsm_04_08_rr.c @@ -270,8 +270,14 @@ static int generate_cell_sel_ind_after_rel(uint8_t *out, unsigned int out_len, c } else { bitvec_set_bit(&bv, 1); bitvec_set_uint(&bv, e->arfcn[i], 16); - /* No "Measurement Bandwidth" */ - bitvec_set_bit(&bv, 0); + + /* Measurement Bandwidth: 9.1.54 */ + if (OSMO_EARFCN_MEAS_INVALID == e->meas_bw[i]) + bitvec_set_bit(&bv, 0); + else { + bitvec_set_bit(&bv, 1); + bitvec_set_uint(&bv, e->meas_bw[i], 3); + } /* No "Not Allowed Cells" */ bitvec_set_bit(&bv, 0); /* No "TARGET_PCID" */ -- cgit v1.2.3