diff options
author | Harald Welte <laforge@osmocom.org> | 2020-02-26 17:24:02 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-02-28 10:46:42 +0000 |
commit | ac7fabe34f40951aff086d867e42436e34128cd5 (patch) | |
tree | cd8a576268bce121a8058cade86694288173bf16 /src | |
parent | 4960ee4511f6613b449fa3c77a2d188e122c90ce (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/gsmtap_util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gsmtap_util.c b/src/gsmtap_util.c index 2fb18a48..a4fe2d93 100644 --- a/src/gsmtap_util.c +++ b/src/gsmtap_util.c @@ -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) |