aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/oml.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-07-08 18:48:58 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2012-07-08 18:48:58 +0200
commit343cae60b68e46f9d4f6e07fe5ac131451f04692 (patch)
treeb9a50cfb77939de5d985b00c11e27a43d3263834 /src/osmo-bts-sysmo/oml.c
parentea15101896b8c8d61b1a0b00fc6816167b9e502b (diff)
lchan: Activate PTCCH/PRACH/PDTCH/PACCH when activating PDCH
Diffstat (limited to 'src/osmo-bts-sysmo/oml.c')
-rw-r--r--src/osmo-bts-sysmo/oml.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c
index a9437be8..257f30a1 100644
--- a/src/osmo-bts-sysmo/oml.c
+++ b/src/osmo-bts-sysmo/oml.c
@@ -402,11 +402,11 @@ static const struct sapi_dir sdcch_sapis[] = {
static const struct sapi_dir pdtch_sapis[] = {
{ GsmL1_Sapi_Pdtch, GsmL1_Dir_TxDownlink },
{ GsmL1_Sapi_Pdtch, GsmL1_Dir_RxUplink },
-#if 0
{ GsmL1_Sapi_Ptcch, GsmL1_Dir_TxDownlink },
+ { GsmL1_Sapi_Prach, GsmL1_Dir_RxUplink },
+#if 0
{ GsmL1_Sapi_Ptcch, GsmL1_Dir_RxUplink },
{ GsmL1_Sapi_Pacch, GsmL1_Dir_TxDownlink },
- { GsmL1_Sapi_Prach, GsmL1_Dir_RxUplink },
#endif
};
@@ -677,6 +677,19 @@ int lchan_activate(struct gsm_lchan *lchan)
case GsmL1_Sapi_TchF:
lchan2lch_par(lch_par, lchan);
break;
+ case GsmL1_Sapi_Ptcch:
+ lch_par->ptcch.u8Bsic = lchan->ts->trx->bts->bsic;
+ break;
+ case GsmL1_Sapi_Prach:
+ lch_par->prach.u8Bsic = lchan->ts->trx->bts->bsic;
+ break;
+ case GsmL1_Sapi_Pdtch:
+ case GsmL1_Sapi_Pacch:
+ /* Be sure that every packet is received, even if it
+ * fails. In this case the length might be lower or 0.
+ */
+ act_req->fBFILevel = -200.0;
+ break;
default:
break;
}