aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbsc')
-rw-r--r--src/libbsc/abis_rsl.c5
-rw-r--r--src/libbsc/bsc_api.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/libbsc/abis_rsl.c b/src/libbsc/abis_rsl.c
index 10bef6eb2..b36e49687 100644
--- a/src/libbsc/abis_rsl.c
+++ b/src/libbsc/abis_rsl.c
@@ -694,7 +694,10 @@ int rsl_chan_activate_lchan(struct gsm_lchan *lchan, uint8_t act_type,
rate_ctr_inc(&lchan->ts->trx->bts->bts_ctrs->ctr[BTS_CTR_CHAN_ACT_TOTAL]);
- return abis_rsl_sendmsg(msg);
+ rc = abis_rsl_sendmsg(msg);
+ if (!rc)
+ rsl_lchan_set_state(lchan, LCHAN_S_ACT_REQ);
+ return rc;
}
/* Chapter 8.4.9: Modify channel mode on BTS side */
diff --git a/src/libbsc/bsc_api.c b/src/libbsc/bsc_api.c
index 19859cf8a..13fe099ec 100644
--- a/src/libbsc/bsc_api.c
+++ b/src/libbsc/bsc_api.c
@@ -156,8 +156,6 @@ static int handle_new_assignment(struct gsm_subscriber_connection *conn, int cha
/* remember that we have the channel */
conn->secondary_lchan = new_lchan;
new_lchan->conn = conn;
-
- rsl_lchan_set_state(new_lchan, LCHAN_S_ACT_REQ);
return 0;
}