diff options
author | Sebastian Stumpf <sebastian.stumpf87@googlemail.com> | 2017-02-25 17:18:04 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-07-13 21:35:33 +0200 |
commit | 1f45db0ff5b5ee62397ae7da688876d7ce664233 (patch) | |
tree | f13ca655cf6c57023a483d8616a3188c36858c59 /src/osmo-bts-virtual | |
parent | 81335edae39e885ca09b027db7216e75d1676ab6 (diff) |
VIRT-PHY: Fixed timeslot in gsmtap-msg on downlink which was always 0.
Timeslot is not encoded in the chan_nr accessible in the channel
description but was taken from there and so it was always 0.
Change-Id: I881a1c61ea47399c9b1385fb220cd587e3593e82
Diffstat (limited to 'src/osmo-bts-virtual')
-rw-r--r-- | src/osmo-bts-virtual/scheduler_virtbts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bts-virtual/scheduler_virtbts.c b/src/osmo-bts-virtual/scheduler_virtbts.c index 4b4def71..df6fbebf 100644 --- a/src/osmo-bts-virtual/scheduler_virtbts.c +++ b/src/osmo-bts-virtual/scheduler_virtbts.c @@ -72,6 +72,8 @@ static void tx_to_virt_um(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn, uint8_t gsmtap_chantype; /* the GSMTAP channel */ rsl_dec_chan_nr(chdesc->chan_nr, &rsl_chantype, &subslot, ×lot); + /* the timeslot is not encoded in the chan_nr of the chdesc, and so has to be overwritten */ + timeslot = tn; /* in Osmocom, AGCH is only sent on ccch block 0. no idea why. this seems to cause false GSMTAP channel * types for agch and pch. */ if (rsl_chantype == RSL_CHAN_PCH_AGCH && L1SAP_FN2CCCHBLOCK(fn) == 0) |