RSL: catch inconsistent parameters ofr channel_mode_from_lchan()

This commit is contained in:
Harald Welte 2009-11-27 08:55:16 +01:00
parent ad3c844b2d
commit 1a79d36440
1 changed files with 5 additions and 0 deletions

View File

@ -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;