[meas rep] Correctly parse neighbor cell index of first reported neighbor cell

This commit is contained in:
Harald Welte 2009-12-25 22:42:15 +01:00
parent 42a5652eb2
commit 469b001b19
1 changed files with 1 additions and 1 deletions

View File

@ -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;