RSL: Add support for RSL_CHAN_OSMO_PDCH to rsl_dec_chan_nr()

Change-Id: Icc772285636c06e1075a89809f0ac379d7a0002c
This commit is contained in:
Harald Welte 2017-07-30 15:16:18 +02:00
parent 977231cc3e
commit a8a8d3977d
1 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,9 @@ int rsl_dec_chan_nr(uint8_t chan_nr, uint8_t *type, uint8_t *subch, uint8_t *tim
} else if ((chan_nr & 0xf8) == RSL_CHAN_PCH_AGCH) { } else if ((chan_nr & 0xf8) == RSL_CHAN_PCH_AGCH) {
*type = RSL_CHAN_PCH_AGCH; *type = RSL_CHAN_PCH_AGCH;
*subch = 0; *subch = 0;
} else if ((chan_nr & 0xf8) == RSL_CHAN_OSMO_PDCH) {
*type = RSL_CHAN_OSMO_PDCH;
*subch = 0;
} else } else
return -EINVAL; return -EINVAL;