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
This commit is contained in:
parent
113e30cb06
commit
d4c346a931
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue