aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Stumpf <sebastian.stumpf87@googlemail.com>2017-03-04 15:45:00 +0100
committerSebastian Stumpf <sebastian.stumpf87@googlemail.com>2017-03-04 15:45:00 +0100
commit0b22f2dc6a831103055635e92404353d548d7557 (patch)
treecbccbd8b27207a30c53e4340394df56ba8eefa06
parentc961c340647e34e59d8cdadb6468e6ac0bde8a3d (diff)
VIRT-PHY: TCH processed as FACCH to enable signaling on TCH.
-rw-r--r--src/osmo-bts-virtual/l1_if.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/osmo-bts-virtual/l1_if.c b/src/osmo-bts-virtual/l1_if.c
index bae0b2d..c049140 100644
--- a/src/osmo-bts-virtual/l1_if.c
+++ b/src/osmo-bts-virtual/l1_if.c
@@ -182,21 +182,19 @@ static void virt_um_rcv_cb(struct virt_um_inst *vui, struct msgb *msg)
l1sap.u.rach_ind.fn = fn;
l1sap.u.rach_ind.burst_type = GSM_L1_BURST_TYPE_NONE; // FIXME: what comes here
break;
- case GSMTAP_CHANNEL_SDCCH4:
- // TODO: check if separate handling is needed
- case GSMTAP_CHANNEL_SDCCH8:
- // TODO: check if separate handling is needed
case GSMTAP_CHANNEL_TCH_F:
- // TODO: check if separate handling is needed
case GSMTAP_CHANNEL_TCH_H:
- // check if associated control flag is set
- if (gsmtap_chantype & GSMTAP_CHANNEL_ACCH) {
- // TODO: check if handling is different for ACCH
- // TODO: does FACCH need special handling?
+#if(0)
+ // TODO: handle msgs on TCH that neither FACCH nor TCH/ACCH
+ if(!facch && ! tch_acch) {
+ osmo_prim_init(&l1sap.oph, SAP_GSM_PH, PRIM_TCH,
+ PRIM_OP_INDICATION, msg);
}
+#endif
+ case GSMTAP_CHANNEL_SDCCH4:
+ case GSMTAP_CHANNEL_SDCCH8:
osmo_prim_init(&l1sap.oph, SAP_GSM_PH, PRIM_PH_DATA,
- PRIM_OP_INDICATION, msg);
-
+ PRIM_OP_INDICATION, msg);
l1sap.u.data.chan_nr = chan_nr;
l1sap.u.data.link_id = link_id;
l1sap.u.data.fn = fn;