aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-19 15:24:10 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-19 16:02:25 +0200
commitd7546ed090666f0c60afe9737f7ee64964530a53 (patch)
tree09eaec8701b28e67662f26f094ce45eb19ab84c2
parentf66d2fc1e6e4a3aea3258f33170236a65a0892f0 (diff)
VIRT-PHY: Report virtual RACH bursts with plausible burst type
-rw-r--r--src/osmo-bts-virtual/l1_if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo-bts-virtual/l1_if.c b/src/osmo-bts-virtual/l1_if.c
index 3ef8c721..4fe1ec8f 100644
--- a/src/osmo-bts-virtual/l1_if.c
+++ b/src/osmo-bts-virtual/l1_if.c
@@ -119,7 +119,9 @@ static void virt_um_rcv_cb(struct virt_um_inst *vui, struct msgb *msg)
l1sap.u.rach_ind.acc_delay = 0; /* probably not used in virt um */
l1sap.u.rach_ind.is_11bit = 0;
l1sap.u.rach_ind.fn = fn;
- l1sap.u.rach_ind.burst_type = GSM_L1_BURST_TYPE_NONE; /* FIXME: what comes here */
+ /* we don't rally know which RACH bursrt type the virtual MS is using, as this field is not
+ * part of information present in the GSMTAP header. So we simply report all of them as 0 */
+ l1sap.u.rach_ind.burst_type = GSM_L1_BURST_TYPE_ACCESS_0;
break;
case GSMTAP_CHANNEL_TCH_F:
case GSMTAP_CHANNEL_TCH_H: