diff options
author | Harald Welte <laforge@osmocom.org> | 2020-05-15 08:52:41 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-05-20 12:55:08 +0000 |
commit | d211c490cad38f2009943121d57bdb7df8eee9b0 (patch) | |
tree | 66ff81f443b8cd469b497af46a6847f183f1f941 /src/osmo-bts-virtual | |
parent | 98e235b7329910e1f8465a20d499b1594d7803d6 (diff) |
virtual/scheduler: log unknown GSMTAP chan
Related change in libosmocore will let gsmtap_makemsg return NULL if the
channel type is unknown: Ib4147a33a75c3cf425c30da8b0678c7fba8a371d
Related: SYS#4822
Change-Id: Ic22ab71e520ab44429a93724250d349d16250801
Diffstat (limited to 'src/osmo-bts-virtual')
-rw-r--r-- | src/osmo-bts-virtual/scheduler_virtbts.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bts-virtual/scheduler_virtbts.c b/src/osmo-bts-virtual/scheduler_virtbts.c index a60c9e01..eabd23b7 100644 --- a/src/osmo-bts-virtual/scheduler_virtbts.c +++ b/src/osmo-bts-virtual/scheduler_virtbts.c @@ -78,6 +78,10 @@ static void _tx_to_virt_um(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn, else gsmtap_chantype = chantype_rsl2gsmtap2(rsl_chantype, chdesc->link_id, is_voice_frame); /* the logical channel type */ + if (gsmtap_chantype == GSMTAP_CHANNEL_UNKNOWN) + LOGL1S(DL1P, LOGL_ERROR, l1t, tn, chan, fn, "Tx GSMTAP for RSL channel type 0x%02x: cannot send, this" + " channel type is unknown in GSMTAP\n", rsl_chantype); + #if MODULO_HYPERFRAME /* Restart fn after every superframe (26 * 51 frames) to simulate hyperframe overflow each 6 seconds. */ fn %= 26 * 51; |