aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/gsm_04_08_rr.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-09-09 03:23:30 +0200
committerAlexander Couzens <lynxis@fe80.eu>2020-09-10 20:23:11 +0200
commit27a887f666adb67450470d7240e25fce1d178c76 (patch)
tree8a0ea1c87d42437e69d829286f91bd3c3bf885f7 /src/osmo-bsc/gsm_04_08_rr.c
parentcdfd687af4bef1c04c1b7ddc4d3f7810bec06508 (diff)
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
Diffstat (limited to 'src/osmo-bsc/gsm_04_08_rr.c')
-rw-r--r--src/osmo-bsc/gsm_04_08_rr.c10
1 files 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" */