commit | 2354dc83d6b1ae6afc08167b80b111a9751ef1c5 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@netfilter.org> | Sat Dec 19 16:45:29 2009 +0100 |
committer | Harald Welte <laforge@netfilter.org> | Sat Dec 19 18:35:56 2009 +0100 |
tree | aecdbb985bb392544774f2af70b6a353d199aefa | |
parent | bffa49976264a4ce3d75ae9d5562b9decfcf6c6b [diff] |
measurement report parsing: NO-NCELL-M of 7 tells us no neighbors
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index 589133e..d59d7d7 100644 --- a/openbsc/src/gsm_04_08.c +++ b/openbsc/src/gsm_04_08.c
@@ -191,7 +191,7 @@ rep->dl.sub.rx_qual = (data[3] >> 1) & 0x7; rep->num_cell = ((data[3] >> 6) & 0x3) | ((data[2] & 0x01) << 2); - if (rep->num_cell < 1) + if (rep->num_cell < 1 || rep->num_cell > 6) return 0; /* an encoding nightmare in perfection */