commit | 73ddaeddd2b4666abe90843e5ff89f00d6b1c934 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@netfilter.org> | Wed Dec 16 23:29:12 2009 +0100 |
committer | Harald Welte <laforge@netfilter.org> | Wed Dec 16 23:29:12 2009 +0100 |
tree | 0ba931f03b23d23f626ecf99789a728a124ee450 | |
parent | 88a412ac80e182fc8a1fa470f846783d79ab7d52 [diff] |
measurement report: correctly parse BSIC of first neighbor cell
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index 0815d6d..5fea6bf 100644 --- a/openbsc/src/gsm_04_08.c +++ b/openbsc/src/gsm_04_08.c
@@ -198,7 +198,7 @@ rep->cell[0].rxlev = data[3] & 0x3f; rep->cell[0].arfcn = bitvec_get_nth_set_bit(nbv, data[4] >> 2); - rep->cell[0].bsic = ((data[4] & 0x03) << 3) | (data[5] >> 5); + rep->cell[0].bsic = ((data[4] & 0x07) << 3) | (data[5] >> 5); if (rep->num_cell < 2) return 0;