aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/abis_rsl.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-08 11:53:33 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-08 12:16:17 +0800
commit44752d9f849e6c75b8e922f975b10b1894d186e1 (patch)
tree84e6d97600ee9acfafe8a25a3c24dbe1022352ed /openbsc/src/abis_rsl.c
parentbddfab1f97fb06d7ff4684849e74a74ce7b7e0b9 (diff)
abis_rsl: Fixup direct assignment and go through the method.
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r--openbsc/src/abis_rsl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index 79c8eeb37..f305bb1d4 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -579,7 +579,7 @@ static void error_timeout_cb(void *data)
/* go back to the none state */
LOGP(DRSL, LOGL_NOTICE, "%s is back in operation.\n", gsm_lchan_name(lchan));
- lchan->state = LCHAN_S_NONE;
+ rsl_lchan_set_state(lchan, LCHAN_S_NONE);
}
/* Chapter 8.4.14 / 4.7: Tell BTS to release the radio channel */
@@ -610,7 +610,7 @@ static int rsl_rf_chan_release(struct gsm_lchan *lchan, int error)
* be a problem when we have reassigned the channel to someone else and then can
* not figure out who used this channel.
*/
- lchan->state = LCHAN_S_REL_ERR;
+ rsl_lchan_set_state(lchan, LCHAN_S_REL_ERR);
lchan->error_timer.data = lchan;
lchan->error_timer.cb = error_timeout_cb;
bsc_schedule_timer(&lchan->error_timer,