summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-06-16 04:18:07 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-06-16 04:29:40 +0200
commitc1fbdedcd343bba16a75dc64953c080cae936534 (patch)
tree327b7c186e3bd7a1a58cc695bc9a398f65ded788
parent2ebacce4fa5ab8f3be42967033644739d78c80bf (diff)
dyn PDCH: fix: clear PDCH flags on TS reconnect (e.g. BTS re-connect)
-rw-r--r--openbsc/src/libbsc/bsc_dyn_pdch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_dyn_pdch.c b/openbsc/src/libbsc/bsc_dyn_pdch.c
index 717880b79..6e5fe8325 100644
--- a/openbsc/src/libbsc/bsc_dyn_pdch.c
+++ b/openbsc/src/libbsc/bsc_dyn_pdch.c
@@ -27,6 +27,8 @@ void dyn_pdch_init(struct gsm_bts_trx_ts *ts)
{
int rc;
+ ts->flags &= ~(TS_F_PDCH_PENDING_MASK | TS_F_PDCH_ACTIVE);
+
if (ts->pchan == GSM_PCHAN_TCH_F_PDCH) {
LOGP(DRSL, LOGL_DEBUG, "trying to PDCH ACT on"
" BTS %u TRX %u TS %u\n",