aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-04 14:30:15 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-04 14:30:15 +0100
commit6fec514d7bcf8e6fe469d31ccc13d5cd473058a4 (patch)
tree23d0d22e0a3242731c2b5c37a82dfd97f7e1a0e2
parentecf9dd0d9680882b7c9df5e9bdfdb3dd58a069ac (diff)
fix CCCH parsing
-rw-r--r--src/rsl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rsl.c b/src/rsl.c
index ca2f7dea..c864b12f 100644
--- a/src/rsl.c
+++ b/src/rsl.c
@@ -161,13 +161,13 @@ int rsl_dec_chan_nr(uint8_t chan_nr, uint8_t *type, uint8_t *subch, uint8_t *tim
} else if ((chan_nr & 0xc0) == RSL_CHAN_SDCCH8_ACCH) {
*type = RSL_CHAN_SDCCH8_ACCH;
*subch = (chan_nr >> 3) & 0x7;
- } else if (chan_nr == 0x10) {
+ } else if ((chan_nr & 0xf8) == RSL_CHAN_BCCH) {
*type = RSL_CHAN_BCCH;
*subch = 0;
- } else if (chan_nr == 0x11) {
+ } else if ((chan_nr & 0xf8) == RSL_CHAN_RACH) {
*type = RSL_CHAN_RACH;
*subch = 0;
- } else if (chan_nr == 0x12) {
+ } else if ((chan_nr & 0xf8) == RSL_CHAN_PCH_AGCH) {
*type = RSL_CHAN_PCH_AGCH;
*subch = 0;
} else