aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-04 18:42:41 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-05 13:50:33 +0000
commitd4c346a9316173f62c8cec0e568c5e91218a541e (patch)
treecce9d34c20fba5e6e4a355d310ce21e83e572aa7
parent113e30cb0639cefbafdad2862c5e69b0e17d9bf3 (diff)
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
-rw-r--r--src/common/rsl.c4
1 files 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;