From 469b001b19d9fe63836f189e9e7a6461971b1bc6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 25 Dec 2009 22:42:15 +0100 Subject: [meas rep] Correctly parse neighbor cell index of first reported neighbor cell --- openbsc/src/gsm_04_08_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/gsm_04_08_utils.c') diff --git a/openbsc/src/gsm_04_08_utils.c b/openbsc/src/gsm_04_08_utils.c index a85f20d6e..cda72797c 100644 --- a/openbsc/src/gsm_04_08_utils.c +++ b/openbsc/src/gsm_04_08_utils.c @@ -733,7 +733,7 @@ int gsm48_parse_meas_rep(struct gsm_meas_rep *rep, struct msgb *msg) /* an encoding nightmare in perfection */ rep->cell[0].rxlev = data[3] & 0x3f; - rep->cell[0].arfcn = bitvec_get_nth_set_bit(nbv, data[4] >> 2); + rep->cell[0].arfcn = bitvec_get_nth_set_bit(nbv, data[4] >> 3); rep->cell[0].bsic = ((data[4] & 0x07) << 3) | (data[5] >> 5); if (rep->num_cell < 2) return 0; -- cgit v1.2.3