summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Badea <vamposdecampos@gmail.com>2013-01-02 17:34:25 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2013-01-02 18:31:30 +0100
commitdccf41703a487789355b1d4e229543d5bd6c6d77 (patch)
tree754c0614f41f9916095ad5557eeb04f0c3b6dd98
parent97eb0c701d004069de9569fc7f19691ffa7f56a6 (diff)
l23 sysinfo: defer SI4 CBCH mobile allocation until SI1 is received
When parsing SI4, there's a check and a log message saying that CBCH MA is ignored until SI1 is received. Then the MA is decoded anyway -- incorrectly -- such that it remains incorrect even after receiving the next SI1. Fix that with an "else". Signed-off-by: Alex Badea <vamposdecampos@gmail.com> Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
-rw-r--r--src/host/layer23/src/common/sysinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/layer23/src/common/sysinfo.c b/src/host/layer23/src/common/sysinfo.c
index 2816c266..b42bd653 100644
--- a/src/host/layer23/src/common/sysinfo.c
+++ b/src/host/layer23/src/common/sysinfo.c
@@ -753,6 +753,7 @@ short_read:
LOGP(DRR, LOGL_NOTICE, "Ignoring CBCH allocation of "
"SYSTEM INFORMATION 4 until SI 1 is "
"received.\n");
+ } else {
gsm48_decode_mobile_alloc(s->freq, data + 2, data[1],
s->hopping, &s->hopp_len, 1);
}