aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-19 16:45:29 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-19 18:35:56 +0100
commit51cec5f7259e14e4c6f78a69c3d411964b1baf4c (patch)
treeaecdbb985bb392544774f2af70b6a353d199aefa /openbsc
parent5e3d91bff71a9c456069bbf4a459b66a32f9656e (diff)
measurement report parsing: NO-NCELL-M of 7 tells us no neighbors
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gsm_04_08.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 589133e27..d59d7d7ca 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -191,7 +191,7 @@ int gsm48_parse_meas_rep(struct gsm_meas_rep *rep, struct msgb *msg)
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 */