aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_dyn_pdch.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/libbsc/bsc_dyn_pdch.c')
-rw-r--r--openbsc/src/libbsc/bsc_dyn_pdch.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_dyn_pdch.c b/openbsc/src/libbsc/bsc_dyn_pdch.c
index e0d1a6349..26409a747 100644
--- a/openbsc/src/libbsc/bsc_dyn_pdch.c
+++ b/openbsc/src/libbsc/bsc_dyn_pdch.c
@@ -34,6 +34,13 @@ void dyn_pdch_init(struct gsm_bts_trx_ts *ts)
if (ts->pchan != GSM_PCHAN_TCH_F_PDCH)
return;
+ if (ts->trx->bts->gprs.mode == BTS_GPRS_NONE) {
+ LOGP(DRSL, LOGL_NOTICE, "%s %s: GPRS mode is 'none':"
+ " not activating PDCH.\n",
+ gsm_ts_name(ts), gsm_pchan_name(ts->pchan));
+ return;
+ }
+
LOGP(DRSL, LOGL_DEBUG, "%s %s: trying to PDCH ACT\n",
gsm_ts_name(ts), gsm_pchan_name(ts->pchan));