aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-virtual/scheduler_virtbts.c
diff options
context:
space:
mode:
authorSebastian Stumpf <sebastian.stumpf87@googlemail.com>2017-02-25 17:18:04 +0100
committerSebastian Stumpf <sebastian.stumpf87@googlemail.com>2017-02-25 17:18:04 +0100
commit2bddabe45a4c29f1aacd7d03ef0a2ff8aebe1546 (patch)
tree408c7b61466c8a5646ece471317bfccb7f0e8524 /src/osmo-bts-virtual/scheduler_virtbts.c
parentf512d5badc6f162de46e36174dcfc865896a0f12 (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.
Diffstat (limited to 'src/osmo-bts-virtual/scheduler_virtbts.c')
-rw-r--r--src/osmo-bts-virtual/scheduler_virtbts.c2
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 30732758..6bfcb7cd 100644
--- a/src/osmo-bts-virtual/scheduler_virtbts.c
+++ b/src/osmo-bts-virtual/scheduler_virtbts.c
@@ -64,6 +64,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, &timeslot);
+ // 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) {
gsmtap_chantype = GSMTAP_CHANNEL_PCH;