aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/oml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-sysmo/oml.c')
-rw-r--r--src/osmo-bts-sysmo/oml.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c
index f2b7730c..452cfe3f 100644
--- a/src/osmo-bts-sysmo/oml.c
+++ b/src/osmo-bts-sysmo/oml.c
@@ -1180,6 +1180,10 @@ int l1if_set_ciphering(struct femtol1_hdl *fl1h,
{
int dir;
+ /* ignore the request when the channel is not active */
+ if (lchan->state != LCHAN_S_ACTIVE)
+ return -1;
+
if (dir_downlink)
dir = GsmL1_Dir_RxUplink;
else
@@ -1192,6 +1196,9 @@ int l1if_set_ciphering(struct femtol1_hdl *fl1h,
int bts_model_rsl_mode_modify(struct gsm_lchan *lchan)
{
+ if (lchan->state != LCHAN_S_ACTIVE)
+ return -1;
+
/* channel mode, encryption and/or multirate have changed */
/* update multi-rate config */