diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-11-27 08:55:16 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-12-06 04:03:55 +0100 |
commit | 9be3347601c4b3b600435ce11ad44843608dace7 (patch) | |
tree | e1b78314c1dee93b5b931f2a6ca0d96aa6f50885 /openbsc/src/abis_rsl.c | |
parent | 3eef7b7d81217c2d70a795d0ae1054865c517e26 (diff) |
RSL: catch inconsistent parameters ofr channel_mode_from_lchan()
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r-- | openbsc/src/abis_rsl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index eaaaa4c37..87b7db8fb 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -488,6 +488,11 @@ static int channel_mode_from_lchan(struct rsl_ie_chan_mode *cm, /* set TCH Speech/Data */ cm->spd_ind = lchan->rsl_cmode; + if (lchan->rsl_cmode == RSL_CMOD_SPD_SIGN && + lchan->tch_mode != GSM48_CMODE_SIGN) + DEBUGP(DRSL, "unsupported: rsl_mode == signalling, " + "but tch_mode != signalling\n"); + switch (lchan->type) { case GSM_LCHAN_SDCCH: cm->chan_rt = RSL_CMOD_CRT_SDCCH; |