[rsl] Check the assumption that RF Channel Release is sent during release

We assume that the lchan_free will initiate the release and
that when we handle the RLL release indication or the release
request as part of the shutdown sequence.
This commit is contained in:
Holger Hans Peter Freyther 2010-04-08 22:47:44 +02:00
parent dbc5fae576
commit d7fd30617f
1 changed files with 6 additions and 0 deletions

View File

@ -1260,6 +1260,12 @@ static int rsl_rx_rll_err_ind(struct msgb *msg)
static void rsl_handle_release(struct gsm_lchan *lchan)
{
if (lchan->state != LCHAN_S_REL_REQ)
LOGP(DRSL, LOGL_ERROR, "RF release on %s but state %s\n",
gsm_lchan_name(lchan),
gsm_lchans_name(lchan->state));
/* we can now releae the channel on the BTS/Abis side */
/* FIXME: officially we need to start T3111 and wait for
* some grace period */