diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-11-27 08:55:16 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-11-27 08:55:16 +0100 |
commit | 1a79d364401dfad2a71f1e61ff13a3861e3da46e (patch) | |
tree | 99deafda94eadacd5ece55792f39f725b13ee8a2 /openbsc/src/abis_rsl.c | |
parent | ad3c844b2d1364c8e02bdbaec643716e237e0b38 (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 692536c50..219b01aa0 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; |