From d4c346a9316173f62c8cec0e568c5e91218a541e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 4 Apr 2018 18:42:41 +0200 Subject: fox chan_nr_is_dchan() for RSL_CHAN_OSMO_PDCH When writing chan_nr_is_dchan() in Change-Id: I43a78bec63aeb36dd67043d237b27fe880209349, I apparently only looked at TS 48.058 without considering the osmocom extension to it for PDCH activation. The result is complete breakage for "osmocom style dynamic PDCH" support. This patch fixes the mistake by making the compare more specific. Change-Id: I18e0774fdd48966bc95261e715f798464b8b681f Related: OS#3131, OS#1853 --- src/common/rsl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/rsl.c b/src/common/rsl.c index 5f3c17e5..6120e0ec 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -140,8 +140,8 @@ static void lchan_tchmode_from_cmode(struct gsm_lchan *lchan, /* Is this channel number for a dedicated channel (true) or not (false) */ static bool chan_nr_is_dchan(uint8_t chan_nr) { - /* See TS 48.058 9.3.1 */ - if (chan_nr & 0x80) + /* See TS 48.058 9.3.1 + Osmocom extension for RSL_CHAN_OSMO_PDCH */ + if ((chan_nr & 0xc0) == 0x80) return false; else return true; -- cgit v1.2.3