chantype_rsl2gsmtap(): Add entries for CBCH

This adds missing entries for CBCH in the conversion between RSL-style
channel numbers and GSMTAP channel types.

Without this change, you will see tons of messages like
virtphy[19865]: Wed Feb 26 16:16:28 2020 DVIRPHY <0002> gsmtapl1_if.c:267 MS 0000: Ignoring unknown channel type UNKNOWN (0)
if running virtphy of osmocom-bb with a BTS that broadcasts CBCH.

Change-Id: I19bbd2942adf441f58955ac896ef968bfd8aec5f
This commit is contained in:
Harald Welte 2020-02-26 17:24:02 +01:00 committed by laforge
parent 4960ee4511
commit ac7fabe34f
1 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,12 @@ uint8_t chantype_rsl2gsmtap(uint8_t rsl_chantype, uint8_t link_id)
case RSL_CHAN_OSMO_PDCH:
ret = GSMTAP_CHANNEL_PDCH;
break;
case RSL_CHAN_OSMO_CBCH4:
ret = GSMTAP_CHANNEL_CBCH51;
break;
case RSL_CHAN_OSMO_CBCH8:
ret = GSMTAP_CHANNEL_CBCH52;
break;
}
if (link_id & 0x40)