commit | 51cec5f7259e14e4c6f78a69c3d411964b1baf4c | [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 | 5e3d91bff71a9c456069bbf4a459b66a32f9656e [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 */